Help with setting multiple parameters with SQL

2012-06-04 Thread dmhatre
Hi Folks, I am using SQL component and trying to insert a message in database. My route: = I need help setting the parameters from dtccprocessor so that i can just set the body in pr

Re: Transacted vs DeadLetterQueue

2012-06-04 Thread Christian Müller
If you should not loose messages, you should use a transacted route and leverage on the ActiveMQ redelivery capabilities [1]. [1] http://activemq.apache.org/redelivery-policy.html Best, Christian On Mon, Jun 4, 2012 at 9:51 PM, gramanero wrote: > I'm wondering if there are any sort of best pra

Re: AWS-SQS not able to reach amazon queue

2012-06-04 Thread Christian Müller
Your endpoint configuration looks good. Must something wrong with your credentials or firewall... You could try to run the integration test at [1] with your credentials and see whether it works. And make sure your accessKey or privateKey doesn't contain character you has to escape in your endpoint

Re: Enriching invocationbean gives null body

2012-06-04 Thread anoordover
I was expecting this reaction. It doesn't matter. I've found a solution: I've made a processor which sets the data on the out of the exchange. -- View this message in context: http://camel.465427.n5.nabble.com/Enriching-BeanInvocation-gives-null-body-tp5713967p5713994.html Sent from the Camel -

Transacted vs DeadLetterQueue

2012-06-04 Thread gramanero
I'm wondering if there are any sort of best practices or pros/cons to using either the dead letter queue or transactions when errors occur while pulling off messages from a queue and attempting to route them to a cxfrs endpoint that may not be available. For example, say I have the following route

Re: Enriching invocationbean gives null body

2012-06-04 Thread Christian Müller
Could you upgrade to a newer (and still supported) version of Camel and check whther this issue still exists? Camel 2.4 was released almost 2 years ago and isn't supported anymore. Best, Christian Sent from a mobile device Am 04.06.2012 18:45 schrieb "anoordover" : > We use Camel 2.4.0 to hide i

Re: Unable to set replyManagerExecutorService on jms endpoint

2012-06-04 Thread Babak Vahdat
Hi I did remove that option from the documentation. Nevertheless feel free to open a JIRA in case you've got a concrete use case for this customization. Babak -- View this message in context: http://camel.465427.n5.nabble.com/Unable-to-set-replyManagerExecutorService-on-jms-endpoint-tp5713949p5

Re: ThrottlingInflightRoutePolicy

2012-06-04 Thread gramanero
Perfect. Thank you Claus! Your quick response is very much appreciated. -- View this message in context: http://camel.465427.n5.nabble.com/ThrottlingInflightRoutePolicy-tp5713970p5713973.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Message selector example

2012-06-04 Thread Scott England-Sullivan
Awesome :) On Mon, Jun 4, 2012 at 10:42 AM, Deepthi wrote: > Its working. > Changed exchange.getIn().setHeader("country", "US"); > > to exchange.getOut().setHeader("country", "US"); > > Thanks, > Deepthi > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Message-selec

Re: ThrottlingInflightRoutePolicy

2012-06-04 Thread Claus Ibsen
On Mon, Jun 4, 2012 at 7:23 PM, gramanero wrote: > I need to verify my understanding of the ThrottlingInflightRoutePolicy. I > have the following policy and route defined: > > class="org.apache.camel.impl.ThrottlingInflightRoutePolicy"> >         >         >         >         >   > >     >      

Re: Problem with Java DSL filter

2012-06-04 Thread addict
AHAAA!!! Stupid mistake. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-Java-DSL-filter-tp5713922p5713968.html Sent from the Camel - Users mailing list archive at Nabble.com.

ThrottlingInflightRoutePolicy

2012-06-04 Thread gramanero
I need to verify my understanding of the ThrottlingInflightRoutePolicy. I have the following policy and route defined: http://localhost:/MyService"; pattern="InOnly"/> My understanding is that, after each completed exchange t

Enriching invocationbean gives null body

2012-06-04 Thread anoordover
We use Camel 2.4.0 to hide infrastructure. So camel sends an InvocationBean over JMS. When an exception is raised we want to enrich the message on the DLQ with information about the exception being raised. To do this we configure an onException in spring xml. If we do nothing in this "onException"-

Re: Using CamelHttpTransportServlet

2012-06-04 Thread domiko
Hey Willem, I've used a Spring DispatcherServlet to load the context specifying the appropriate load-on-startup order. Good news: My CamelServlet now works and my CamelContext loads fine Bad news: My CXFServlet for SOAP services doesn't work anymore, it thinks it's loaded outside an ApplicationCon

Re: Camel activemq and Tomcat (Jetty running inside Tomcat)

2012-06-04 Thread Claus Ibsen
On Mon, Jun 4, 2012 at 6:14 PM, semecamel wrote: > I deployed my camel war to tomcat, but Jetty can started too inside tomcat. > Any idea? Hi Please spend more time to write more detailed mails when asking for help. Writing one line of text is not giving much detail. Read this page first http:/

Camel activemq and Tomcat (Jetty running inside Tomcat)

2012-06-04 Thread semecamel
I deployed my camel war to tomcat, but Jetty can started too inside tomcat. Any idea? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-activemq-and-Tomcat-Jetty-running-inside-Tomcat-tp5713963.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problem with Java DSL filter

2012-06-04 Thread Claus Ibsen
On Mon, Jun 4, 2012 at 5:31 PM, addict wrote: > Yes Claus, when the routes execute for the first time tag will be null, > however any subsequent time tag will be having the string value assigned to > it (provided header has attribute tag which is having != null value, which > is the case with us).

Re: Camel 2.6.0

2012-06-04 Thread Hadrian Zbarcea
Apache mirrors only serve actively supported versions. Hadrian On 06/04/2012 04:50 AM, domiko wrote: Hey Claus, Thanks for the link. I was going through this link : http://www.apache.org/dyn/closer.cgi And apparently the mirrors only serve the last 3 versions. Thanks again. rgds, Dominique. -

Re: Problem with Java DSL filter

2012-06-04 Thread addict
Yes Claus, when the routes execute for the first time tag will be null, however any subsequent time tag will be having the string value assigned to it (provided header has attribute tag which is having != null value, which is the case with us). However on debugging i could see on each invocation t

Re: Message selector example

2012-06-04 Thread Deepthi
Its working. Changed exchange.getIn().setHeader("country", "US"); to exchange.getOut().setHeader("country", "US"); Thanks, Deepthi -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805p5713959.html Sent from the Camel - Users mailing list arch

Re: Using CamelHttpTransportServlet

2012-06-04 Thread domiko
Nevermind my question. A similar question was asked earlier ... http://camel.465427.n5.nabble.com/Camel-and-Tomcat-td3386793.html -- View this message in context: http://camel.465427.n5.nabble.com/Using-CamelHttpTransportServlet-tp4832859p5713950.html Sent from the Camel - Users mailing list arc

Re: Unable to set replyManagerExecutorService on jms endpoint

2012-06-04 Thread Babak Vahdat
Just realized that there WAS / IS NEVER a setter method available for that property (replyManagerExecutorService) so no wonder why it doesn't work for you. This option should be definitely removed from the documentation which I will do later today in case nobody shouts out. Babak -- View this me

Re: Unable to set replyManagerExecutorService on jms endpoint

2012-06-04 Thread PhilBurress
We are on Camel 2.6. -- View this message in context: http://camel.465427.n5.nabble.com/Unable-to-set-replyManagerExecutorService-on-jms-endpoint-tp5713949p5713955.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Unable to set replyManagerExecutorService on jms endpoint

2012-06-04 Thread Babak Vahdat
Hi Which version of Camel do you use? I assume you ran that logic directly using the trunk code, right? At least for the upcomming 2.10 you can't make use of the replyManagerExecutorService option anymore as it has been removed, see: https://issues.apache.org/jira/browse/CAMEL-5309 I assume tha

RE: How can FTP Component connect to FTP Server via GXS Proxy

2012-06-04 Thread bbuzzard
James I use camel ftp2 all the time, but I’ve never had to do the double user login. Have you? From: James Carman [via Camel] [mailto:ml-node+s465427n5713832...@n5.nabble.com] Sent: Saturday, June 02, 2012 3:14 AM To: Billy Buzzard Subject: Re: How can FTP Component connect to FTP Server via GXS

Re: Using CamelHttpTransportServlet

2012-06-04 Thread Willem Jiang
As you are using Spring to load the configure, it cann't tell if the camel transport servlet is started or not If you are using camel 2.6.0. I'm afraid you need to upgrade the camel version, or just back port the camel-servlet part to camel 2.6.0. On Mon Jun 4 17:08:50 2012, domiko wrote: Hey

Unable to set replyManagerExecutorService on jms endpoint

2012-06-04 Thread PhilBurress
Trying to use a custom replyManagerExecutorService (defined as a threadPoolProfile in the camel context) for request/reply as follows: At startup, I get this error: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jms://queue:orderRequestQueue?preserveMessageQos=true

AWS-SQS not able to reach amazon queue

2012-06-04 Thread Gnanaguru S
Hi I was looking over the Amazon SQS component from http://camel.apache.org/aws-sqs.html I was successful in creating a simple route based on the documentation. But I am little confused about some configuration parameters which are mandatory or not. I have the access key and secret key from a

Re: changing context path in OSGI from "/cxf" to "/"

2012-06-04 Thread Scott England-Sullivan
Hi Christian, Willem's suggestion is correct. I have implemented your use case in the past and found sing the OSGi HTTP Service to deploy CXF WS instances to restrictive. Using Camel to act as the HTTP Proxy to the Beans or Services offers far more flexibility. In addition to being able to prox

Re: Dead Letter Channel /Error Handling / Logs

2012-06-04 Thread Hervé BARRAULT
Hi, i finally find the option needed : onException(Exception.class) .handled(false) .setExchangePattern(ExchangePattern.InOnly) .to("vm:dead-letter"); from("cxf:bean:myCXFEndpoint") .errorHandler(defaultErrorHandler().logHandled(false).logStackTrace(false).logExhausted(false)) .process(preProcess

Dead Letter Channel /Error Handling / Logs

2012-06-04 Thread Hervé BARRAULT
Hi, I defined a simple route with camel-cxf : from("cxf:bean:myCXFEndpoint") .process(preProcessor_) When having an exception I have two logs (one from camel one from cxf). Now, i want to add an exception handling (to avoid the camel log and do some processing for the exception). fo

Re: Camel 2.6.0

2012-06-04 Thread Christian Müller
That's the good thing in Maven. Maven never forgets anything... ;-) [1] [1] http://search.maven.org/#artifactdetails|org.apache.camel|apache-camel|2.6.0|pom Best, Christian On Mon, Jun 4, 2012 at 10:50 AM, domiko wrote: > Hey Claus, > Thanks for the link. > > I was going through this link : ht

Re: Using CamelHttpTransportServlet

2012-06-04 Thread domiko
Hey Willem, I'm using Camel 2.6 (we cannot upgrade from Java 5) and I'm having issues with the Servlet component. I'm getting the following exception: 2012-jun-04 10:53:26 org.springframework.web.context.ContextLoader initWebApplicationContext ALLVARLIG: Context initialization failed org.apache.c

Re: Camel 2.6.0

2012-06-04 Thread domiko
Hey Claus, Thanks for the link. I was going through this link : http://www.apache.org/dyn/closer.cgi And apparently the mirrors only serve the last 3 versions. Thanks again. rgds, Dominique. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-6-0-tp5713783p5713932.html Se

Re: Support for nested properties in propertyplaceholder

2012-06-04 Thread Preben.Asmussen
Nice - logged https://issues.apache.org/jira/browse/CAMEL-5328 as an improvement /Preben -- View this message in context: http://camel.465427.n5.nabble.com/Support-for-nested-properties-in-propertyplaceholder-tp5713905p5713931.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Support for nested properties in propertyplaceholder

2012-06-04 Thread Claus Ibsen
Hi Ah this is more complicated. Can you log a JIRA for an improvement and schedule it for 2.11. On Mon, Jun 4, 2012 at 9:43 AM, Preben.Asmussen wrote: > Hi Claus > > I don't think this actually works in 2.9.1. See attatched project and how to > make it work using spring > http://camel.465427.n5

Re: migration camel attachment problem

2012-06-04 Thread mathieuJ
i passed from camel 2.2.0 to 2.8.4 and from cxf 2.4.6 to 2.2.9. my wsdl is (i cut it a little): http://cxf.apache.org/bindings/xformat"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="X" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xs="http://www.w3.or

Re: Support for nested properties in propertyplaceholder

2012-06-04 Thread Preben.Asmussen
Hi Claus I don't think this actually works in 2.9.1. See attatched project and how to make it work using spring http://camel.465427.n5.nabble.com/file/n5713926/props.zip props.zip /Preben -- View this message in context: http://camel.465427.n5.nabble.com/Support-for-nested-properties-in-prop

Re: Problem with Java DSL filter

2012-06-04 Thread Claus Ibsen
On Mon, Jun 4, 2012 at 7:33 AM, addict wrote: > public class Test extends RouteBuilder { > > >        private volatile String tag = null; >        @Override >        public void configure() throws Exception { >                from("http://url/a.csv";) >                                .filter(heade

Problem with Java DSL filter

2012-06-04 Thread addict
public class Test extends RouteBuilder { private volatile String tag = null; @Override public void configure() throws Exception { from("http://url/a.csv";) .filter(header("Tag").isNotNull()) .f