InitialContext not available in job executor threads

Hi All,

I discovered an interesting behaviour recently. I was using a javax.naming.InitialContext to extract detail from the application server (Tomcat) such as DataSource and parameters. All worked as expected, until asynschronous continuations. In a job executor thread the InitalContext cannot resolve java:comp and thus my working process model started failing…

Does anyone foresee a requirement to resolve the InitialContext to the application server context within job executor threads?

regards

Rob

1 Like