This is what I have setup already:   

  CamelContext context = new DefaultCamelContext();
        Context jndiContext = null;
        Hashtable<String, String> env;
        env = new java.util.Hashtable<String, String>();
        env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
        env.put(javax.naming.Context.PROVIDER_URL, "t3://xx.xx.xx.xx");
        env.put("weblogic.jndi.createIntermediateContexts", "true");
        try {
            jndiContext = new javax.naming.InitialContext(env);
        } catch (NamingException e) {
            e.printStackTrace();
        }

        TopicConnectionFactory topicConnectionFactory =
(TopicConnectionFactory) jndiContext.lookup("jms.SpecialConnectionFactory");
        context.addComponent("wmq",
JmsComponent.jmsComponentAutoAcknowledge(topicConnectionFactory));
        context.addRoutes(new WeblogicRouteBuilder());
        context.start();



--
View this message in context: 
http://camel.465427.n5.nabble.com/createTopic-jms-GeneralTopic-is-invalid-tp5735929p5735931.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to