Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6147155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:03:51+00:00 2026-05-23T19:03:51+00:00

I am working within a enterprise architecture that is processing a large amount of

  • 0

I am working within a enterprise architecture that is processing a large amount of XML messages. We have recently been given the requirement to perform some calculations on data contained in those XML messages and add some results to the message header before passing the message out of the enterprise to an external consumer. Our architecture is based on the JBoss SOA-P and I am currently evaluating JBoss Drools 5.2.0 for performing these message operations.

I know that I can simply hydrate a POJO from the XML, execute the rules on it, and add the appropriate result. If possible, however, I would like to remove compile-time dependencies on the XML message structure due to dynamic requirements around the schema as well as significant hurdles in deploying new compiled code to our production environment (read: red tape). I would ideally like to use XPath evaluations on the raw XML in the .drl rules. Some searching turned up the SXC project, which appears to be exactly what I need, but there is very little information on how to use it and it seems to be dormant since 2007. Additionally, it has been compiled against Drools 4.0.4 and I am required to use 5.2.0.

Does anyone know of a good way to evaluate XPath expressions against XML in Drools rules? Alternatives to XPath that allow XML structure changes to be compensated for in Drools rules at runtime are also welcome.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:03:52+00:00Added an answer on May 23, 2026 at 7:03 pm

    we had an expert on Drools visiting our company and taking about Drools short time ago. I am developing a Service with a lot of rules that are constantly changing and we thought about using Drools.

    The expert told us to use Proxy-Objects to wrap the data we needed for Drools. You could try to use a Proxy-Object in which you put the XML along with some methods. When Drools is trying to evaluate the Proxy-Object it is infact evaluating your XML.
    This is a littlebit dirty – comparing to Drools specifications – since the Object would not hold the data when entered into the Working-Memory of Drools, but rather extract the data when asked.

    I am no expert in Drools, but the only alternative I see, is to “hydrate a POJO” as you mentioned before, which would be best according to Drools specifications.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on implementing Zend Framework within an existing project that has a
I am working on an in-browser editor within a textarea . I have started
I have Aptana installed within Eclipse. I'm working on a project with the dojo
I'm working on a website that uses not just frames, but frames within frames
I am working on an enterprise system that will utilise a RESTful web service
I have multiple projects that shares child apps with other projects . When working
As a developer who spent many years working within Visual C++ 6, I'm used
Is there some smart way to retreive the installation path when working within a
I'm working on a table of links within a site using iframes. I'm wondering
I am working with an object which has sub objects within (see example below).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.