Apr 16th, 2008, 09:18 AM
MBeans in glassfish?
has anyone out here so far bothered trying to use MBeans together with the glassfish application server? So far, I have found the Spring MBeans facility to be too convenient and accessible not to use it, but I'd surely like to have Spring-exposed MBeans also available to the outside world while running apps inside the glassfish container... Experiences on this combination of technologies, anyone?
TIA and best regards,
May 20th, 2008, 01:13 PM
You can configure your beans in spring and the glassfish expose them as usual via rmi, as the other mbeans in glassfish. Try:
jconsole and connect to "service:jmx:rmi:///jndi/rmi://mina.anarca.org:8686/jmxrmi"
in the advanced connections.
User and password of the glassfish admin.
Off course you have to change the address and port for your instance, but in the startup of glassfish you have that information in the server.log
May 20th, 2008, 09:12 PM
Remote GlassFish JMX Access
The blog entry Simple Remote JMX with GlassFish provides additional details regarding fsoares' suggestions.