My application is an J2EE application built in WSAD on a Websphere 5.1.1 server platform.
The issue I'm currently attempting to solve is this:
Upon server start, a Listener class is executed that initializes a Quartz Enterprise Job Scheduler and schedules 2 jobs.
In the jobs, we are attempting to call a delegate class, which uses ServiceLocator to return an EJB reference, which then runs a report. Currently, we're getting the "java:comp/env/" does not exist in namespace issue.
When we call the job classes directly, they are able to locate beans via java:comp/env references. It's only when they're run as scheduled that they are unable to access the references.
We are able to access the beans via direct references (ejb/name), but I've been informed that we have to use java:comp/env/ejb/Name values.
Does anyone have any ideas on how to implement this?
The listener and job classes are all on the EJB layer and all on the same server.
posted 12 years ago
Maybe I'm off my rocker here, but listeners don't have their own ENC, ergo the exception when you try to get the context "java:comp/env". I'm not familiar with the whole timer service bit, so this may be of little help for you. Cheers.