On 3/20/07, Andrea Zoppello <[EMAIL PROTECTED]> wrote:

Hi all,

I've two questions about the usage of drools 3.1 component.

1)Is possible to specify a  default "target service" where the  message
will be routed if no one of the
rule specified in thre rulebase file has been executed????

This is due to a use case where i want to use the drools component as a
"semantic validator" where  a jbi
fault must be generated according to some rulebase otherwise i want to
specify the default target service for the normal execution.

Probably this is possible including a rule that route to this target
service at the end of the drl file, what i'm asking here if there is
another way of doing this.


Not currently.  But feel free to raise a JIRA and submit a patch for that.

2) Is possible to access datasource defined in smx jndi in the drools
drl file??
    This is because because some semantic validation can require to
validate the message content querying
    a database??


Same answer.  Though I don't really see how to to data.
You can always  lookup the  DataSource using java calls, right ?
Do you expect it to be directly accessible ?

Thank you

Andrea Zoppello
Engineering Ing. Informatica




--
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/

Reply via email to