Re: Too slow JMS pipeline when disableReplyTo=false

2012-04-16 Thread Claus Ibsen
On Tue, Apr 17, 2012 at 12:18 AM, garrydias wrote: > /Have you seen the section on the Camel JMS doc page about > request/reply over JMS? / > Yes. > > /I assume you mean request/reply over JMS, where the caller waits for the > reply? / > Exactly. > > /If you do request/reply over a JMS queue, you

Re: WireTap - Defining custom ThreadPoolProfile

2012-04-16 Thread Claus Ibsen
On Tue, Apr 17, 2012 at 4:20 AM, mccabejj wrote: > Hello, > > Camel Version: 2.8.2 > > I am trying to setup a custom ThreadPoolProfile (Spring DSL) for the WireTap > calls in our routes.  Based on the > http://camel.apache.org/threading-model.html Threading Model Documentation > it should look som

WireTap - Defining custom ThreadPoolProfile

2012-04-16 Thread mccabejj
Hello, Camel Version: 2.8.2 I am trying to setup a custom ThreadPoolProfile (Spring DSL) for the WireTap calls in our routes. Based on the http://camel.apache.org/threading-model.html Threading Model Documentation it should look something like this: And then the WireTap on the route should

Re: Too slow JMS pipeline when disableReplyTo=false

2012-04-16 Thread garrydias
/Have you seen the section on the Camel JMS doc page about request/reply over JMS? / Yes. /I assume you mean request/reply over JMS, where the caller waits for the reply? / Exactly. /If you do request/reply over a JMS queue, you need a consumer on the processingQueue to pickup the incoming messag

Re: OSGI Transaction Propagation to Camel Route

2012-04-16 Thread Chris Geer
Claus, I'm still struggling with this so I've put together a quick sample project that shows the problem. It consists of an OSGI component that runs under a transaction and posts two JMS messages (one with Camel and one with JMS APIs) then rolls back the transactions. I would hope to see both mess

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
Hi Chirstian, Here I am afraid that I cant share the xsd as they are third party stuff. -cheers, atg roxx. On Mon, Apr 16, 2012 at 9:19 PM, Christian Müller < christian.muel...@gmail.com> wrote: > Changing the generated classes is not the way you should go. > Is it possible to share your XSD an

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
here I mean to say is should be something like and should be something like --cheers, atg roxx http://www.camel.apache.org/jaxb/example/order/1"; xmlns:ns2=" http://www.camel.apache.org/jaxb/example/address/1";> 1 Main Street 3a 65843 Sulzbach

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread Christian Müller
Changing the generated classes is not the way you should go. Is it possible to share your XSD and the generated classes? Best, Christian On Mon, Apr 16, 2012 at 7:33 PM, atg roxx wrote: > Hi Chirstian, > > After making all the changes suggested by you. Everything is working fine. > > But I have

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread Christian Müller
I didn't get your question. The 'order' and 'id' element use the default namespace ' http://www.camel.apache.org/jaxb/example/order/1' which is declared by 'xmlns="http://www.camel.apache.org/jaxb/example/order/1";'. What's the problem here? Best, Christian On Mon, Apr 16, 2012 at 5:32 PM, atg ro

File2 endpoint issue

2012-04-16 Thread brbornia
Hello guys, I am working on a route like this to handle files that should arrive every day: <... do_stuff_here/> If the file does not arrive, the default is to do nothing, but need to handle it as an exception. Any ideas on how can I do that? The closest solution I found was setting send

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
Hi Chirstian, After making all the changes suggested by you. Everything is working fine. But I have some issue here. I have to go and add namespace at each and every variable of the generated classes. This is big pain. Also if the wsdl get changed then then this process of adding name space at

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
Hi Christian, I got the solution for the previous question asked by me : You have to simply add the following in the package-info.java @javax.xml.bind.annotation.XmlSchema(namespace = " http://www.camel.apache.org/jaxb/example/order/1"; , xmlns = { @XmlNs(namespaceURI = " http://www.camel.apach

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
Hi Christian, Thansk for the link. I run the test case given by you. It works fine but while marshalling I can see the below xml and if you notice we dont have namespace for or element. http://www.camel.apache.org/jaxb/example/order/1"; xmlns:ns2=" http://www.camel.apache.org/jaxb/example/

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread Christian Müller
It's in SVN: https://svn.apache.org/repos/asf/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/example/ Best, Christian On Mon, Apr 16, 2012 at 11:41 AM, atg roxx wrote: > Hi Christian, > > Could you please provide the code for the Order and Address class. > > > -Regards, > atg

Spring context and camel context in the same time

2012-04-16 Thread Hugo
Hello everyone, Is it possible to use a camel context and a spring context (more precisely an AnnotationConfigApplicationContext) in a same application ? I explained myself : I'm trying to do 2 "simple" things. - get beans (created by spring through the annotation @Named) file from a java class (

Re: [Bindy] Having trouble with the "required" field

2012-04-16 Thread Claus Ibsen
Hi Do you mind open a new ticket. And then attach your modified unit test. Then we can apply the patch from CAMEL-5018 and add your unit test. 2012/4/16 Magnus Palmér : > Hmm, I had trouble with creating and applying patches, guess I have to > update my knowledge there of how to apply patches

Re: Error handling and invoking certain logic unconditionally

2012-04-16 Thread Claus Ibsen
On Mon, Apr 16, 2012 at 12:58 PM, Ignat wrote: > Hi All, > > I need to solve following scenario with camel: > > While message is being processed in route, I need to record certain > information based on content being processed. At the end of processing this > information have to be written to a st

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
Hi Arnaud Deprez, The auto generated files have the structure as you suggested. except the child element does not have the @XmlType(..., namespace = "ns3") //or use @XmlRootElement(namespace = "ns3") as suggested by you. But I tried adding those things as suggest by you still I am not able to ma

Error handling and invoking certain logic unconditionally

2012-04-16 Thread Ignat
Hi All, I need to solve following scenario with camel: While message is being processed in route, I need to record certain information based on content being processed. At the end of processing this information have to be written to a storage (as a KPI event), clean-up executed regardless of succ

Re: How to invoke a route based on incoming ftp message..

2012-04-16 Thread Nafees
Thanks. I will try to implement your suggestions. Thank u so much... -- View this message in context: http://camel.465427.n5.nabble.com/How-to-invoke-a-route-based-on-incoming-ftp-message-tp5643121p5643395.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: [Bindy] Having trouble with the "required" field

2012-04-16 Thread Magnus Palmér
Hmm, I had trouble with creating and applying patches, guess I have to update my knowledge there of how to apply patches correctly. Anyway, I merge this from trunk to my local 2.9.x branch instead: Revision: 1292164 Author: ningjiang Date: den 22 februari 2012 08:49:40 Message: CAMEL-5018 support

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
Hi Christian, Could you please provide the code for the Order and Address class. -Regards, atg roxx On Sun, Apr 15, 2012 at 12:37 PM, Christian Müller < christian.muel...@gmail.com> wrote: > The interesting part is how do you define the > "jaxbGetProductPriceOffersRequest"? > However, I added

how to get the return values when use some decoders in processor?

2012-04-16 Thread xiangqiuzhao
if my uri is : from("netty:tcp://localhost:6789?encoders=#myEncoders&decoders=myDecoders&sync=true") .process(new MyFromProcessor()); the myDecoders has two decoder, and return two values. but how to get the two values in MyFromProcessor? -- View this message in context: http://

how to get the return values when use some decoders in processor?

2012-04-16 Thread xiangqiuzhao
if my uri is : from("netty:tcp://localhost:6789?encoders=#myEncoders&decoders=myDecoders&sync=true") .process(new MyFromProcessor()); the myDecoders has two decoder, and return two values. but how to get the two values in MyFromProcessor? -- View this message in context: http://

Re: How to invoke a route based on incoming ftp message..

2012-04-16 Thread Claus Ibsen
On Mon, Apr 16, 2012 at 10:02 AM, Nafees wrote: > Thanks for reply. > > Is there any way, in which I can just send message once to activemq apart > from using it inside a route and depending on data received from that .. I > want to call the routes.. > You can send a message to AMQ using a tool s

Re: Receiving NodeDeleted event using Camel's ZooKeeper component

2012-04-16 Thread Claus Ibsen
Hi Thanks for looking into this. 1) Maybe we can have an option on the endpoint to control this, similar to this option on the file component: sendEmptyMessageWhenIdle For example naming it: sendEmptyMessageOnDelete, and then have it enabled by default. I would assume people want all the events.

Re: How to invoke a route based on incoming ftp message..

2012-04-16 Thread Nafees
Thanks for reply. Is there any way, in which I can just send message once to activemq apart from using it inside a route and depending on data received from that .. I want to call the routes.. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-invoke-a-route-based-on-inc

RE: Receiving NodeDeleted event using Camel's ZooKeeper component

2012-04-16 Thread GLIMMERVEEN Arnoud
Hi Claus, I did spent some time looking at the source code of the zookeeper component. I found that the NodeDelete event is being received and triggers the "DataChangedOperator". In the current design, the changed data is retrieved by a subsequent "GetDataOperation" that is preceded by a "Exist

Re: How to invoke a route based on incoming ftp message..

2012-04-16 Thread Claus Ibsen
Hi What is your problem, your route seems at first glance okay. You are right to use the Content Based Router to route depending on the message. http://camel.apache.org/content-based-router.html On Mon, Apr 16, 2012 at 9:24 AM, Nafees wrote: > Hi , > > I am new to Apache Camel. I am facing thi

How to invoke a route based on incoming ftp message..

2012-04-16 Thread Nafees
Hi , I am new to Apache Camel. I am facing this problem.. Depending on message coming from activemq , i have to select the appropriate route .. // a bean which is sending message to activemq using jms from("bean:idProducer?method=sendMessage").to("jms:queue:myqueue1"); // from message com

RE: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread DEPREZ Arnaud AWL-IT
Hi ! In your class GetProductPriceOffers, you should have your variable partner and request declared with the matching namespace : @... @XmlRootElement(namespace = "ns1") Public class GetProductPriceOffers { @... @XmlElement(namespace = "ns2") Partner partner; @Xm

Re: [Bindy] Having trouble with the "required" field

2012-04-16 Thread Claus Ibsen
Hi I got side tracked by more important stuff I needed to attend. And well the Camel project has many committers to help also. Do you mind if you got spare time, to try the 2.9 branch and apply the patch(es) from CAMEL-5018. And try out the use-case from Aida to see if it fixes that? And it woul