Hello,

We are connecting to JMS Server from ServiceMix(3.3.2) using the
servicemix-jms component.
We are using jndi-lookup as shown below
   <jee:jndi-lookup id="connectionFactory" jndi-name="MYJNDINAME1">
        <jee:environment>
           
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
            java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
            jnp.disableDiscovery=true
            jnp.timeout=60000
            java.naming.provider.url=jnp://host.domain.com:1099
        </jee:environment>
    </jee:jndi-lookup>

But i want support context lookup within context lookup the following is
done with plain Java code.

        try
        {
            Context lInitialContext = (Context)
aInContext.lookup("MYDOMAIN1");
            return (TopicConnectionFactory)
lInitialContext.lookup("MYDOMAIN2");
        }
        catch (NamingException e)
        {
            System.out.println("JNDI API lookup failed: " + e.toString());
            throw e;
        } 

Please help me to convert the above to spring based jndi-lookup.

Thanks,
Diptesh. 

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Need-help-in-configuring-jndi-lookup-for-JMS-client-tp5078364p5078364.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to