I have a startupclass which calls an EJB to get initialisation values from it .The startup class works fine and control goes into the init() and start() methods.But it is unable to lookup for the EJB. Apparently , the EJB is not deployed before the startup class loads and NameNotFoundException is thrownin the startup class.
I wanted to know if there is a way to specify the deployment order in JBoss(in this case , the EJB should be deployed before the startup class's start() method is called .