| Author |
Can JMX Access EAR files instead of JARs?
|
David McWilliams
Ranch Hand
Joined: Mar 14, 2009
Posts: 73
|
|
Hi all,
I have an ejb application deployed on Sun app server as an ear file. Inside the ear file I have a war and a jar.
I have exposed a class in my jar as a JMX MBean. I want to access its operations via JConsole. I deployed my ear file via the app server console in the Enterprise Applications section. I then added an MBean via the Custom MBeans section, selecting the 'skip' option (as the ear is already deployed). The problem I am having is that JConsole is not recognising the operations in the MBean. It only recognises them when I manually deploy the JAR file in the Custom MBeans section. The Custom MBeans section only mentions jar files.
My question is, can I not just deploy the ear file and have JConsole pick that up?
Any suggestions welcome,
David
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16482
|
|
|
I think this must be a question about the Sun app server, so let's move it to a suitable forum...
|
 |
David McWilliams
Ranch Hand
Joined: Mar 14, 2009
Posts: 73
|
|
I seperated the MBean logic from the ear file by putting it into a jar. The MBean can be deployed seperately now which is beneficial to me.
Thanks,
David
|
 |
 |
|
|
subject: Can JMX Access EAR files instead of JARs?
|
|
|