Hi all,
I'm having a problem doing a lookup in a QueueConnectionFactory from a remote client application.
The jndi name is found but the lookup method always returns null.
I'm using JBoss 4.2.2GA, integrating with WebsphereMQ 6.0.
Here's the part of my code:
Properties prop = new Properties(); prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); prop.put(Context.PROVIDER_URL, "jnp://localhost:1099"); prop.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces"); ctx = new InitialContext(prop); qcf = (QueueConnectionFactory)ctx.lookup("jms/sadsxp/QCF"); if (qcf == null) System.out.println("null"); connection = qcf.createQueueConnection();