Jon, Jboss.net separates the Mbean (AxisService) from the Web-App (AxisServlet) part. This separation allows you to have several servlets with different contexts talking to the same Mbean service configuration which is quite useful IMHO.
The two instances get each other to know either via a static map indexed with the web-app installation path suffix (that was very nasty and until today) or via the servlet getting access to the MBeanServer through MBeanServerFactory.findMBeanServer(domain) and then doing invocations through an objectname given as one of the servlets init-parameters (that was what I checked into head today). Once you got the contact, you can aggregate both objects as close as you want them to be. Otherwise, it is fully legal to have Mbeans programmatically instantiated and registered/deregistered with the Mbean server (see the MBeanServer.registerMBean unregisterMBean calls). The question is only how many of those created by the Web Server you are willing to administrate ;-) Best, CGJ -----Ursprüngliche Nachricht----- Von: Jon Brisbin [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. September 2002 14:10 An: JBoss-user Betreff: [JBoss-user] Registering a servlet in JBoss MBean server I'd like to have a servlet registered in the MBean server. I first thought I'd just make it an MBean and deploy it like my other MBeans, using jboss.net as an example. It looks like I can't guarantee that the instance in the webapp is the one in the MBean server, though. Would it make sense to put some code in the servlet's init method to register itself and allow itself to be jmx-managed? I really want to be able to manage this servlet through the console if I can swing it. ===== Thanks! Jon Brisbin [EMAIL PROTECTED] 417.682.6157 (h/w) 417.825.3995 (c) __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user