3 Replies Latest reply on Sep 2, 2002 11:20 PM by onyii5119

    QueueConnectionFactory not bound

    fstarsinic

      For some reason "QueueConnectionFactory" is not bound
      inside jboss
      javax.naming.NameNotFoundException: QueueConnectionFactory not bound

      but when i try a simple ctx.lookup("QueueConnectionFactory") from a simple java app outside jboss, it works just fine.

      any ideas?
      thanks,
      frank

        • 1. Re: QueueConnectionFactory not bound

          If using JBoss 2.4.4, try to remove the DLQ-Config-entry
          out of the standardjboss.xml. If set (in the section
          for MSB's), the ConnectionFactory seems automatically looked up in java:/ConnectionFactory.

          It seems to be good approach not to look up the Queue- or TopicConnectionFactory directly from your client-app - use the lookup for ConnectionFactory (or. in this case java:/ConnectionFactory instead) and typecast the result to the factory you need.

          • 2. Re: QueueConnectionFactory not bound
            mafentakis

            I'm using JBoss.3.0.0 and I also name-not-bound exception.

            I tried also the
            Object tmp =
            iniCtx.lookup("java:/QueueConnectionFactory");

            but the Problem persist...

            regarts,
            Manolis

            • 3. Re: QueueConnectionFactory not bound
              onyii5119

              If you lookup "ConnectionFactory" it will work. See the statement below.

              QueueConnectionFactory qcf = (javax.jms.QueueConnectionFactory)
              context.lookup("ConnectionFactory");

              Jonathan