XmlRpc example

2014-03-02 Thread imranrazakhan
Hi, I downloaded apache camel and couldnt find any example for XmlRpc, Please point me to any place where i could find example. Regards, -- View this message in context: http://camel.465427.n5.nabble.com/XmlRpc-example-tp5748176.html Sent from the Camel - Users mailing list archive at Nabble

Re: XmlRpc example

2014-03-02 Thread Claus Ibsen
Hi A good idea to find something is to use the search box on the Camel website http://camel.apache.org/ for example type xmlrpc and click search. And for Camel components you can look at the unit tests for examples too. On Sun, Mar 2, 2014 at 9:42 AM, imranrazakhan wrote: > Hi, > > I download

Re: camel-example-cxf* (all CXF examples)

2014-03-02 Thread Willem Jiang
I just tried to build the camel-example-cxf of camel-2.12.3, I didn’t get the error that you meet. Can you remove the cxf jars from your maven repo to let the maven download a new version for you? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(h

JMS connections survive undeployment

2014-03-02 Thread helander
I am using JMS endpoints in a camel-servletlistener based application. In order to get better performance I use the Spring CachingConnectionFactory on my endpoints. An effect of this is that when I undeploy my application the active (cached) connections do not get destroyed (the seem to survive unt

Re: Master/Slave failover using database lock

2014-03-02 Thread gquintana
Hello, I tried to implement my own route policy, you can have a look at code here: https://github.com/gquintana/camel/compare/locking-routepolicy It's only a prototype at the moment, I didn't test my code in real app, there are some unit tests though. Yet I'm a bit puzzled: 1. From a route polic

Re: JMS connections survive undeployment

2014-03-02 Thread Claus Ibsen
Hi Make sure to stop the spring connection factory pool you use. As well ideally you should start it too. On Sun, Mar 2, 2014 at 2:22 PM, helander wrote: > I am using JMS endpoints in a camel-servletlistener based application. > In order to get better performance I use the Spring CachingConnec

Re: JMS connections survive undeployment

2014-03-02 Thread helander
Hi Claus, in order to stop it, I need to know when it is time to stop it. What would be an appropriate way to do this? Currently I create/start the pool as part of a custom camel component. Can I register something that gets executed when the camel context stops, or could I have a destructor on my

JTA Transactions using Atomikos not rolling Back in Test

2014-03-02 Thread kraythe .
I am encountering a problem in my unit test that I was hoping i could get help on. Basically I am building a unit test of a JTA transacted route and the transactions are not rolling back as expected. I would be grateful of any assistance in the matter. Please be aware that I am unable to use spring

Re: Is apache-camel supports nested route

2014-03-02 Thread kraythe .
That won't work the way you want. There are much better ways of doing this. Specifically you can use a to("direct:xxx") to do some processing that is abstracted out of the route. The other comment I have on your route is that you seem to be heavy in writing processors for things that can be done in

Re: JMS connections survive undeployment

2014-03-02 Thread Claus Ibsen
The servlet listener ought to have callbacks for start|stop you can hook into and do what you need to do. And stopping the pool after camel is best, as during shutdown of camel there is maybe inflight jms messaging occurring. On Sun, Mar 2, 2014 at 4:43 PM, helander wrote: > Hi Claus, > > in or

Re: JMS connections survive undeployment

2014-03-02 Thread helander
Would something like this work ? In my custom camel component I will create and start the pool in the createEndpoint method. Further I would add an eventnotifier for CamelContextStoppedEvent to the context. In the eventnotifier I would then stop the pool. The thinking from my side is to have a s

camel proxy with headers

2014-03-02 Thread geddamsatish
Hi , Im using camel proxy to call an endpoint in camel say direct:say. public interface xyz{ public void sayhello(String body,??); } ??? i want to set headers or send headers can any one help with an example in binding interface. Thanks Saitsh -- View this message in context: http://camel

Re: camel-example-cxf* (all CXF examples)

2014-03-02 Thread David Parker
Hi Willem, appreciate you looking at this. It is true - after I cleared away support XML jars, the projects compiled & I can run them properly. The root cause of the issue appears to be JDK 1.6 conflicting with xerces libs, perhaps jaxb impl/api as well. In future, I must keep an eye on which p

Re: camel-example-cxf* (all CXF examples)

2014-03-02 Thread Willem Jiang
Hi David, I forgot to mention that I was using JDK7 to run the test, and I didn’t endorse the Xerces lib. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (

Re: how to do redelivery message

2014-03-02 Thread simafengyun
Hi, If I can checked the null value returned in the below step, I can call it step1, it should works. But processorService is an OSGi service. I can't check null value in this step. So I only can check null in the below step, I can call it step2. But if I check in the step2, the redelivery polic

how to redelivery message in the below case

2014-03-02 Thread simafengyun
Hi, somebody could tell me how to redelivery message in the below case. I have a client bundle deployed in karaf(used camel 2.10.4 and karaf 2.3.3). there is a camel route in the client bundle. Code as below: <--IdOsgiTestProcessor just used to created message body--> <--processorService is