Re: AW: Transactional JMS Route Constantly Opening/Closing Connections

2010-06-10 Thread Charles Moulliard
Hi, You must declare the following bean if you want to use a connection pool factory Next, you can reference it from your ActiveMQComponent bean KR, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel/ServiceMix C

Re: SQL Component : Error while Inserting record in db table

2010-06-10 Thread mevikasg
Hi Roman, Please find the stack trace attached here with. http://old.nabble.com/file/p28851402/stacktrace.txt stacktrace.txt RomKal wrote: > > 2010/6/10 mevikasg : >> >> Hi Roman, >> >> Thanks for the reply. >> >> I have already tried it but no luck. >> >> Infact, tried following too: >> >>

Is batch resequencing expected to work with JMS INOUT?

2010-06-10 Thread Taariq Levack
Hi I have a route that works fine without the batch sequencing and it works fine with batch sequencing but INONLY, it doesn't work when I expect a reply. I've simplified the code to the following to eliminate my code as much as possible. from(afisEndpoint).resequence(header(seqNum)).batch(new

Re: reading soapfault message from HttpOperationFailedException

2010-06-10 Thread Willem Jiang
Hi, You can get the soap fault message detail by checking out the responseBody from the HttpOperationFailedException. Willem gnanda wrote: Hi All, I am using camel 2.2 with servicemix 4.2 I am trying to retrieve soapFault message from HttpOperationFailedException I could able to print the e

Re: reading soapfault message from HttpOperationFailedException

2010-06-10 Thread Ashwin Karpe
Hi, The error seems to be on the server as indicated by the HTTP error code. Can you provide more detail on the server/service and if/whether it is up and properly functioning (i.e has a listener looking for a soap payload at the endpoint). This is not a client side error... Cheers, Ashwin...

reading soapfault message from HttpOperationFailedException

2010-06-10 Thread gnanda
Hi All, I am using camel 2.2 with servicemix 4.2 I am trying to retrieve soapFault message from HttpOperationFailedException I could able to print the exception as below Exception ex = exchange.getProperty(Exchange.EXCEPTION_CAUGHT,Exception.class); log.info(ex); It prints the message as below "or

Error Handling, original caller, JMS and components

2010-06-10 Thread Steve Holmes
Hi All! I originally posted this message to the "Camel in Action" forum but I'm hoping that someone here can help me out as well. I understand when an exception is thrown by some process during the Exchange (within a route) it is handled by the error handler and I understand all the onException

Re: Camel 2.3.0 , JAXB component marshalling

2010-06-10 Thread Christian Müller
Hey, it looks like, you use the 'org.apache.camel.model.dataformat.JaxbDataFormat' and not the 'org.apache.camel.converter.jaxb.JaxbDataFormat' from camel-jaxb... Cheers, Christian

Re: AW: Transactional JMS Route Constantly Opening/Closing Connections

2010-06-10 Thread tbarnes
Christoph, Thanks I just tried the ActiveMQ component instead of the JMS Component: and I get the same result. Next I will try the PoolingConnectionFactory to see if the constant connection/disconnections are minimized. Thanks for your suggestions. Regards, Thomas Meise, Chr

Re: Split an exchange, process pieces in parallel and then wait for all to complete

2010-06-10 Thread jonathanq
Thank you for the replies - that is exactly what I wanted. I hadn't dug enough through the Split() documentation to see the parallel processing part. I added the .executorService() part so I could cap the number of threads. Thank you! Jonathan -- View this message in context: http://old.nabb

Not instanceof org.apache.camel.TypeConverter value: org.apache.camel.converter.jaxb.FallbackTypeConverter

2010-06-10 Thread Charles Moulliard
Hi, I'm moving the Fuse Camel examples from camel 1.6 to 2.2. In the example, there is an exercice where we create a custom FileComponent. I have been able to deploy the OSGI bundle but when I start the route using this component, I get this error : 18:39:56,609 | ERROR | xtenderThread-12 | Conte

[ANNOUNCE] Apache Camel 1.6.3 Release

2010-06-10 Thread Hadrian Zbarcea
The older Camel 1.x [1] is still in use and very stable but a few issues have been fixed over the past six months since the last release. Therefore we thought appropriate to issue a new 1.6.3 maintenance release [2] which comes with 39 issues resolved (see release notes [3]) such as: •

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Willem Jiang
Hi Bengt, I just tried to use some file endpoint inside our camel OSGi test platform, the route is started without any issue. Can you create a small test case which is based on you application and submit it into a JIRA ? In this way I can keep on digging the issue :) Willem Bengt Rodehav wr

Re: Camel 2.3.0 , JAXB component marshalling

2010-06-10 Thread Claus Ibsen
Hi You most likely need that jaxb.index file in your JAR. Just google it and see how to use that. On Thu, Jun 10, 2010 at 4:26 PM, Nav1771 wrote: > > I have tried various solution given in this forum before posting this issue. > Somehow they dont work with Camel 2.3.0. I would be grateful if so

Camel 2.3.0 , JAXB component marshalling

2010-06-10 Thread Nav1771
I have tried various solution given in this forum before posting this issue. Somehow they dont work with Camel 2.3.0. I would be grateful if someone could shed some light on how to use the Marshaller. Caused by: javax.xml.bind.JAXBException: class com.CamelTest.JAXBTestObject nor any of its sup

Re: Code of the example : http://camel.apache.org/cxf-async-example.html

2010-06-10 Thread Claus Ibsen
On Thu, Jun 10, 2010 at 1:51 PM, Charles Moulliard wrote: > Hi, > > Where is the code of this example : > http://camel.apache.org/cxf-async-example.html ? > This example is @deprecated as we overhaul the asyc routing engine in 2.4. ToAsync is @deprecated and you should not use it. Hence we remove

Re: servlet deployment without spring dependencies

2010-06-10 Thread Willem Jiang
Hi, Here is an unit test[1][2] you can take a look. [1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-servlet/src/test/resources/org/apache/camel/component/servlet/web.xml [2]https://svn.apache.org/repos/asf/camel/trunk/components/camel-servlet/src/test/java/org/apache/camel/co

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Bengt Rodehav
I now get the following exception: java.lang.TypeNotPresentException: Type org.apache.camel.component.file.strategy.GenericFileProcessStrategyFactory class not found not present at org.apache.camel.component.file.GenericFileEndpoint.createGenericFileStrategy(GenericFileEndpoint.java:145)

Re: SQL Component : Error while Inserting record in db table

2010-06-10 Thread Roman Kalukiewicz
2010/6/10 mevikasg : > > Hi Roman, > > Thanks for the reply. > > I have already tried it but no luck. > > Infact, tried following too: > >   errorHandler(deadLetterChannel("mock:error")) >  from("imaps://imap.gmail.com?username=testm...@gmail.com&password=" > >  +"&deleteProcessedMessages=false

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Willem Jiang
Bengt Rodehav wrote: Willem, I'm just now building a new trunk version of Camel and need to verify with you that I'm using Camel properly in an OSGi environment: - I only install the features "camel" (includes camel-core and camel-spring bundles) + camel-ftp (that I wish to test) That could b

Re: SQL Component : Error while Inserting record in db table

2010-06-10 Thread mevikasg
Hi Roman, Thanks for the reply. I have already tried it but no luck. Infact, tried following too: errorHandler(deadLetterChannel("mock:error")) from("imaps://imap.gmail.com?username=testm...@gmail.com&password="                +"&deleteProcessedMessages=false&processOnlyUnseenMessage

marshal to CSV with pipe delimiter

2010-06-10 Thread Andy Bourke
I have successfully configured my spring XML to unmarshal a file delimited by pipe symbols using the following: with the readPipeCsv bean configured as: However, the same technique does not work when trying to marshal the CSV data, i.e. the output has comma delimited

Re: SQL Component : Error while Inserting record in db table

2010-06-10 Thread Roman Kalukiewicz
Hello, In camel-sql component you should use # sign instead of ? as question marks has its own meaning in URL notation. Unfortunately it looks that you cannot really use # sign itself, as it will be converted to questionmark (so your '#' will become '?'). I'll create a a bug for this # sign prob

Code of the example : http://camel.apache.org/cxf-async-example.html

2010-06-10 Thread Charles Moulliard
Hi, Where is the code of this example : http://camel.apache.org/cxf-async-example.html ? KR, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel/ServiceMix Committer *** - Blog : http://cmoulliard.blogspot

servlet deployment without spring dependencies

2010-06-10 Thread John J. Franey
Is there an example of deploying a java-dsl camel route as a servlet without the spring dependencies? If no example already exists, can someone outline here what is needed? Thanks, John -- View this message in context: http://old.nabble.com/servlet-deployment-without-spring-dependencies-tp288

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Bengt Rodehav
Willem, I'm just now building a new trunk version of Camel and need to verify with you that I'm using Camel properly in an OSGi environment: - I only install the features "camel" (includes camel-core and camel-spring bundles) + camel-ftp (that I wish to test) Do I need camel-spring if I'm not u

Question Apache Camel Mina component

2010-06-10 Thread Charles Moulliard
Hi, Is there a way to extend the component camel-mina to allow by example to add a layer to communicate with the distant TCP server ? By example, we must send a message (bytes) at the beginning of the session (= login), another to indicate to the server that we close the connection (=logout) and

Re: Camel splitter

2010-06-10 Thread marcin80
Hi, Thanks Claus for your response. The method signature is public void test(Object o) { System.out.println("Argument: " +o.getClass()); } Regards, Marcin Claus Ibsen-2 wrote: > > Well you gotta show the method signature to us, as w

SQL Component : Error while Inserting record in db table

2010-06-10 Thread mevikasg
Hi, I am a newbie in Grails-Camel world. In my grails-groovy web application, i am trying to insert received messages in mail account into db table using Camel SQL component. So far via my Route, i can easily access my mail messages and even can perform SELECT queries on db as well. But, i am u

Re: AW: Replace "from" endpoint with mock in test?

2010-06-10 Thread Willem Jiang
Yes, you just need to replace the from endpoint uri with a property, then you switch the ftp endpoint with file endpoint easily. Replacing the jms-component with a seda-component is not a good example, as jms has some unique operations which seda-component will not take, and it will cause some

Re: How to invoke specific operation with params for cxf webservice endpoint through configuration

2010-06-10 Thread Willem Jiang
If you just want to send a SOAP message which you already create, using the camel-http component could be a best choice. Willem StonePeng wrote: i see, in fact this approach need write your codes to send operation and params to call the webservice that was defined in cxf:cxfEndpoint. it cant

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Willem Jiang
Hi Bengt, It's a typo, I just fixed it with an OSGi unit test. Please check out the last camel trunk code to keep on riding with Camel :) Willem Bengt Rodehav wrote: Thanks Willem - what a relief... I eagerly await the results from your digging, /Bengt 2010/6/10 Willem Jiang I can reprod

AW: Replace "from" endpoint with mock in test?

2010-06-10 Thread Max Ullinger
Hi Well, you could use property placeholders with different property files for test and runtime. You could then define the endpoints externally in two files and use the ftp component for runtime and the file component for tests. Cheers, Max -Ursprüngliche Nachricht- Von: ankelee [mailt

Replace "from" endpoint with mock in test?

2010-06-10 Thread ankelee
Hi I'm setting up a test for a route that starts at an FTP-endpoint. I would like to be able to test without setting up an FTP-server. In Camel in Action there is shown a trick where you can replace the jms-component with a seda-component and then consume from that endpoint. Is there any tricks

Re: How to invoke specific operation with params for cxf webservice endpoint through configuration

2010-06-10 Thread StonePeng
i see, in fact this approach need write your codes to send operation and params to call the webservice that was defined in cxf:cxfEndpoint. it cant be completed work only through config file. the cxfEndpoint don't work until receive a message-driven that is a request SOAP msg. i think, it is the

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Bengt Rodehav
Thanks Willem - what a relief... I eagerly await the results from your digging, /Bengt 2010/6/10 Willem Jiang > I can reproduce the error that you met, there must be something wrong with > current OSGi refactoring, > I will keep digging to see if I can fix this issue soon. > > Willem > > > Ben

AW: Transactional JMS Route Constantly Opening/Closing Connections

2010-06-10 Thread Meise, Christoph
Maybe this helps: http://camel.apache.org/jms.html#JMS-Notes, especially the pooling of connections which is recommended when using Springs JmsTemplate. Regards, Christoph -Ursprüngliche Nachricht- Von: tbarnes [mailto:thomas_bar...@intuit.com] Gesendet: Mittwoch, 9. Juni 2010 23:59 An:

Re: camel-ftp problems with ftps implicit mode

2010-06-10 Thread Willem Jiang
I can reproduce the error that you met, there must be something wrong with current OSGi refactoring, I will keep digging to see if I can fix this issue soon. Willem Bengt Rodehav wrote: Thanks for your reply Willem, I've tried various combinations of camel features. Right now I use the "camel