aspose file tools*
The moose likes BEA/Weblogic and the fly likes Any one used ApplicationLifecycleListener for application deployment life cycle event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Any one used ApplicationLifecycleListener for application deployment life cycle event" Watch "Any one used ApplicationLifecycleListener for application deployment life cycle event" New topic
Author

Any one used ApplicationLifecycleListener for application deployment life cycle event

Vivek Viswanathan
Ranch Hand

Joined: Mar 03, 2001
Posts: 350
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.

Anyone know a way aroung this. ?


Vivek Viswanathan SCJP 1.2, SCJP 1.6,SCJD,SCEA,SCWCD,IBM-484,IBM-486,IBM-141,Ms.NET C# 70-316,SCMAD, LPIC-I
Vivek Viswanathan
Ranch Hand

Joined: Mar 03, 2001
Posts: 350
I managed to locate my problem.

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Any one used ApplicationLifecycleListener for application deployment life cycle event