-
Bug
-
Resolution: Done
-
Major
-
jBPM 3.3.0 GA
-
None
-
Documentation (Ref Guide, User Guide, etc.)
-
Workaround Exists
-
When you try to lookup the JNDI Namespace java:comp/env in an enterprise deployment wihtin an ActionHandler implementation it will throw an NameNotFoundException.
So it is not possible to lookup ejb or other component local stuff within ActionHandler implementations.
In special this also affects you, when you signal a token within an ActionHandler and any of the following Node is async using the JMSMessgeService because the JMS implementation will also make a lookup on the connection factory using the comp/env Namespace.
The reason for this is the change in the classloader when executing ActionHandlers. The contex class loader is by default changed to the ProcessClassLoader using the UCL as parent. But JBoss uses the ContextClassLoader ot scope the comp/env Namespace. When using the original context class loader as the parent for the ProcessClassLoader it works again.