1st method:
Write an MBean (extend org.jboss.system.ServiceMBeanSupport) and inside the 
startService() method make the call to your EJB - make a ./deploy/deploy.last 
folder and deploy your MBean in there.

2nd method:
Write an MBean (extend org.jboss.system.ListenerServiceMBeanSupport) and inside 
the handleNotification2() method make the call to your EJB. During 
serviceStart() call subscribe(true). Configure the subscription-list attribute 
to listen for the server started notification, as follows:


  | ..
  | <attribute name="SubscriptionList">
  |   <subscription-list>
  |     <mbean name="jboss.system:type=Server">
  |        <notification type="org.jboss.system.server.started"/>
  |     </mbean>
  |   </subscription-list>
  | </attribute
  | 

See also:
http://www.jboss.org/wiki/Wiki.jsp?page=FAQJBossJMX

http://www.jboss.org/wiki/Wiki.jsp?page=ExampleMinimalNotificationListener


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855250#3855250

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855250


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to