3 Replies Latest reply on Dec 2, 2009 1:26 PM by user6460076

    OSB. WLST/MBeans .. Runtime Data and Operations

    thavemei
      Hello *,

      I'm having difficulties in gathering runtime statistics as well as invoking operations on OSB MBeans. Actually I can't open/find any OSB Mbeans at all. I'm using WLShell for MBean browsing as well as scripted WLST.

      Could somebody please post an example how to deal with OSB MBeans? Is there anything else to configure which I'm missing at this point?

      I would be happy if I could browse through some Business Service runtime statistics and/or stop and resume an endpoint. Product like MULE and ServiceMix allow the user to do so using standard JMX tools like MC4j or JConsole.

      any help or commente highly appreciated!!!
      \thomas
        • 1. Re: OSB. WLST/MBeans .. Runtime Data and Operations
          675595
          Thomas,
          http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/jmx_monitoring/example.html#wp1109828. shows example java code to get run time statistics.

          Thanks
          Manoj
          • 2. Re: OSB. WLST/MBeans .. Runtime Data and Operations
            thavemei
            thanks!! very helpfull. Could not find the example on the first run.
            • 3. Re: OSB. WLST/MBeans .. Runtime Data and Operations
              user6460076
              Dear,

              I try the exmple at http://download-llnw.oracle.com/docs/cd/E13159_01/osb/docs10gr3/jmx_monitoring/example.html
              Unfortunatelly, I have exception during execution.
              Have you a solution to help me ?

              ************************
              Failed to retrieve and reset statistics for all monitored proxy service ...
              java.lang.reflect.UndeclaredThrowableException
                   at $Proxy0.getPath(Unknown Source)
                   at tests.monitoring.ServiceStatisticsRetriever.getAndResetStatsForAllMonitoredProxyServices(ServiceStatisticsRetriever.java:131)
                   at tests.monitoring.ServiceStatisticsRetriever.collecteOnceGetAndResetStatisticsTask(ServiceStatisticsRetriever.java:551)
                   at tests.monitoring.ServiceStatisticsRetriever.main(ServiceStatisticsRetriever.java:595)
              Caused by: java.io.IOException
                   at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:156)
                   at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:79)
                   at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:338)
                   at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
                   at tests.monitoring.ServiceStatisticsRetriever$ServiceDomainMBeanInvocationHandler.initConnection(ServiceStatisticsRetriever.java:422)
                   at tests.monitoring.ServiceStatisticsRetriever$ServiceDomainMBeanInvocationHandler.invoke(ServiceStatisticsRetriever.java:438)
                   ... 4 more
              Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
                   java.io.EOFException]
                   at weblogic.jrmp.Context.lookup(Context.java:189)
                   at weblogic.jrmp.Context.lookup(Context.java:195)
                   at javax.naming.InitialContext.lookup(InitialContext.java:392)
                   at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:144)
                   ... 9 more
              Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
                   java.io.EOFException
                   at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286)
                   at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
                   at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
                   at weblogic.jrmp.BaseRemoteRef.invoke(BaseRemoteRef.java:221)
                   at weblogic.jrmp.RegistryImpl_Stub.lookup(Unknown Source)
                   at weblogic.jrmp.Context.lookup(Context.java:185)
                   ... 12 more
              Caused by: java.io.EOFException
                   at java.io.DataInputStream.readByte(DataInputStream.java:250)
                   at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228)
                   ... 17 more
              ************************

              My version :
              Oracle Service Bus Version: WebLogic Oracle Service Bus 10.3 Sat May 30 06:12:38 EDT 2009 1223943
              Oracle Weblogic Server Version: WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967

              Edited by: user6460076 on 2 déc. 2009 05:25