2 Replies Latest reply: May 23, 2003 4:03 AM by paultaylor RSS

Problem accessing ConnectionFactory

paultaylor Newbie

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

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

  • 1. Re: Problem accessing ConnectionFactory
    Joel Vogt Master

    what is Constants.get("ConnectionFactory") returning?

  • 2. Re: Problem accessing ConnectionFactory
    paultaylor Newbie

    The stack trace is:
    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)