[rules-users] Using RuleAgent (URLScanner) within a webapp

glorent gael.lorent at infotech.nc
Sun Dec 9 19:34:02 EST 2007


Hi,

I have some trouble trying to configure a RuleAgent listening to a snapshot
URL (exposed via BRMS) within a webapp.

The issue may be due to the fact that both BRMS and my webapp are hosted on
the same container (Tomcat) instance.

Indeed, as I start Tomcat the RuleSource initializes with my webapp, which
generates a HTTP GET request on my snapshot url, leading to an infinite wait
loop (since the container is not fully started and is not ready to handle
such requests yet).

It looks like the org.drools.agent.HttpClientImpl.fecthPackage method does
not handle any connection timeout (Using drools 4.0.3). Maybe it could
prevent from such deadlocks though.

One possible workaround would be to have my BRMS on a separate container
instance...

Maybe I am misunderstanding something ? 
Would anybody have some feedback on such configurations ?

Any light appreciated
-- 
View this message in context: http://www.nabble.com/Using-RuleAgent-%28URLScanner%29-within-a-webapp-tp14245427p14245427.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list