I want my server app to be notified by the container when the application has been deployed into the server. To implement that I am extending this class, ApplicationLifecycleListenerWeblogic Dos for ApplicationLifecycleListener
The methods in this class get called before any of the Ejbs are added to the JNDI tree, as result of which I cannot call any ejb methods from during initialization.
From with in the ApplicationLifecycleListener void postStart(ApplicationLifecycleEvent evt)
I was calling looking up a EJBLocalHome, and I couldnt find it on the JNDI tree ( I was getting a LinkException), I changed that to look up the EJBHome( i.e Remote Home ) and it works fine. It also makes sense, since EJB Local Homes can only be called from within EJBs in the same EAR. And I dont think the application life cycle is part of the same EAR...I think. Well that is my reasoning of why it didnt work, I have to dig deeper to find the exact reason, but dont seem to have the time for that.