Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How have bean notified if other beans deployed/undeployed?

 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably you can achieve this by SNMP (WLS), but I am not sure. You need to dig more.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic