8 Replies Latest reply on Aug 23, 2003 5:54 AM by jai_vasanthan

    SNMP MBean clashes with JBoss Means

    monu

      Hi all,

      We have developed SNMP traps in our project for that we have used Java Dynamic Management Kit version 5.0. When we add SNMP traps to our java classes it is stopping other JBoss Mbeans services like, dynamic security manager, state manager and all. How can we integrate SNMP Mbeans to Jboss so that it shouldn’t stop JBoss Mean services?

      Please give your suggestion/info.

      Regards,
      Monu

        • 1. Re: SNMP MBean clashes with JBoss Means

          Can you explain the problem (stacktrace, code samples, etc).

          Although jbossmx supports the jmx spec, the jboss
          server uses propriatory features of jbossmx that
          jdmk doesn't have, so you cannot run jboss on top of
          jdmk. (Is that what you are trying to do?)

          On the other hand, if you are using jboss-2.x,
          there are some problems where jboss inadvertantly
          relies on some bugs in jmx1.0

          Regards,
          Adrian

          • 2. Re: SNMP MBean clashes with JBoss Means
            monu

            Hi,

            I am using JBoss3.2.1. When I enable snmp traps in my application it stops so many Jboss services and when i go and see jmx-console it only displays snmp services not jboss. Please suggest how should I design my application so that I can run snmp traps in JBoss.

            Thanks in advance,

            monu






            • 3. Re: SNMP MBean clashes with JBoss Means

              attach stack trace or server.log

              • 4. Re: SNMP MBean clashes with JBoss Means

                Your SNMP config is starting a new MBeanServer
                There is a fix for this in latest JBoss3.2 CVS,
                I can't remember whether the fix is in 3.2.2RC1?

                Regards,
                Adrian

                • 5. Re: SNMP MBean clashes with JBoss Means
                  monu

                  Hi Adrian,

                  I am registering my SNMP MBean after getting server instance like this.

                  ArrayList servers = MBeanServerFactory.findMBeanServer(null);
                  if (servers.size() > 0)
                  {
                  server = (MBeanServer) servers.get(0);

                  }
                  server. register(….);

                  It’s working fine now.

                  Thanks,
                  --Monu

                  • 6. Re: SNMP MBean clashes with JBoss Means
                    shushu

                    Hi.

                    I want to use snmp in my j2ee application, I have MBean implemented in the application, and I want to receive snmp request from outside.

                    What should I do?
                    What package do u use?

                    Thanks in advance.

                    Oded

                    • 7. Re: SNMP MBean clashes with JBoss Means
                      gooperaus

                      Hi all, We will use jmx to monitor our aplication which is based n Jboss, but we still should support SNMP to integrate this application to other application.

                      Anyone has the snmp on jboss document or experience?

                      Thanks u a lot!

                      • 8. Re: SNMP MBean clashes with JBoss Means
                        jai_vasanthan

                        Guys, we have ported our AdventNet SNMP Adaptor over JBoss 3.x versions in our product AdventNet ManageEngine JMX Studio,

                        It provides an out-of-the-box EAR Application to start up the SNMP Adaptor for JBoss as well as custom MBeans as well as provides a tool for generating user's MBeans from various data sources such as EJBs, Servlets, DB etc.,

                        Cheers,

                        Jayavasanthan.J
                        Project Leader
                        AdventNet ManageEngine JMX Studio
                        www.adventnet.com