Re: JMS Message Acknowledgement & Persistence in Camel

2010-04-14 Thread lekkie
I checked it out on Amazon and it says it has not been released. Where else can I get it? Claus Ibsen-2 wrote: > > On Wed, Apr 14, 2010 at 6:50 PM, lekkie wrote: >> >> Thanks for the insight. >> >> I have gone ahead to implement the Transactional Client EIP pattern. >> >> However, I noticed

Re: Deploying as web app with jetty endpoint

2010-04-14 Thread Willem Jiang
jfaath wrote: I should note that by turning the com.sun.jersey.spi.spring.container.servlet.SpringServlet into a servlet instead of a filter, I can start up Tomcat without error. However, when I try to access a page I get this error: java.lang.IllegalStateException: No WebApplicationContext fou

Re: JMS Message Acknowledgement & Persistence in Camel

2010-04-14 Thread Claus Ibsen
On Wed, Apr 14, 2010 at 6:50 PM, lekkie wrote: > > Thanks for the insight. > > I have gone ahead to implement the Transactional Client EIP pattern. > > However, I noticed that my transaction is redelivered only 4 times. I used > JMSTransactionManager as my transaction manager and my redelivery pro

Re: extended Camel Mail Component not working

2010-04-14 Thread Claus Ibsen
On Wed, Apr 14, 2010 at 11:12 AM, Willem Jiang wrote: > Ah, bad mock-javamail, it's good that you finally find out the issue. > I think we need to update the wiki page of camel-mail to avoid wasting other > user time to trace this kind of error. > I have added a info to the camel mail wiki page

Re: JPA component - EntityManagerFactory issue

2010-04-14 Thread Claus Ibsen
Hi Yeah that is actually something we can do to improve. I have created a ticket https://issues.apache.org/activemq/browse/CAMEL-2647 And implemented it. Now it will auto lookup the EMF and TM from the registry. You are most welcome to try out 2.3-SNAPSHOT and see if that works for you as well.

Re: File consumer + POJO splitter

2010-04-14 Thread Claus Ibsen
On Thu, Apr 15, 2010 at 1:45 AM, John Landahl wrote: > On Tue, Apr 13, 2010 at 7:26 PM, Willem Jiang wrote: >> I think it should be a best practice to copy the inMessage header if return >> a list of new created Messages within the split method. > > That may be, but how is it that /not/ doing thi

Re: File consumer + POJO splitter

2010-04-14 Thread John Landahl
On Tue, Apr 13, 2010 at 7:26 PM, Willem Jiang wrote: > I think it should be a best practice to copy the inMessage header if return > a list of new created Messages within the split method. That may be, but how is it that /not/ doing this results in errors in the File component?

Re: Deploying as web app with jetty endpoint

2010-04-14 Thread jfaath
I should note that by turning the com.sun.jersey.spi.spring.container.servlet.SpringServlet into a servlet instead of a filter, I can start up Tomcat without error. However, when I try to access a page I get this error: java.lang.IllegalStateException: No WebApplicationContext found: no ContextL

Graceful shutdown of Camel-Jetty component. (Camel 2.2.0)

2010-04-14 Thread Ilya S
Hi All, Fist of all, thank you for this great product! Every new release brings excellent new features just in time. I'm currently investigating Graceful Shutdown feature, and I'm am wondering if graceful shutdown is supported for Camel-Jetty component? I was able to successfully shut down JMS co

Re: onException handling

2010-04-14 Thread dnn
This one just won't die :) I've got the same issue, but caused in a slightly different way. The problem is when the DB commit fails (in my case, a unique constraint violation to an Oracle DB), the commit happens outside of the TransactionErrorHandler.super.process(exchange) block, and won't trig

Re: JMS Message Acknowledgement & Persistence in Camel

2010-04-14 Thread lekkie
Thanks for the insight. I have gone ahead to implement the Transactional Client EIP pattern. However, I noticed that my transaction is redelivered only 4 times. I used JMSTransactionManager as my transaction manager and my redelivery properties says maxredelivery is 6. Also, my timetolive is 24h

Re: camel-sftp component problem

2010-04-14 Thread hisham
thanks guys, i have downloaded the jsch-0.1.42.jar wraped it into OSGI bundle with BND-tool. it works fine now thanks again, Hisham willem.jiang wrote: > > Yes, I'm working on it now, and just submitted a patch[1] to ServiceMix. > I think you can create the bundle yourself by using the upper

Re: camel-sftp component problem

2010-04-14 Thread Willem Jiang
Yes, I'm working on it now, and just submitted a patch[1] to ServiceMix. I think you can create the bundle yourself by using the upper patch to a new bundle to use. [1]https://issues.apache.org/activemq/browse/SMX4-517 Willem Claus Ibsen wrote: Hi Yeah Willem Jiang noticed that as well. He

Re: Deploying as web app with jetty endpoint

2010-04-14 Thread jfaath
That seems to finally work...providing I remove the "Jersey Filter" that is used by the web console. This effectively breaks the Camel web console, so as of now it appears the two are incompatible. willem.jiang wrote: > > Oh, you should not use the ContextLoaderLister to load the camel route.

Re: camel-sftp component problem

2010-04-14 Thread Claus Ibsen
Hi Yeah Willem Jiang noticed that as well. He will create a new OSGi bundle of JSCH 0.1.40 which is the version we need to use. The 0.1.31 is just too old. On Wed, Apr 14, 2010 at 4:05 PM, hisham wrote: > > Hi Claus, > > i found the following  in the features XML file > servicemix4.2_installDI

Re: camel-sftp component problem

2010-04-14 Thread hisham
Hi Claus, i found the following in the features XML file servicemix4.2_installDIR\system\org\apache\camel\karaf\apache-camel\2.2.0-fuse-01-00\apache-camel-2.2.0-fuse-01-00-features.xml mvn:commons-net/commons-net/2.0 camel-core mvn:org.apache.servicemix.bundles/org.apache.servicemi

Re: camel-sftp component problem

2010-04-14 Thread Willem Jiang
I just checked the version of jsch of ServieMix 4.2.0-fuse, the jsch version is loader than camel-ftp. We need to install a new version bundle for it. [ 190] [Active ] [] [ ] [ 60] Apache ServiceMix Bundles: jsch-0.1.31 (0.1.31.3) Willem Claus Ibsen wrote: On Wed,

Re: [CXF] Inbound endpoint with PAYLOAD dataformat

2010-04-14 Thread Olivier Roger
It seems that the code has changed since Camel 2.2.0: https://svn.apache.org/repos/asf/camel/tags/camel-2.2.0/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfPayload.java I used the XMLConverter and it finds the value like this new org.apache.camel.converter.jaxp.XmlConverte

Re: camel-sftp component problem

2010-04-14 Thread Claus Ibsen
On Wed, Apr 14, 2010 at 3:14 PM, hisham wrote: > > Thanks for the quick reply. im using fuse servicemix 4.2 and camel-ftp > feature already installed, so i think all dependency should be resolved. > Could you check out which version of the jsch jar the OSGi container list as installed. > > > Cl

Re: camel-sftp component problem

2010-04-14 Thread hisham
Thanks for the quick reply. im using fuse servicemix 4.2 and camel-ftp feature already installed, so i think all dependency should be resolved. Claus Ibsen-2 wrote: > > Hi > > Do you have the right classes on the classpath? > > Here is the maven dependency list which can help you to see if

Re: [CXF] Inbound endpoint with PAYLOAD dataformat

2010-04-14 Thread Willem Jiang
It's right. If you take a look at the PayLoad[1] toString method, you will find it has header and body two parts. The content is right. And [esb:GetPerson: null]] is the GetPerson element to String's value. [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/main/java/org/

Re: JMS Message Acknowledgement & Persistence in Camel

2010-04-14 Thread Claus Ibsen
You can use transactions - ack mode TRANSACTED And then you need to setup a TX manager. Chapter 9 in the Camel in Action book. (and find examples in the source code for the book) Or check the Transactional Client EIP pattern at Camel wiki. On Wed, Apr 14, 2010 at 2:50 PM, lekkie wrote: > > I

Re: camel-sftp component problem

2010-04-14 Thread Claus Ibsen
Hi Do you have the right classes on the classpath? Here is the maven dependency list which can help you to see if you got all the required jars [INFO] [dependency:list] [INFO] [INFO] The following files have been resolved: [INFO]aopalliance:aopalliance:jar:1.0:test [INFO]com.sun.xml.bind

JMS Message Acknowledgement & Persistence in Camel

2010-04-14 Thread lekkie
I have this scenario where I 'd like to keep a message in the queue until the flow in my route has returned. See explanation below: I'd like to finish processing - which means the message is successfully sent to nmr:Webservice - before an ack is sent to my message broker (jms:${que

Re: Camel-ftp component problem

2010-04-14 Thread olamalam
Hi Charles, Yes, this solves my problem. Thank you very much. I could install those bundles you've listed by running these commands: features:install spring features:install spring-dm features:install http features:install war features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.2.0/xml/fea

camel-sftp component problem

2010-04-14 Thread hisham
i get error, while trying to route files to sftp component. here is my code ftp://ca...@localhost?password=test"/> the error: Caused by: java.lang.NoSuchMethodError: com.jcraft.jsch.Session.setConfig(Ljava/lang/String;Ljava/lang/String;)V at org.apache.camel.componen

Re: [CXF] Inbound endpoint with PAYLOAD dataformat

2010-04-14 Thread Olivier Roger
I did not specify it but here is the message I try to send: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:esb="http://www.bsb.com/incubator/esb";> 528404-885-24 I am not sure it helps though... Olivier Roger wrote: > > I remove the xmlbeans usage to use

Re: [CXF] Inbound endpoint with PAYLOAD dataformat

2010-04-14 Thread Olivier Roger
I remove the xmlbeans usage to use an interface using String as input and output parameter types. package com.bsb.incubator.esb.fuse4; import javax.jws.WebParam; import javax.jws.WebService; @WebService(targetNamespace = "http://www.bsb.com/incubator/esb";) public interface IWS { String

Re: Quick general question I need answered for a Design meeting I have today regarding WebService retry's please

2010-04-14 Thread Mick Knutson
Awesome! Thanks for the quick reply. Now I have what I need for my meeting, and more ammo to add Camel to this project. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Websit

Re: Quick general question I need answered for a Design meeting I have today regarding WebService retry's please

2010-04-14 Thread Claus Ibsen
On Wed, Apr 14, 2010 at 1:24 PM, Mick Knutson wrote: > I need a little ammo for a meeting I have today and I can research further > if this is easily possible with Camel... but: > > I have several dozen JAXB webservices that I can call for my application. > Several are VERY slow, and some will fai

Re: [CXF] Inbound endpoint with PAYLOAD dataformat

2010-04-14 Thread Olivier Roger
Thanks for you input willem, I am using the lastest Fuse ESB distribution which includes Camel 2.2. I will try to launch the example you indicated and what is different from my implementation. If I cannot figure it out I will provide a sample project. Olivier willem.jiang wrote: > > I just r

Quick general question I need answered for a Design meeting I have today regarding WebService retry's please

2010-04-14 Thread Mick Knutson
I need a little ammo for a meeting I have today and I can research further if this is easily possible with Camel... but: I have several dozen JAXB webservices that I can call for my application. Several are VERY slow, and some will fail and require retry attempts. Usually 3-4 attempts in order to

Re: [CXF] Inbound endpoint with PAYLOAD dataformat

2010-04-14 Thread Willem Jiang
I just ran a simple test by printing out the result of exchange.getIn().getBody(String.class) in the CxfConsumerPayloadTest.java on the trunk (Camel 2.3-SNAPSHOT), I can see the message body was printed out rightly. Which version of Camel are you using ? Willem Willem Jiang wrote: Hi, When

Re: [CXF] Inbound endpoint with PAYLOAD dataformat

2010-04-14 Thread Willem Jiang
Hi, When you use exchange.getIn().getBody(String.class) to get the message, camel will try to find a right converter to turn PayLoad (the actual object stored in the message body) into String. It looks like there is not a converter to do this job, so you got null. If I remember right, a StringC

[CXF] Inbound endpoint with PAYLOAD dataformat

2010-04-14 Thread Olivier Roger
Hello Camel, I am experimenting a strange issue when using CXF inbound endpoint with PAYLOAD dataformat option (no problem in MESSAGE mode). First I declare a CXF endpoint: http://localhost:10101/F1"; serviceClass="CXFUseCase">

Re: Camel-ftp component problem

2010-04-14 Thread cmoulliard
I have been able to make a test using apache felix karaf 2.0 Here is the list of the bundles deployed : ka...@root> list START LEVEL 100 ID State Blueprint SpringLevel Name [ 0] [Active ] [] [ ] [0] System Bundle (2.0.4) [ 1] [Active ] [

Re: extended Camel Mail Component not working

2010-04-14 Thread Willem Jiang
Ah, bad mock-javamail, it's good that you finally find out the issue. I think we need to update the wiki page of camel-mail to avoid wasting other user time to trace this kind of error. Willem Srini97 wrote: Hi, I Identified the problem. the culprit is mock-javamail which I am using it for

Re: Camel-ftp component problem

2010-04-14 Thread Willem Jiang
You don't need to install the bundle for javax.xml.bind if it's included in the system packages. Even you installed the bundle, OSGi platform will resolve it from the system packages first. Willem olamalam wrote: OK, I'll remove those lines but should I install those features included in JDK

Re: Camel-ftp component problem

2010-04-14 Thread Charles Moulliard
Those packages are present in the JDK 6 and should be loaded automatically by karaf (felix) at the startup. Can you send me in a separate email (using my gmail address) your camel route to allow me to make a test with the components that you would like to test (camel-ftp, ...) Kind regards, Char

Re: Camel-ftp component problem

2010-04-14 Thread olamalam
OK, I'll remove those lines but should I install those features included in JDK 6 (like javax.xml.bind or javax.jms) to karaf? I think there is something wrong with it. Thanks cmoulliard wrote: > > Hi > > You are right. Those lines have been removed from config.properties of > Karaf > but not

Re: Camel-ftp component problem

2010-04-14 Thread Charles Moulliard
Hi You are right. Those lines have been removed from config.properties of Karaf but not from Servicemix version. So remove them, Kind regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Expert : ServiceMix, CXF, ActiveMq, Fuse, ESB, EAI, Spring, Struts, Wicket, Jquery, JPA

Re: Camel-ftp component problem

2010-04-14 Thread olamalam
Hi Charles, I'm using JDK 6 but I couldn't see those lines you mentioned in etc/config.properties I've updated that file and added javax.xml.bind... lines but this time I'm getting this exception at startup: ERROR: Error parsing system bundle export statement: ... org.apache.felix.karaf.version;

users@camel.apache.org

2010-04-14 Thread Claus Ibsen
On Tue, Apr 13, 2010 at 6:35 PM, sagy wrote: > > Thanks Claus! > You are welcome to test 2.3-SNAPSHOT as I have committed a fix just now. http://camel.apache.org/download.html Mind that it takes a bit time for Apache to deploy a new SNAPSHOT on their servers. > > Claus Ibsen-2 wrote: >> >> On