Re: InOut pattern issue with FTP.

2013-01-12 Thread satyaPrakash
I don't want to create another FTP endpoint to poll the reply files because in splitter I am splitting a big request file into small requests and uploading the request files on FTP in parallel threads[till this point my code is working] and want to aggregate the reply file by the same thread who ha

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-12 Thread Claus Ibsen
On Sat, Jan 12, 2013 at 1:18 AM, Chris Wolf wrote: > Hello Christian, > > I'm using 2.10.0. Ok, from your hint, I found: > http://camel.apache.org/scheduledroutepolicy.html > so that should be enough to get me going. > > Any ideas about the other issue? cast except when using jpa in > consumer

Re: Camel Exchange object query

2013-01-12 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 10:30 PM, gilboy wrote: > Hi > > Assume the following route: > > *From Endpoint A -> Processor B -> Processor C -> Processor D -> To Endpoint > E* > > From my understanding, the consumer for Endpoint A is responsible for > creating the exchange in this route. > > My questio

Re: MEP Query

2013-01-12 Thread Claus Ibsen
On Sat, Jan 12, 2013 at 12:01 AM, gilboy wrote: > Hi > > Assume I have the following route: > > *from(endpoint1).to(endpoint2).to(endpoint3).to(endpoint4) > * > What dictates the MEP on the exchange. Is it the consumer for endpoint1 > since it creates the exchange? > Yes its the consumer which in

Re: How to send a templated mail with attachment?

2013-01-12 Thread Christian Müller
Which Camel version do you use? How the stack trace looks like? Do you consider to provide a unit test to show the issue? Than it's easier for us to find/fix the issue. Best, Christian Am 11.01.2013 09:40 schrieb "Arjen Duursma" : > The same (missing attachments) seems to be happening to other

Re: InOut pattern issue with FTP.

2013-01-12 Thread Claus Ibsen
On Sat, Jan 12, 2013 at 8:40 AM, satyaPrakash wrote: > I don't want to create another FTP endpoint to poll the reply files because > in splitter I am splitting a big request file into small requests and > uploading the request files on FTP in parallel threads[till this point my > code is working]

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-12 Thread Christian Müller
It looks like the result of your JPA query is a list of Object/Entity arrays instead a list of Entities. Can you share your "basic query"? Can you set the log level of "org.apache.camel.component.jpa" to TRACE and share the log with us? Best, Christian On Sat, Jan 12, 2013 at 1:18 AM, Chris Wolf

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-12 Thread Christian Müller
And by the way, we are using OpenJPA 2.2.1 instead of 2.2.0, which you are using. Can you upgrade? Best, Christian On Fri, Jan 11, 2013 at 8:23 PM, Chris Wolf wrote: > I have a JPA endpoint setup as a consumer, just performing a basic > query. If I have consumeDelete=false configured, > then i

Re: Retrieve failed Route from deadLetterChannel ?

2013-01-12 Thread Claus Ibsen
Hi I have logged a ticket to let the route id be accessible for end users https://issues.apache.org/jira/browse/CAMEL-5959 On Fri, Jan 11, 2013 at 7:44 PM, ncolomer wrote: > Hi Camel community, > > I am facing a problem using the Camel's deadLetterChannel. > > I have several Routes that process

Re: Problem with calling a simple POJO after a route

2013-01-12 Thread Christian Müller
As Claus already mentioned in this thread, have a look at http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html . Best, Christian On Wed, Jan 9, 2013 at 5:01 PM, Mark wrote: > How can I keep the CamelContext running after I call start() in a > standalone java applicatio

Re: little issue with ActiveMQ Consumer having prefetch set to 0 (polling)

2013-01-12 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 3:27 PM, Marco Crivellaro wrote: > Any idea on how Client ID and Connection ID are created when connecting to > ActiveMQ? > I assume they are created by the JMS client (eg ActiveMQ). > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/little-iss

Re: Remove an advice

2013-01-12 Thread Christian Müller
Can you share your route and your unit test? Than it's easier (for me) to understand where your issues are. Have a look at the many AdviceWith* unit tests at [1]. [1] https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/interceptor/ Best, Christian On

Re: Retrieve failed Route from deadLetterChannel ?

2013-01-12 Thread ncolomer
Hi Claus, Thank you for your answer and the quick fix! This is exactly what I needed :) Best regards, Nicolas 2013/1/12 Claus Ibsen-2 [via Camel] < ml-node+s465427n5725448...@n5.nabble.com> > Hi > > I have logged a ticket to let the route id be accessible for end users > https://issues.apache.

Route branches identification for logging purposes ( CXFRS + operation name header condition)

2013-01-12 Thread Martin Stiborský
Hello, In my Camel project, I have exposed several cxf:rsServer on same address/port but listening on different root paths. Every root path then continue with more specific paths defined with CXF @Path. Which resource is requested is possible to find out thanks to CxfConstant.OPERATION_NAME. So on

Re: CXFRS: Share port number across bundles

2013-01-12 Thread Martin Stiborský
Hi Raul and Sergey, Guys please, could you explain more for me the "second option" ? I missed the point I guess. Thanks! On Jan 11, 2013 3:00 PM, "Sergey Beryozkin" wrote: > Hi Raúl > On 11/01/13 13:28, Raul Kripalani wrote: > >> Hi Sergey, >> >> Thanks for the quick answer. We were already on o

Re: Route branches identification for logging purposes ( CXFRS + operation name header condition)

2013-01-12 Thread William Tam
Here is a way to do it. I think you can structure your routes (one route per branch) to make it simpler to use JMX to monitor activities each branch. .when(header(CxfConstants.OPERATION_NAME).isEqualTo("getFoo")) .to("direct:getFooBranch") .when(header(CxfConstants.OPERATION_NAME).isEqualT

Re: camel-smpp in trx mode

2013-01-12 Thread Christian Müller
The smslib model is a bit different. The smslib camel consumer pull the short messages for the SMSC. And only if a consumer is defined ( from("smslib://...") ). In the smpp Camel component, the SMPP library push the short messages (and delivery receipt messages) to the client if the client is conne

Re: camel sql

2013-01-12 Thread Christian Müller
Please find my commets inline: On Sat, Jan 5, 2013 at 6:56 AM, pointerness wrote: > Hi, > I am evaluating camel for our product. I am trying to use a camel route in > an existing web application. > We use spring-jdbc queryforlist to fetch data from DB. I thought camel's > sql > component should b

Re: camel sql

2013-01-12 Thread Christian Müller
camel-sql doesn't support changing the sql query by passing a special header. Checkout the documentation [1]. If you have a need for this, feel free to log a JIRA [2]. [1] http://camel.apache.org/sql-component.html [2] http://camel.apache.org/contributing.html Best, Christian On Sat, Jan 5, 2013

Re: transactions that span multiple routes

2013-01-12 Thread Christian Müller
I do not have a solution at present, but I'm wondering what happens if you commit the exchange (than the message is deleted from the queue and the database is updated) and than your route fails? Also as far as I know, the default transaction timeout for SPTM is 120 seconds. May be your 30 seconds a

Re: MEP Query

2013-01-12 Thread gilboy
Thanks for the response. Sorry - 1 other question on this. If my route looks like: *from(endpoint1).to(endpoint2).to(endpoint3).to(endpoint4) * Assume the consumer for endpoint1 sets the MEP to InOut. If endpoint4 is a file endpoint what gets returned to the producer, i.e. the file endpoint only

Re: camel-smpp in trx mode

2013-01-12 Thread Johanes Soetanto
On Sunday, 13 January 2013, Christian Müller wrote: > The smslib model is a bit different. The smslib camel consumer pull the > short messages for the SMSC. And only if a consumer is defined ( > from("smslib://...") ). > In the smpp Camel component, the SMPP library push the short messages (and >

Re: MEP Query

2013-01-12 Thread Claus Ibsen
On Sun, Jan 13, 2013 at 12:40 AM, gilboy wrote: > Thanks for the response. > > Sorry - 1 other question on this. If my route looks like: > > *from(endpoint1).to(endpoint2).to(endpoint3).to(endpoint4) * > > Assume the consumer for endpoint1 sets the MEP to InOut. If endpoint4 is a > file endpoint w