Re: Load route from XML Exception

2013-04-01 Thread Willem jiang
Hi, Why did you need to load CXF internal API to load the routeContext? Can yo just use SpringCamelContext to load the camel routes? BTW, can you pass the routeContext.xml here? It could be much easier for us to reproduce the error by trying your test case. -- Willem Jiang Red Hat, Inc. Fuse

Re: Camel routing issue

2013-04-01 Thread Claus Ibsen
Hi See this EIP http://camel.apache.org/content-enricher.html About pollEnrich. Though pollEnrich currently does support dynamic uris. Its on the roadmap, for Camel 3.0. It requires an API change and thus isn't so easy to implement currently on 2.x. You can always use a java bean / camel proces

Re: How can I deal with & character in password when sending an email

2013-04-01 Thread Claus Ibsen
Camel 2.11 On Mon, Apr 1, 2013 at 5:47 AM, liugang wrote: > Does this work on 2.10.4, or only works from 2.11.0? > > Thanks. > GangLiu > > -Original Message- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: Friday, March 29, 2013 4:18 PM > To: users@camel.apache.org > Subject:

Re: Camel CXF RS: New Simple binding style for JAX-RS

2013-04-01 Thread Claus Ibsen
Hi This seems indeed much better. It would be great with an example in examples, as well with a web page to go along. We dont have any REST examples out of the box in Camel. http://camel.apache.org/examples On Sun, Mar 31, 2013 at 10:10 PM, Raul Kripalani wrote: > Hi users, > > As you may kn

Re: Camel CXF RS: New Simple binding style for JAX-RS

2013-04-01 Thread Raul Kripalani
Hi Claus, Yeah, I plan to add more examples soon. And a blog post is in the pipeline too ;) Thanks, *Raúl Kripalani* Enterprise Architect, Open Source Integration specialist, Program Manager | Apache Camel Committer http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://

Re: Camel routing issue

2013-04-01 Thread prabumc...@gmail.com
Like Chris suggest i tried below way .when(header("TYPE").isNotNull()) .to("activemq:queue.Inbound.${header.Type}") But queue created *${header.Type}* like this not *Inbound.test* Please kindly give me example. *Regards* Prabu.N On Mon, Apr 1, 2013 at 2:03 PM, Claus Ibsen-2

Re: Camel routing issue

2013-04-01 Thread prabumc...@gmail.com
Chris,The following code worked fine. .choice().when(header("Type").isNotNull()) .recipientList(simple("activemq.Inbound.${header.Type}")) .endChoice() but,one issue is that.I added *.otherwise()* , it giving error. .choice().when(header("Type").isNotNull()) .recipientList(simple("

Re: Camel CXF RS: New Simple binding style for JAX-RS

2013-04-01 Thread Martin Stiborský
Hi, that's really awesome. Thanks a lot. Can't wait to try it out and incorporate into our project. On Mon, Apr 1, 2013 at 10:52 AM, Raul Kripalani wrote: > Hi Claus, > > Yeah, I plan to add more examples soon. And a blog post is in the pipeline > too ;) > > Thanks, > > *Raúl Kripalani* > Ente

Re: Performance puzzle. Slow splitter on object array?

2013-04-01 Thread Christian Müller
To be honest, I don't understand how your body gets splitted... The body which your splitter receives is the GernericPayload object, right? Best, Christian On Tue, Mar 26, 2013 at 10:58 PM, MarkD wrote: > Of course, i'll paste the entire route: > > > > > uri="netty:{{broadcastTmProtoc

Re: SMPP stop route problem

2013-04-01 Thread Christian Müller
Please find my comments inline... Best, Christian On Wed, Mar 27, 2013 at 9:04 AM, fclose wrote: > Christian, I still have a question about what you said > > > > Christian Mueller wrote > > If you want to return another error code, simply catch the exception in > > your route and rethrow an or

Re: Cannot rollback() inside an XASession with AMQ 5.6

2013-04-01 Thread Christian Müller
With Camel 2.10.4 and ActiveMQ 5.7.0 I can reproduce the issue. However, by using Camel 2.10.4 and ActiveMQ 5.8.0 everything works fine for me. I updated my GitHub project [1]. Can you please verify whether you still have the issue with these versions. [1] https://github.com/muellerc/camel-in-tran

Re: Camel routing issue

2013-04-01 Thread Chris Wolf
Prabu, There's a note on the Camel website about a potential compiler error when using "otherwise()", along with a workaround. Unfortunately, I can't find it now. On the other hand, I think this might work: from("direct:start") .choice().when(header("Type").isNotN

Multiple routes send exchange to direct point

2013-04-01 Thread Darwish
Hi , if i have let say route1 ,route2,routn all forward the exchange to same direct route . The question is the exchanges execution will run in-parallel form all routes in direct route ( i think/hope so ) or will runt in sequential if not i will used seda point any help - Othman Da

Re: Multiple routes send exchange to direct point

2013-04-01 Thread Christian Müller
In parallel. Sent from a mobile device Am 01.04.2013 15:43 schrieb "Darwish" : > Hi , > > if i have let say route1 ,route2,routn all forward the exchange to same > direct route . > > The question is the exchanges execution will run in-parallel form all > routes in direct route ( i think/hope so

Re: Camel routing issue

2013-04-01 Thread Chris Wolf
Hi Claus, Thanks for the response - I could not see any obvious way to configure an FTP Consumer at ***runtime***, either via bean, processor or consumer template. If you have a concrete example, that would be great to see... ...otherwise, here's the solution I came up with: -Chris //

Re: Camel routing issue

2013-04-01 Thread prabumc...@gmail.com
Hi *Chris / **Claus*, I have one *Inbound* queue,based on header and content type,I want forward to outbound queue. * Example 1: * * Inbound.queue name : **Inbound.Test.DDD Outbound.queue name : SOURHQueueName * *Criteria or Condition : * Message property *PAST_EVENT_INTERVAL type* is : *0* *AN

Only one cxf endpoint exposed using non-Spring CXF servlet

2013-04-01 Thread helander
I am using trying too use the non-Spring CXF servlet (JBoss web container) @WebServlet(value="/mycxf/*", name="MyCxfServlet") public class CxfServlet extends CXFNonSpringServlet { public void init(ServletConfig sc) throws ServletException { setBus(BusFactory.getDefaultBus());

Re: Ciphers with camel-sftp

2013-04-01 Thread lleclerc
Is my question too vague ? Not related to camel ? -- View this message in context: http://camel.465427.n5.nabble.com/Ciphers-with-camel-sftp-tp5730052p5730171.html Sent from the Camel - Users mailing list archive at Nabble.com.

Content-based routing with Expressions and Predicates

2013-04-01 Thread Chris Wolf
(I took the liberty to change the Subject since the message history has both my FTP issue and Prabu's routing issue - my fault, sorry) Prabu, I strongly recommend getting and reading Claus's book "Camel In Action", like Thomas Walzer suggested upon your first post. You also should be familiar wi

Re: Ciphers with camel-sftp

2013-04-01 Thread Christian Müller
Camel use jsch [1] under the hut. May be you can find out more there, what they support... [1] http://www.jcraft.com/jsch/ Best, Christian On Mon, Apr 1, 2013 at 7:15 PM, lleclerc wrote: > Is my question too vague ? Not related to camel ? > > > > -- > View this message in context: > http://ca

Re: Camel CXF RS: New Simple binding style for JAX-RS

2013-04-01 Thread Sergey Beryozkin
Hi Raul On 31/03/13 23:10, Raul Kripalani wrote: Hi users, As you may know, Camel has supported JAX-RS under the camel-cxfrs component for a long time now. However, the support has been rather low-level, requiring the user to manually process the MessageContentsList object coming into the route

Re: Camel file component preMove creates directory before read lock acquired?

2013-04-01 Thread icemanltd
This behavior is causing an issue. I have specified preMove=temp/${exchangeID} with noop=true idempotent=false and readLock=rename. I was expecting that the lock would first be acquired, then the file moved to the preMove directory and then processing would begin and eventually end leaving the file

Invoking .tokenizeXML from a custom processor

2013-04-01 Thread dkum003
Hi, I am aware that we can invoke the .tokenizeXML from the route builder. But is there a way to invoke this through a processor. Say i want to split the xml to write it to a set of xml tags. I do not want to write custom logic using xpath/dom to split this. Instead i would like to use camel's

Re: Route starts when deployed with a cxf endpoint

2013-04-01 Thread dkum003
Hi Christian, Thank you for the project. The auto start up works absolutely fine in this case because your .to end point is a FTP location. As i said in my post , this works fine for FTP,SFTP,File. But when you configure a CXF endpoint as the .to location, the route starts when deployed. Regard

Re: Multiple routes send exchange to direct point

2013-04-01 Thread Darwish
Thank you - Othman Darwish ProgressSoft Corp. -- View this message in context: http://camel.465427.n5.nabble.com/Multiple-routes-send-exchange-to-direct-point-tp5730163p5730167.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Invoking .tokenizeXML from a custom processor

2013-04-01 Thread Claus Ibsen
Hi You can use the Tokenize language org.apache.camel.language.tokenizer.TokenizeLanguage It has a number of static methods to easily create the expression. Then you can use that from a processor. On Tue, Apr 2, 2013 at 7:29 AM, dkum003 wrote: > > Hi, > > I am aware that we can invoke the .