0 Replies Latest reply on Mar 23, 2009 6:37 PM by rahul parashar

    Jboss Mbean invokation

    rahul parashar Newbie

      Hi,

      I am using Jboss as my application server , and trying to invoke an MBean through java code.
      My class extends org.jboss.system.ServiceMBeanSupport ,
      the MBean name is--> jboss.jca:name=superPnrDB2DS,service=ManagedConnectionFactory

      and my code snippet is
      ObjectName objName=new ObjectName("jboss.jca:name=superPnrDB2DS,service=ManagedConnectionFactory");

      The problem that i am facing now, is that this works perfectly fine for some of the environments , but does not work in others, even though the same version of Jboss 4.2 is being used , and the error is

      ||||ERROR||com.g2switch.serverstatus.ServerMBeanService||http-clyde/10.194.69.25-8080-1|initializeDBdetails : InstanceNotFoundExceptionjboss.jca:name=superPnrDB2DS,service=Managed
      ConnectionFactory| .

      Please help me in trying to resolve this problem.

      Regards
      Rahul