Hello, I've come to this thread, as I faced an issue with not being able to lookup entries from the Initial Context on WebSphere once a timer fired. This splits the implementation of our process model into two parts:
1. Everything BEFORE a waiting task, such as a timer runs within a thread built by the WebSphere Container
2. Everything AFTER a waiting task, such as a timer runs within a thread created by the JobExecutor.
While 1) allows me to use InitialContext.doLookup("java:comp/env/myDataSource"), 2) will not allow this in WebSphere leading to the following error message:
A JNDI operation on a "java:" name cannot be completed because the server runtime is not able to associate the operation's thread with any J2EE application component. This condition can occur when the JNDI client using the "java:" name is not executed on the thread of a server application request. Make sure that a J2EE application does not execute JNDI operations on "java:" names within static code blocks or in threads created by that J2EE application. Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on "java:" names
From my knowlege in implementing something like what is currently achieved with ACT-34 for Quartz utilizing the WebSphere Workmanager, when using this very API, the JNDI context stays and can be used.
However, I've not seen any news about this. Are you Ronald or somebody else still working on this? Do you need some help regarding tests for WebSphere Integration. I'd be glad to join in, cause this really bugs us right now in moving towards Activiti abandoning jBPM 4.
Thank you very much.
Heiko
PS: I've checked out your branch in the SVN, trying to read myself into it.