Could you please enable tracing in Camel and share the log file with us. Best, Christian
On Fri, Nov 23, 2012 at 11:21 AM, UDAYA <[email protected]> wrote: > Hi, > > I am a newbie to camel domain. I am trying to send a file to a JMS queue in > Websphere 7.0.0.11. A JSP is being used to send the message.The problem is > the file gets picked up but never reached the queue.The queue depth is > always shown as zero. > There is no MDb attached. Following is the code.Please help me.. > > > try{ > > CamelContext context = new DefaultCamelContext(); > > InitialContext ctx= new InitialContext(); > QueueConnectionFactory connFactory = (QueueConnectionFactory) > ctx.lookup("jms_Connection_Factory"); > > > > context.addComponent("jms",JmsComponent.jmsComponentAutoAcknowledge(connFactory)); > context.addRoutes(new RouteBuilder() { > public void configure() { > > > from("file:///usr2/SIR04699/SourceChannel").to("jms:AuditErrorQueue"); > } > }); > > > context.start(); > Thread.sleep(10000); > context.stop(); > > } > catch(Exception e) > { > out.println("Errors Added.." + e); > e.printStackTrace(); > } > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Websphere-JMS-Queue-Message-Consumer-tp5723156.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --
