Re: Handling timeout in Recipient list with aggregation statergy

2016-04-27 Thread Sven Bauhan
On 04/27/16 15:36, ravi narayanan wrote: Hi Claus, I tried implementing timeout aware aggregation strategy and implemented timeout method in it. now when ever timeout happens(complete Timeout/Partial Response) the Old exchange message is coming to timeout method. Of course it is the old exchange,

Re: Blueprint(Spring) DSL vs JAVA DSL

2016-04-27 Thread souciance
Hello, If you are deploying to an OSGI based environment like Karaf, I would advise to use blueprint to start your routes and then use the java dsl to build and do all other functionality within the routes. It makes it easier to deploy and also allows you to use the power of the java dsl any way y

How to implement AsyncCallback for AsyncProcessor?

2016-04-27 Thread Sven Bauhan
Hi, I found the explanation for an AsyncProcessor: http://camel.apache.org/asynchronous-processing.html But I do not understand how to implement the corresponding AsyncCallback. I did not find any example, how this can be done. As the done() method just gets the boolean flag, I do not know how

Re: Blueprint(Spring) DSL vs JAVA DSL

2016-04-27 Thread Matt Sicker
Historically, I started using pure blueprint camel routes, then moved to the Java DSL + blueprint to manage the beans, and now I'm working on migrating to using DS instead of blueprint for managing the beans/components/services as well. Since you'll be running on OSGi, you should know some caveats

Re: Blueprint(Spring) DSL vs JAVA DSL

2016-04-27 Thread Quinn Stevenson
In the implementations I’ve done, we use a mix of Java DSL and Blueprint. We have some common RouteBuilders, and we use Blueprint to configure them and wire them into a Camel Context. It’s worked very well for us. We’ve done some similar things using camel-scr, but the configuration got a bit

Re: Blueprint(Spring) DSL vs JAVA DSL

2016-04-27 Thread Matt Pavlovich
I agree with Brad's points and if you asked 100 people you'd probably get a fairly even mix of preferences. I would favor Blueprint over Spring. I've been helping organizations adopt Camel for 8+ years and have generally found blueprint to be the best mix for long term support and ramp-up of j

Re: Blueprint(Spring) DSL vs JAVA DSL

2016-04-27 Thread Brad Johnson
I use blueprint, never use the graphical editor, and use quite a few Java classes anyway. One benefit to using Java classes is you can unit test them directly with JUnit. To me the biggest benefit in the XML and blueprint are (a) easy configuration of endpoints, (b) management of OSGi services, (

Blueprint(Spring) DSL vs JAVA DSL

2016-04-27 Thread NikheelRanjan
The question is which one of the DSL implementation you want to use when you are going to use camel+jboss fuse based implementation. My points are: 1.Blueprints(similar to spring DM) are best supported in osgi based environments. 2. XML s not only reduce the number of classes but also if working in

Re: camel route not posting the message to mq(which has replyTo) from mq

2016-04-27 Thread Brad Johnson
You'll probably have to post a bit of the code/xml here. Try some log statements between them to see what is happening. On Tue, Apr 26, 2016 at 2:28 PM, swapna07 wrote: > I have following camel route, reading from a queue (btrRTTransReqQueue) > converting the message to another jaxb object, and

Re: Best Strategy to process a large number of rows in File

2016-04-27 Thread Brad Johnson
"When I log a message that contains 1000 lines I see line\rline2\rline3\r...line999 The split works when token is \\r. Why?" I'm not positive but it appears that something in the marshaling is escaping the backslash on the \r so when it writes it out you get \\r but I'm not sure. You could try th

Re: Handling timeout in Recipient list with aggregation statergy

2016-04-27 Thread ravi narayanan
Hi Claus, I tried implementing timeout aware aggregation strategy and implemented timeout method in it. now when ever timeout happens(complete Timeout/Partial Response) the Old exchange message is coming to timeout method. will the aggregate method gets invoked only when it gets response from all t

Camel FTP + Seda problems

2016-04-27 Thread semephor
Hello! I am having a strange problem when using the FTP and SEDA components together. If I do the below as a base test case: from("sftp://user@localhost?password=password&fileName=response.out&*delete=true*";). to("stream:out"); .. I can see that when I place the file there, the

ActiveMQ Consumer stalled?

2016-04-27 Thread James Green
Got a Message Driven Consumer which the broker shows as connected but after a while it seems to stop accepting new messages. Nothing amiss in the logs, the whole process just appears stalled. I have just obtained a thread dump (see https://gist.github.com/jmkgreen/8c4e399520f731c9175ee1bad969261f

none of the policy alternatives can be satisfied in camel

2016-04-27 Thread Vivek_
Hi, Using Camel-Cxf 2.16.1, a wsdl address throw the error org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied. at org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(EndpointPolicyImpl.java:172)[cxf-rt-ws-policy-3.1.4.jar:3.1.4] at

Re: Convert xs:date in a XML to java.util.Date

2016-04-27 Thread catshout
I've attached the snippet .. route.xml .. and the input .. CAS_MON_EVENT_2.xml -- View this message in context: http://camel.465427.n5.nabble.com/Convert-xs-date

Re: Convert xs:date in a XML to java.util.Date

2016-04-27 Thread Walzer, Thomas
Hi Gerald, your snippets got lost. Maybe you could paste it as code. XPATH-EL can be given a result type (e.g. String.class). The rest could be done with plain Java or the jodatime library. http://camel.apache.org/xpath Cheers, Thomas. - Am 27.04.2016 um 12:09 schrieb catshout mailto:gerald.ka

Re: Handling timeout in Recipient list with aggregation statergy

2016-04-27 Thread Claus Ibsen
Impelement timeout aware aggregation strategy On Wed, Apr 27, 2016 at 12:32 PM, ravi21588 wrote: > Hi All, > > Iam calling two different endpoints with delimeter seperated,Parallel > Processing and timeout as 3000 ms in recipient list. > > I have mentioned aggregation strategy to aggregate the re

Handling timeout in Recipient list with aggregation statergy

2016-04-27 Thread ravi21588
Hi All, Iam calling two different endpoints with delimeter seperated,Parallel Processing and timeout as 3000 ms in recipient list. I have mentioned aggregation strategy to aggregate the response message. I need to frame a fault message when iam not getting response from both the end points. i t

Handling timeout in Recipient list with aggregation statergy

2016-04-27 Thread ravi narayanan
Hi All, Iam calling two different endpoints with delimeter seperated,Parallel Processing and timeout as 3000 ms in recipient list. I have mentioned aggregation strategy to aggregate the response message. I need to frame a fault message when iam not getting response from both the end points. i t

Convert xs:date in a XML to java.util.Date

2016-04-27 Thread catshout
Dear Camel community, I'm getting a XML structure like this START_DATE and END_DATE are defined as "xs:dateTime" datatype in the corresponding XSD. For further processing I need to convert these both into a format "MMdd HH:mm:ss.SSS". My idea was This fails due to "in.header.START_DATE"