2 Replies Latest reply on May 27, 2003 4:08 AM by paultaylor

    Accessing JMSConnectionFactory

    paultaylor

      Hi Im trying to create a topic from within a class run by the scheduler. Im running JBOSS 3.2.1 using the default configuration.

      The class tries to get a TopicConnectionFactory as follows
      InitialContext ctx = new InitialContext();
      tConFactory = (TopicConnectionFactory)ctx.lookup(Constants.get("ConnectionFactory"));

      but jndi complains that ConnectionFactory is not bound

      it throws the following stacktrace
      javax.naming.NameNotFoundException: ConnectionFactory not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at com.vwssys.drive.ejb.notification.classes.TopicManager.init(TopicManager.java:60)
      at com.vwssys.drive.ejb.notification.classes.JB3NotificationService.perform(Unknown Sour

      at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1131)
      at org.jboss.mx.server.NotificationListenerProxy.handleNotification(NotificationListener

      at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcas

      at javax.management.timer.Timer.sendNotifications(Timer.java:441)
      at javax.management.timer.Timer.access$000(Timer.java:31)
      at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:612)
      at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
      at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:225)

      have I got to set something up the JBOSS MQ appears to be running as various test queues and topics are listed at start up.

      Thanks Paul