I am getting the following stack trace from my mbean on startup when I call:
queueFactory = (QueueConnectionFactory)jndi.lookup("ConnectionFactory");
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:484)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:463)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
My jboss-service.xml has the following dependencies:
jboss:service=Naming
jboss.mq.destination:service=Queue,name=databaseImport
If I stop and start the mbean after it crashes on jboss startup it runs fine. Seems like a missing dependency.
Thx,
dave s