Hi all,
Thanks for the responses; I am simply trying to make use of drools from
different bundles, and preferably deployed to blueprint. I think I'm having
class loader issues... Although I'm up for any solution that allows the
cross-bundle use of drools + camel in SMX/Karaf
Wim - I am have tried to simply host only drools within java. IE I am using
raw java and not even using the drools camel component in order to
circumvent the no-support for blueprint XML declarations
final KnowledgeBuilder knowledgeBuilder =
KnowledgeBuilderFactory.newKnowledgeBuilder();
knowledgeBuilder.add(ResourceFactory.newClassPathResource("SimpleRules.drl"),
ResourceType.DRL);
.... etc ...
But as I mentioned it doesn't pick up the code as being a blueprint bundle,
presumably because of class loader issues
I have even tried to expose a simple drools service (not the drools camel
component) from spring and consume it from blueprint, but it doesn't work,
as throws an exception at runtime saying that it is not of the right object
type. I believe this is another class loader issue as the spring bundle is
embedding its dependencies and causing conflictions with the interface
class?
I have also tried using an InOut ActiveMQ route to talk to the camel drools
component, but the InOut ActiveMQ MEP was only recently fixed and added to
camel 2.11 recently. SMX5 comes with 2.11, but as it is a snapshot currently
I've ran into a lot of deployment problems :(
I would really like to see this work if anyone could help me :)
Alan
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Drools-Blueprint-Example-tp5716443p5716457.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.