And you only run the app for 2 seconds. You may want to give it more time to startup and connect to tibco.
As camel-jms is using spring jms, so you can also search the internet how to use tibco with spring jms as it would be the same configuration needed on the connection factory etc. On Fri, Nov 6, 2015 at 11:16 AM, james.seb7 <james.s...@gmail.com> wrote: > Hi , > > I'm using Apache Camel 2.15 with JMS in my application. Our JMS provider is > customized Tibco (tibjms). > I'm using Java DSL to define the Camel context, Routes etc. > The following code is for JMS connectivity with Apache Camel: > > public static void main(String[] args) throws Exception { > > CamelContext context = new DefaultCamelContext(); > ConnectionFactory connectionFactory=getJMSConnectionFactory(); > System.out.println("Topic connection factorty is ---->>"+ > connectionFactory); > > context.addComponent("jms",JmsComponent.jmsComponentAutoAcknowledge(connectionFactory)); > context.addRoutes(new RouteBuilder() { > @Override > public void configure() throws Exception { > from("jms:topic:/myTopic/UAT/:mcf") > .to("file://src/main/java/agn"); > > } > }); > ProducerTemplate template = context.createProducerTemplate(); > context.start(); > Thread.sleep(2000); > } finally { > context.stop(); > } > Here, I'm able to see the connectionFactory values as > "tcp://pmsjms1.com:50276;". But when I run the program I'm getting below > error : > > *Nov 06, 2015 7:20:03 AM > org.springframework.jms.listener.DefaultMessageListenerContainer > handleListenerSetupFailure > INFO: JMS message listener invoker needs to establish shared Connection* > > No messages are put into 'to' location from the topic mentioned in the from. > > Could anyone help me to resolve this ?. > > Thanks, > James > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-JMS-Issue-tp5773432.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2