Need help on using ReplyTo jms option

2009-06-09 Thread cwilliamy2k
Hi, i have just started to use camel recently. But I'm having problem with setting some of the jms options. I am confuse what to pass to the replyTo option. Can I pass in an jms endpoint? for eg. ...?replyTo=queue: In addition, I would appreciate if someone can tell me how the replyTo option beha

issue with CXF with MTOM and dataformat as "MESSAGE"

2009-06-09 Thread trivedi kumar b
Hi, I have been trying to create a webserive using CXF by enabling MTOM option and setting the property "dataFormat" as "MESSAGE". When I am trying to send the requests from SOAP UI, I am getting the below exception at the server side: = INFO: Interceptor has

Re: Documenting the Camel DSL

2009-06-09 Thread Christian Schneider
Hi Charles, I have changed the page to directly show the EIP patterns. Greetings Christian Charles Moulliard schrieb: Hi Christian, I prefer to keep the links of the EIP in this page even if they point to the existing page for consistency reason. Regards, Charles Moulliard Senior Enterpri

ContextTestSupport version for camel-scala

2009-06-09 Thread hans couder
Hi, I'm using for my camel project the Scala DSL and would like to create some routes for testing in scala. Is there a scala version of CamelTestSupport or the camel-test module? Thx and regards, Hans Couder

Re: How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread Claus Ibsen
Hi Hold you horses. I had my editor at Camel 1.x. So I was looking at camel-mail for Camel 1.x In Camel 2.0 you can use the # on the mail endpoint directly to refer to a custom strategy. On Tue, Jun 9, 2009 at 3:13 PM, Claus Ibsen wrote: > On Tue, Jun 9, 2009 at 3:04 PM, rohitbrai wrote: >> >>

Re: How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread Claus Ibsen
On Tue, Jun 9, 2009 at 3:04 PM, rohitbrai wrote: > > Sorry for missing that - I am using the Camel 2.0 snapshot. > > > I am not using HTTPComponent at all. I am using the MailComponent, which is > created by camel. Can I set the HeaderFilterStrategy for the component, or I > need to create my own i

Re: How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread rohitbrai
Sorry for missing that - I am using the Camel 2.0 snapshot. I am not using HTTPComponent at all. I am using the MailComponent, which is created by camel. Can I set the HeaderFilterStrategy for the component, or I need to create my own instance of the component? Currently I am using smtp like th

Re: How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread Claus Ibsen
On Tue, Jun 9, 2009 at 2:38 PM, rohitbrai wrote: > > Is this applicable to the Mail component also? > > http://issues.apache.org/activemq/browse/CAMEL-915 > > "You can do this in Camel 2.0 in the URI by using the # syntax for lookup in > the registry." Yes that works for all components where you de

Re: How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread Claus Ibsen
On Tue, Jun 9, 2009 at 2:35 PM, rohitbrai wrote: > > How do I use a custom HeaderFilterStrategy on a SMTP endpoint? I saw the code > and I can see that SMTP component honors the HeaderFilterStrategy. But I am > not able to figure out how do I set it for the endpoint? When Camel creates a mail endpo

Re: How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread rohitbrai
Is this applicable to the Mail component also? http://issues.apache.org/activemq/browse/CAMEL-915 "You can do this in Camel 2.0 in the URI by using the # syntax for lookup in the registry." Regards, Rohit rohitbrai wrote: > > How do I use a custom HeaderFilterStrategy on a SMTP endpoint? I s

How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread rohitbrai
How do I use a custom HeaderFilterStrategy on a SMTP endpoint? I saw the code and I can see that SMTP component honors the HeaderFilterStrategy. But I am not able to figure out how do I set it for the endpoint? Thanks and Regards, Rohit -- View this message in context: http://www.nabble.com/Ho

Re: @Handler, @Body, @Header : question

2009-06-09 Thread Charles Moulliard
I was using camel 2.0-M1 where this annotation does not exist. I have switched to 2.0-SNAPSHOT. Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com On Tue, Jun 9, 2009 at 10:34 AM, Claus Ibsen wrote:

Re: @Handler, @Body, @Header : question

2009-06-09 Thread Claus Ibsen
On Tue, Jun 9, 2009 at 10:22 AM, Charles Moulliard wrote: > In which package is defined this annotation (@handler) ? > > What will happen if we have several @handler defined in a class ? They have different package (namespace) so its just like having two classes such as Message. You can use the ful

Re: @Handler, @Body, @Header : question

2009-06-09 Thread Charles Moulliard
In which package is defined this annotation (@handler) ? What will happen if we have several @handler defined in a class ? Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com On Tue, Jun 9, 2009 at 10:13 AM, C

Re: @Handler, @Body, @Header : question

2009-06-09 Thread Claus Ibsen
On Tue, Jun 9, 2009 at 9:51 AM, Charles Moulliard wrote: > Hi, > > If we add the following annotation @Handler to our method, can we continue > to use annotations like @Header, @Body as parameters ? Yes. @Handler is just a hint to Camel that it should prefer to use this one over any other methods.

@Handler, @Body, @Header : question

2009-06-09 Thread Charles Moulliard
Hi, If we add the following annotation @Handler to our method, can we continue to use annotations like @Header, @Body as parameters ? Example public class Bar { @Handler public String doSomething(@Header(name = "user") String user, @Body String body, Exchange exchange) { // proces