3 Replies Latest reply on Mar 8, 2002 8:05 AM by adrian.brock

    Accesing an MBean via JNDI from client code

    cmasson

      Hi

      I am using JBoss 2.4.3 with Tomcat 3.2.3. I have written an MBean that is loaded correctly by JBoss. I now want call some method on the MBean from my application code - to that extent I have registered the MBean with the JNDI naming service.

      My application seems to lookup the Mbean correctly and trigger the method (a setter), but the value that was set seems to get lost, i.e. when I look at the MBean through Toplink Admin pages, the Mbean's attribute has not changed.

      Any help would be appreciated.
      Thanks
      Cornel.