Re: issue with CXF - Payload

2009-06-25 Thread trivedi kumar b
Hi Willem, I did that as you mentioned: exchange.getOut().setBody(response); It is also giving the same error. Attaching the router and log trace for your reference. Thanks, Trivedi Router: http://www.nabble.com/file/p24215511/XDSbRegistryRoute.java XDSbRegistryRoute.java Trace: http://www.na

Re: issue with CXF - Payload

2009-06-25 Thread trivedi kumar b
Hi Willem, Thank you for the quick response. I am using camel 1.6.0 version and are there any issues associated with camel-cxf? if they are any, pls let me know how critical they are. Thanks, Trivedi willem.jiang wrote: > > Hi, > > If you want the set the response into the exchange you need

Re: Can a camel route be run as a batch (peridiocally) in ActiveMQ config

2009-06-25 Thread Claus Ibsen
On Fri, Jun 26, 2009 at 1:21 AM, Serge Merzliakov wrote: > > Hello, >   I have created a simple camel route which copies messages from one JMS > queue to another. When I insert this into my activemq.xml config file it > works fine. > >         >                 >                         >          

Re: JMSReplyTo in 2.0-M2

2009-06-25 Thread Claus Ibsen
Hi Thomas To help with this I would like you to create a simple unit test / route that you use the I can use as base for an unit test to look into this. Feel free to create a ticket in JIRA and attach your file there. On Thu, Jun 25, 2009 at 10:17 AM, Thomas Jäckle wrote: > > Ok, here it is (sti

Re: issue with CXF - Payload

2009-06-25 Thread Willem Jiang
Hi, If you want the set the response into the exchange you need to set the out message body, just like this. exchange.getOut().setBody(response); BTW, there are lots of camel-cxf refactoring works are done in Camel 2.0. I don't know which version of camel are you using, can you tell me the versio

Re: how to delete email after processing it

2009-06-25 Thread Claus Ibsen
Hi Here is a code snippet from an unit test in camel 1.6.1, from the unit test MailFetchSizeTest from("pop3://jo...@localhost?password=secret&fetchSize=2&consumer.delay=5000" + "&deleteProcessedMessages=true").to("mock:result"); camel-mail will only delete the mail message i

Re: Using Camel with existing ActiveMQ server

2009-06-25 Thread Claus Ibsen
Hi Bryan excellent answer. I added a FAQ entry about this http://cwiki.apache.org/confluence/display/CAMEL/Exception+-+BeanDefinitionStoreException On Fri, Jun 26, 2009 at 5:53 AM, bwtaylor wrote: > > When Camel went from an activemq subproject to a top level apache project, > they changed the

Re: Faster!!

2009-06-25 Thread Claus Ibsen
Hi On Thu, Jun 25, 2009 at 8:14 PM, bwtaylor wrote: > > Thanks for the thoughtful answer! CAMEL-1078 looks like a good start, and I > see you pulled it in to 2.0.0 (much appreciated!!), so it seems progress is > coming. I also note that CAMEL-963 depends on 1078 and asks for JMS to JMS > handoffs

Re: Using Camel with existing ActiveMQ server

2009-06-25 Thread bwtaylor
When Camel went from an activemq subproject to a top level apache project, they changed the URIs for their xml schemas to reflect this in Camel 2.0. To fix this, in activemq.xml change all occurrences of http://activemq.apache.org/camel/schema/spring to http://camel.apache.org/schema/spring

Can a camel route be run as a batch (peridiocally) in ActiveMQ config

2009-06-25 Thread Serge Merzliakov
Hello, I have created a simple camel route which copies messages from one JMS queue to another. When I insert this into my activemq.xml config file it works fine. Is there a way of running t

Re: Using Camel with existing ActiveMQ server

2009-06-25 Thread buzzterrier
Thx. I need to leverage Camel 2.0's async. When I upgrade the camel 1.5 resources in activeMQ (5.2) I get: ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mapping: http://activ

how to delete email after processing it

2009-06-25 Thread ybrown
Hello, I am very new to camel and I am trying to read emails via pop3s and delete them if they had been successfully processed. if I try to do the this: from("pop3s://n...@gmail.com?password=xxx" + "&deleteProcessedMessages=true"); I get an exception stating that it is unknown parameter "deletePr

Re: Faster!!

2009-06-25 Thread Hadrian Zbarcea
Bryan, Many thanks for sharing your experience. We did not get a lot of feedback/comments in the recent months about the performance characteristics of Camel 2.0. We are committed to listening *very* carefully to what the community has to say and I encourage you to share as much as you

Re: Faster!!

2009-06-25 Thread bwtaylor
Thanks for the thoughtful answer! CAMEL-1078 looks like a good start, and I see you pulled it in to 2.0.0 (much appreciated!!), so it seems progress is coming. I also note that CAMEL-963 depends on 1078 and asks for JMS to JMS handoffs to be comparable to native JMS. That's slated for 2.1. This ma

issue with CXF - Payload

2009-06-25 Thread trivedi kumar b
Hi, I am trying to create Webservices using CXF and "PAYLOAD" as dataformat. I am facing the issue with returning the response from the webservice..i.e only with PAYLOAD OPTION. I am keeping the response thing in the exchange.getIn().setBody(response).. this is giving me the below error:

Re: Problems with JMS messages being dropped by camel when restarting the context

2009-06-25 Thread Tim83
Claus Ibsen-2 wrote: > > Hi > Stopping / shutting down is hard. We have debated this before and would in > the future look into how we can make it better. > > Are you having AMQ embedded with Camel that you stop, or is AMQ a remote > broker? > > Claus Ibsen > Apache Camel Committer > > Open S

Re: Camel FTP Endpoint doesn't work?

2009-06-25 Thread Aman Chandna
Commons-net-2.0.jar should be in your classpath,older versions of this jar has some issues . Your route can hang after logging into FTP server.This is found while testing with commons-net-1.4.1.jar DavidArthurScott wrote: > > uri="ftp://myusern...@mptnas/public/outgoing/Shapefiles?password=m

Re: @Consume creates multiple consumers when using multiple camel contexts

2009-06-25 Thread Claus Ibsen
Hi I have commited a fix on camel trunk (eg 2.0) If possible could you test it in your environment? You can grap the source and build or get a SNAPSHOT from a maven repo when its updated. Details at Camel download page On Thu, Jun 25, 2009 at 10:19 AM, Claus Ibsen wrote: > Hi > I created a tic

Re: Anticipated final release schedule for 2.0

2009-06-25 Thread Claus Ibsen
Hi On Thu, Jun 25, 2009 at 10:44 AM, iansrobinson wrote: > > Congratulations on the milestone 2 release. > Thanks it was long overdue in fact. But we decided at one point to go for a bigger refactor in the async API that postponed at M2 release. So I do hope people upgrade to it and give it a go

Anticipated final release schedule for 2.0

2009-06-25 Thread iansrobinson
Congratulations on the milestone 2 release. Do you have any estimate of when you might have a final release for version 2? (An indication of whether it would be in the order of weeks or months would be great - unless you have a more detailed schedule in mind.) I ask so that I can set expectations

Re: Faster!!

2009-06-25 Thread Claus Ibsen
Hi Thanks a lot for sharing this great benchmark with us. Camel was not designed with ultra fast performance in mind. It was after all making integration easier. So there is of course a trade off when Camel does the routing for you. However we are paving the road in post Camel 2.0 timeframe to h

Re: @Consume creates multiple consumers when using multiple camel contexts

2009-06-25 Thread Claus Ibsen
Hi I created a ticket to track this https://issues.apache.org/activemq/browse/CAMEL-1758 And is currently working on implementing it. A new context attribute is added to the various annotations that allows you to specify a particular camel context id it should apply. On Thu, Jun 25, 2009 at 7:

Re: JMSReplyTo in 2.0-M2

2009-06-25 Thread Thomas Jäckle
Ok, here it is (still simplyfied): Camel side: -- from("vm:someQueue") .process(new Processor() { public void process(Exchange exchange) throws Exception { // processing exchange.getIn() and filling "someMap" // ... Message out = exchange.getOut(); out.setB

Faster!!

2009-06-25 Thread bwtaylor
I've been doing the simplest possible performance/benchmark test on Camel. I took a stock activemq 5.2 with camel 1.5 and the example.A to example.B route, bumped up the queue memory to 50m and ran ant producer -Dmax=1 -Dverbose=false -Dsubject=example.A from the example directory. It took

Re: Best Approach/Example for resubmission to JMS queue from a retry queue

2009-06-25 Thread Claus Ibsen
On Thu, Jun 25, 2009 at 9:08 AM, Serge Merzliakov wrote: > > Hello, > I would like some advice on the best way to use Camel (1.5), Spring > (2.5.6), XML and JMS (activeMQ 5.2) to RELIABLY resubmit messages from a > retry queue back to original destination queue: > >1. listen for messages

Re: Best Approach/Example for resubmission to JMS queue from a retry queue

2009-06-25 Thread Claus Ibsen
Hi Have you looked at what AcitveMQ support for redelivery. Its after all this broker that should handle it. Maybe it has some strategies to do what you want. There is an ActiveMQ user forum as well. And a new book in the writing - ActiveMQ in Action. On Thu, Jun 25, 2009 at 9:08 AM, Serge Mer

Re: JMSReplyTo in 2.0-M2

2009-06-25 Thread Claus Ibsen
Hi Can you provide a little sample with this issue. Its easier to dig into when I got more code. Its easier to look into when you have the "full view" of the code instead of small snippets. On Thu, Jun 25, 2009 at 9:09 AM, thomas jaeckle wrote: > > Hello! > > I just updated from Camel 2.0-M1

JMSReplyTo in 2.0-M2

2009-06-25 Thread thomas jaeckle
Hello! I just updated from Camel 2.0-M1 to 2.0-M2 and now I have a problem with JMSReplyTo: I want to set an explicit JMSReplyTo-Queue, so that the JMS-consumer can respond to that queue. In 2.0-M1 it worked with this Code in a Processor before sending it via .to("jms:queue:myRequestQueue"): Mes

Best Approach/Example for resubmission to JMS queue from a retry queue

2009-06-25 Thread Serge Merzliakov
Hello, I would like some advice on the best way to use Camel (1.5), Spring (2.5.6), XML and JMS (activeMQ 5.2) to RELIABLY resubmit messages from a retry queue back to original destination queue: 1. listen for messages arriving on from a 'retry' queue 2. If message on 'retry' q