Re: How to get this done in Camel

2012-05-14 Thread Willem Jiang
Hi How about the route like this from("direct:in").to("http://somewhere";).bean(mybean, "process").to("your endpoint") You can store the parameter into the exchange property, and it will be copied across the route. On Tue, May 15, 2012 at 12:02 PM, soumya_sd wrote: > I've a route that > > 1.

Re: Handler is not getting called when calling external webservice using camel-cxf

2012-05-14 Thread bhushand
I am using handler definition as below, public class LoggingHandler implements SOAPHandler { As per the camel-cxf component documentation, PAYLOAD message type supports protocol handlers, hence I thought the handler defined above would be supported. I could not understand your second note "As ca

Re: Splitting XML but including attribute from parent-document

2012-05-14 Thread alexey-s
Hey. Read Splitter https://camel.apache.org/splitter.html Section "Using a Pojo to do the splitting", a class MySplitterBean. Change the method signature public List splitMessage (Message inMessage) So you will have access to the head of the input message. -- View this message in context: http

How to get this done in Camel

2012-05-14 Thread soumya_sd
I've a route that 1. invokes a http web url using "direct:in" and gets a response back and does some processing (parsing etc). 2. I need to send the parsed response to a bean that is dynamically created using some parameters that are part of my original message body. 3. Finally, I need to send

Re: Graceful shutdown not graceful at all

2012-05-14 Thread PhilBurress
Startup is auto. We've never been able to successfully get jconsole working with WAS. Here is our configuration: -- View this message in context: http://camel.465427.n5.nabble.com/Graceful-shutdown-not-graceful-at-all-tp5709579p5709695.html Sent from the Camel - Users mailing list archive at Na

Re: Handler is not getting called when calling external webservice using camel-cxf

2012-05-14 Thread Willem Jiang
Hi, I'm not sure what your Handler look like , but if you are using the PAYLOAD data format, you handle may not be invoked. As camel-cxf component modify the interceptor chain to skip phases which may invoke your handle. On Mon May 14 21:42:06 2012, bhushand wrote: I have done the configurat

Re: Graceful shutdown not graceful at all

2012-05-14 Thread Willem Jiang
Can you show us the camel route, and how you start it. From the log I can tell you are using camel-jms component, but I need to more information to find out why there are hung threads. Maybe you can use Jconsole to find out the thread id, to see if it is related to Camel. On Tue May 15 05:41:

Re: dynamic endpoint in ftp component

2012-05-14 Thread Willem Jiang
Hi, Which version of camel are you using ? I just check the document, the move option could be an expression, which means it should support the simple language that you use. Did you try to set the move option directly with the expression without using the properties component? On Tue May

Re: Apache Camel : CXFRS Server : Need advice for Routing

2012-05-14 Thread Willem Jiang
Sergey shows you the way that CXF does. But if you want to route more than one cxfrs endpoint you may consider to use camel-jetty or camel-servlet to do such thing in generic way. On Sun May 13 23:42:23 2012, anand_tech wrote: Thanks Willem.. i actually was using something like that only, i

Splitting XML but including attribute from parent-document

2012-05-14 Thread pkleczka
Hi I have an xml file that I am trying to split but for each split file I want to include an attribute from the parent node. Suppose I have an "AllOrders" document and it has a "BatchNumber" attribute. The "AllOrders" node contains many "Order" nodes. I have the following route, which works great

Graceful shutdown not graceful at all

2012-05-14 Thread PhilBurress
We're running into an issue where messages appear to be stuck "in-flight" and never leave that state. If we shut down the server (we use a customized shutdown policy of 30 seconds), we see this... DefaultShutdo I org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask run Route: messageInRoute

dynamic endpoint in ftp component

2012-05-14 Thread cbuxbaum
Hi, I am trying to create a dynamic endpoint for ftp, that reflects an inbox that contains the current date, like this: All of the placeholders work fine, coming from a properties file, except for the {{asianinspection.inbox}} property: asianinspection.inbox=interfaces/ai/interface/order/inb

Re: Question on the proper usage of Camel

2012-05-14 Thread Nestor Urquiza
Very interesting thread. I will subscribe to it in case we get more feedback but I can see extremely valuable points here. Camel as any other tool can be miss used. This thread has inspired me to http://thinkinginsoftware.blogspot.com/2012/05/on-bpm-workflow-documentations-and-ba.html blog once

Re: Create a new Camel component via Scala-Component-Archetype?

2012-05-14 Thread megachucky
It is really easy to create a new archetype this way. I will create an archetype "camel-archetype-component-scala" soon! -- View this message in context: http://camel.465427.n5.nabble.com/Create-a-new-Camel-component-via-Scala-Component-Archetype-tp5708543p5709119.html Sent from the Camel - Users

Handler is not getting called when calling external webservice using camel-cxf

2012-05-14 Thread bhushand
I have done the configurations as below, http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:jaxws="http://cxf.apache.org/jaxws"; xmlns:cxf="http://camel.apache.org/schema/cxf"; xsi:schemaLocation="

Re: getting error while calling external web service from camel route

2012-05-14 Thread bhushand
I am finally able to do it with below configuration http://localhost:9080/SampleWebService/PrintPersonNameService"; wsdlURL="com/test/service/echo/PrintPersonNameService.wsdl" endpointName="s:PrintPersonNamePort" serviceName="s:PrintPersonNameService

Re: Load Balancing

2012-05-14 Thread Rocco Gallo Citera
I did the following: I define a client with a timer triggering every 10 ms and a HTTP endpoint, then I wrote a server with a Jetty enpoint and a Hazelcast endpoint to get items from a queue full of items, and started a client and two servers adding a load balancing in the client. Instead of getting

Re: Understanding exchang

2012-05-14 Thread Hilde
That's why the component jpa has excluded the outer Exchange! -- View this message in context: http://camel.465427.n5.nabble.com/Understanding-exchang-tp5703217p5708879.html Sent from the Camel - Users mailing list archive at Nabble.com.