2 Replies Latest reply on May 4, 2005 6:16 AM by bha

    NamingException in MBean

    bha

      Hi,

      MBean Short desc :
      Main goal is to produce JMS messages on a specified Queue as files are uploaded in specified directories. It works fine when deployed on a running jboss but I still experience troubles when JBoss is restarted.

      Troubles:
      1 - ConnectionFactory (JMS) is not yet bound at startup, so I get NamingException.
      2 - Dependencies declared in mbean seem ignored at startup.

      I've tweaked my code to retry getting my connection factory later but'id prefer make shure ConnectionFactory is bound before starting my MBean.

      How can I do that ?
      Thanks

        • 1. Re: NamingException in MBean
          dimitris

          Obviously your dependency is not working. Maybe try to depend on the target Queue, look in the jboss.mq.destination domain in the jmx-console.

          • 2. Re: NamingException in MBean
            bha

            Thanks for reply,

            Tried, but does not work better.

            Much of code in this mbean is not of my own so, I've worked around with a singleton factory provider. I think it's an too-early call (at instantiation-time rather start time...)