Re: Spring destroys camelTemplate before CamelContext

2012-02-09 Thread Claus Ibsen
On Thu, Feb 9, 2012 at 12:35 AM, muhammad siddique wrote: > I tried removing camelTemplate from spring configuration and creating camel > Producer template from camel context in my POJO. Here is what i got > > 2012-02-08 17:26:01,144 DEBUG > [org.apache.camel.processor.DefaultErrorHandler.debug(72

Re: sending oracle XMLType message to activeMQ

2012-02-09 Thread Matt Pavlovich
The cause is showing that something isn't serializable. The XMLType object has a toString(), and a constructor that accepts a String to re-create the oracle.xdb.XMLType if you need it on the other end. Its also possible, that you have a header or other object in the exchange that is not seria

Re: Passing input stream to the route

2012-02-09 Thread Willem Jiang
I guess you just need to pass the lines into camel, you don't need to put the result into other stream. In this case you may consider to extends the StreamComponent and pass the csvDataStream into it. Then you don't need to use the producer template any more. On Thu Feb 9 20:41:49 2012, Henry

Re: camel and spring in a webapp

2012-02-09 Thread Willem.Jiang
Hi, Camel does not try to load the annotated Converter from package of 'org.apache.camel.converter' since Camel 2.8.0. Can you check if you wrap the other version of camel into your war ? -- View this message in context: http://camel.465427.n5.nabble.com/camel-and-spring-in-a-webapp-tp5469916p5

Re: sending oracle XMLType message to activeMQ

2012-02-09 Thread tops
Here's the stacktrace: 2012-02-09 13:57:05,031 [DefaultMessageListenerContainer-1] WARN org.apache.camel.processor.UnitOfWorkProcessor - Caught unhandled exception while processing ExchangeId: ID-SA21-59175-1328813810722-0-1 java.lang.RuntimeException: oracle.jdbc.driver.T2CConnection at

Re: Oracle AQ Topic dequeue options and Apache Camel

2012-02-09 Thread amique
Hi Was you able to solve this problem? I am experiencing same issue with Spring. Can you please help me to find out where I can specify the subscriber name. -- View this message in context: http://camel.465427.n5.nabble.com/Oracle-AQ-Topic-dequeue-options-and-Apache-Camel-tp1046084p5471004.html S

Re: How to implement requestTimeout in the spring-ws component

2012-02-09 Thread Babak Vahdat
Hi I already logged a ticket [1]. The only odd thing is that the Spring folks did only provide this option [1] in case of commons-httpclient but forgot to do the same as the same API was given by JDK 1.5 afterwards [3] so that we have to take care of it inside Camel itself (java.net.HttpURLConnec

Re: Problem with printing In.message.body

2012-02-09 Thread MichaelAtSAG
Thanks Claus, that was it! -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-printing-In-message-body-tp5469798p5470016.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel and spring in a webapp

2012-02-09 Thread Claus Ibsen
What OS, Web Container, and JDK version are you using? And do you deploy Camel as a WAR file? On Thu, Feb 9, 2012 at 5:06 PM, David Delbecq wrote: > Hello, > > i have a strange error when i start camel with spring in a webapp. Camel > complains on startup that it doesn't find the converters :/

Re: Problem with printing In.message.body

2012-02-09 Thread Claus Ibsen
Hi Your body is most likely stream based that do not support re-reading the stream. So either enable stream-caching, or convert the message body to something that is not a stream. http://camel.apache.org/stream-caching.html On Thu, Feb 9, 2012 at 4:38 PM, MichaelAtSAG wrote: > I create a new cl

Re: How to implement requestTimeout in the spring-ws component

2012-02-09 Thread Claus Ibsen
Hi If possible it would be nice to setup timeout options on the camel-spring-ws out of the box. Without having to resort to custom WS templates. We do this for camel-http, camel-http4 and other components. On Thu, Feb 9, 2012 at 3:38 PM, Babak Vahdat wrote: > Hi, > > I haven't tried it by myse

camel and spring in a webapp

2012-02-09 Thread David Delbecq
Hello, i have a strange error when i start camel with spring in a webapp. Camel complains on startup that it doesn't find the converters :/ According to this issue https://issues.apache.org/jira/browse/CAMEL-4322 It's supposed to be resolve in camel 2.8 However i am using camel 2.9.0 and st

Problem with printing In.message.body

2012-02-09 Thread MichaelAtSAG
I create a new class that simply prints out the contents of the message. I am finding the println command is changing the contents of the body. As this code demonstrates, <1> STEP1 prints out the body as string. <2> STEP2 contains no output, the body is gone. Why is the body empty in STEP2? Is

Re: Problem with multiple CXF services using the same https port

2012-02-09 Thread Daniel Kulp
On Thursday, February 09, 2012 5:47:09 AM snatera wrote: > Hello Dan! > > Thanks for taking your time to reply to me. > > In this link Fuse Source explains the way that I implemented: > http://fusesource.com/docs/esb/4.3/cxf_security/HTTPCompatible.html#i488847 Nice of them to promote the use of

Re: How to implement requestTimeout in the spring-ws component

2012-02-09 Thread Babak Vahdat
Hi, I haven't tried it by myself but I think the following should do the trick: Define your own dedicated WebServiceTemplate inside your spring Configuration which makes use of commons HttpClient [1] which on it's turn provides the possibility to specify a timeout (see [2] & [3]) and then referen

Re: Problem with multiple CXF services using the same https port

2012-02-09 Thread snatera
Hello Dan! Thanks for taking your time to reply to me. In this link Fuse Source explains the way that I implemented: http://fusesource.com/docs/esb/4.3/cxf_security/HTTPCompatible.html#i488847 I was trying to use before, but I had this Exception: -- Exception in thread "SpringOsgiExtenderThre

Re: Choich() with multiple Routing EIP

2012-02-09 Thread Christos Vasilakis
Hi there, > > Hadrian > I replied to you on irc yesterday, but it looks like you didn't get it. It's > a camel bug [1] Yes it was late at night and decided to leave work... ;) Nice to hear that will be fixed. Thanks! > Claus > There is a a .endChoice() which may do the trick. yeap endChoice()

Re: Choich() with multiple Routing EIP

2012-02-09 Thread Hadrian Zbarcea
Christos, I replied to you on irc yesterday, but it looks like you didn't get it. It's a camel bug [1]. I have a fix I will commit today which will require you to use end() and it will work (right now it doesn't). See the explanation in CAMEL-4995 [1]. Hadrian [1] https://issues.apache.org

How to implement requestTimeout in the spring-ws component

2012-02-09 Thread atg roxx
Hi Team, I have a situation, I have to send a request to a soap based client using spring-ws component using InOut pattern. I have to wait for say 2 second and if I don't get any reply in that time frame. I should do some action. In JMS component of camel we have requestTimeout which I can u

Re: Can not get a simple example to run

2012-02-09 Thread David Delbecq
Hello again, yes, but springsource was autocompleting it with "inonly" so i guessed this was default value. I made a test with email endpoint and it worked. Seems my file location was incorrect and file was written in some unknown place i still have to find. And the logger never displayed anyth

Re: Can not get a simple example to run

2012-02-09 Thread Claus Ibsen
Hi You dont need the pattern attribute at all. Camel will figure it out for you as its a logger so it only logs the message. On Thu, Feb 9, 2012 at 12:38 PM, David Delbecq wrote: > Hello, > > i am trying to run a simple example where i generate a text message and try > to store it in a file. He

Can not get a simple example to run

2012-02-09 Thread David Delbecq
Hello, i am trying to run a simple example where i generate a text message and try to store it in a file. Here is my spring config file (i tried both with this logger and with file:///D:/blabla ) The job code: try { ProducerTemplate template = camelContext.createProducerTemplate

Re: temporarily suspend retry processing ?

2012-02-09 Thread Claus Ibsen
Hi There is a retryWhile you can use and implement logic to say true|false if a retry should be executed or not. http://camel.apache.org/exception-clause.html On Thu, Feb 9, 2012 at 1:51 AM, liteoid wrote: > > I am using camel with JMS and using the Dead Letter Channel mechanism to > handle ret

Re: invoking External WSDL

2012-02-09 Thread Bilgin Ibryam
Hi Rishi, have a look at CXF Component and Spring Web Services Component. Also there is a good blog post from Marcelo here http://marcelojabali.blogspot.com/2011/07/calling-web-services-with-apache-camel.html HTH Bilgin On 8 February 2012 10:24, aggarwal wrote: > Hi, > > I am new to integrati

Re: ExceptionHandler in a ftp Route

2012-02-09 Thread Babak Vahdat
Hi In case no body else in the forum has got a better idea I propose you to log a JIRA ticket, and if possible with a unit-test showing the problem you're suffering from. Babak -- View this message in context: http://camel.465427.n5.nabble.com/ExceptionHandler-in-a-ftp-Route-tp5451466p5468895.h