This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JMX and JBOSS

 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I am doing some brainstorming to put together a plug-in for JBOSS Operations Network that will monitor a websphere application instance. Please forgive me if this is not the right forum for this question. JON uses 'agents' to discover and monitor JBOSS instances. What I want to do is develop an agent that specifically montiors a websphere instance. I know that the agent is expecting information in the JMX format, specifically, JMX statistics. What I am hoping to accomplish here is to determine how to implement a JMX 'conversation' between a JON agent and a websphere instance. Once I have this information I can then write code to monitor and hopefully manage some aspects of the websphere AS. Please give feedback. TIA.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are two parts to a JON agent:
1) the front end which communicates with JON. You will want to keep this the same even when monitoring websphere
2) the back end which gathers the data to be sent to JON. This you will need to change to gather the required data from websphere. First, you will have to find out how websphere provides the desired information. That might be via JMX or some other mechanism. Then you will need to know how to write code to gather that data.

I think that you are really asking about part #2. For this, you will have to ask in the websphere forum. I'll move this topic (actually, the topic will appear in both locations).
 
Dan Grindstaff
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply! I have found some example code at http://itdevworld.wordpress.com/2009/02/01/monitoring-a-secured-websphere-installation-through-joprrhq/. I am wondering if I can get away with replacing the code JMXServerComponent as directed by the example and create another class, WebsphereConnectionProvider, to hold the code from the example class of the same name.
 
Dan Grindstaff
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I have completed the java files for the agent but I notice that the files reference several jars I do not have. Assuming I can get my hands on these (mostly) mc4j libraries, should I include them in the overall jar? As far as I know it is not possible to jar a jar. TIA.
 
Marshal
Posts: 27211
87
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
No, as you suspected jar-in-jar isn't the way to go. Just collect up all the jars you need and make sure they are in the classpath.
 
It's never done THAT before. Explain it to me tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic