Hello everybody !
I use timer.schedule() to launch small batches.
My problem is that I don't have access anymore to local
EJB in those batch.
(With websphere 5.1)
In my web project, i can load local EJB without problem using initialContext.lookup("java:comp/env/ejb/myLocalEJB")
but in my batch, nope, error :
javax.naming.NameNotFoundException: Name "comp/env/ejb" not found in context "java:".
With initialContext.getNameInNamespace(), i found the same context "localhost/nodes/localhost/servers/server1" in a web
servlet and in the batch. So I don't understand why cannot access this local EJB.
My understanding is that EJB are on the same serveur instance, so can be accessible in local , no ?