Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can JMX Access EAR files instead of JARs?

 
David McWilliams
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic