• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Can JMX Access EAR files instead of JARs?

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 26786
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic