wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes How have bean notified if other beans deployed/undeployed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How have bean notified if other beans deployed/undeployed?" Watch "How have bean notified if other beans deployed/undeployed?" New topic
Author

How have bean notified if other beans deployed/undeployed?

Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
Is there a way for a bean to "register" with the container/server to be notifed of all beans that are deployed and undeployed?
Ghulam Rashid
Ranch Hand

Joined: Jan 14, 2002
Posts: 278
Probably you can achieve this by SNMP (WLS), but I am not sure. You need to dig more.
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
What server are you using?. If its weblogic 8.1, there is a very high chance that weblogic JMX might do this for you. You can register JMX Notification listerners with the MBeans you are interested in. In this case, EJB Mbean may be.
Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
right but i want a vendor neutral way of doing it. I was hoping there was something in the specs from Sun that made this possible.
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
Nope the ejb spec does not talk about notifications before/after deployment/undeployment. Either way i'm curious to know the use case that you are trying to address through those notifications.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How have bean notified if other beans deployed/undeployed?
 
Similar Threads
JBoss Startup and Shutdown classes
Changes in the DB disappear
EXCEPTION "Name Not Found Exception: ejb not bound "
Configuring Service MBean for Application
about transfering complex objects using AXIS