users@glassfish.java.net

Ejb Injection error

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Apr 2007 01:36:04 PDT

Hello,
i have a TimerSession started from StartupContextListener in war
application.

    public class StartupContextListener implements ServletContextListener{
       
        *_at_EJB
        private UploadTimerLocal uploadTimer;*
       
        public void contextInitialized(ServletContextEvent arg0) {
            uploadTimer.startTimer();
        }
       
        public void contextDestroyed(ServletContextEvent arg0) {
           
        }
       
    }

It works fine only after i deploy my application in glassfish. If i try
to restart Glassfish i found a Jndi error because it doesn't found the Ejb.
I think that it happens because the War module is started before Ejb module.
Can i set the order in which the enterprise application have to load the
modules ?
[Message sent by forum member 'marionee' (marionee)]

http://forums.java.net/jive/thread.jspa?messageID=211632