Re: Use sys.property in xpath filter

2009-11-02 Thread Claus Ibsen
Hi See this wiki page http://camel.apache.org/xpath that may help a bit. On Mon, Nov 2, 2009 at 10:11 PM, bhusted wrote: > > Is it possible to refer to a Java System property in a camel:xpath filter? > > For example: > > >   /myns:SomeTag = ${sys.SomeSystemProp} > > > > Any suggestions if t

Re: How to aggregate all messages into a single message?

2009-11-02 Thread Claus Ibsen
Hi Thanks for sharing your solution. Looks nice with separate routes for the aggregation. Makes it easier to test as well :) On Mon, Nov 2, 2009 at 9:18 PM, kodcanavari wrote: > > I resolved my problem by this way: > >        this.from(m_from_folder_url) >                .split(new SplitExpressi

Re: How to aggregate all messages into a single message?

2009-11-02 Thread kodcanavari
I resolved my problem by this way: this.from(m_from_folder_url) .split(new SplitExpression()) .process(new Processor()) .choice() .when(header("type").isEqualTo("add")) .to("direct:addEntry")

AW: AW: AW: Problem with SOAP/JMS and transactions

2009-11-02 Thread Schneider Christian
Hi Willem, thanks for the help. I can not compile camel at work - will try this from home later. If it works I could even get it into our local distribution quickly as I had to build a custom version of camel-cxf anyway because of the annotation issue. Greetings Christian Christian Schneider Te

Re: AW: AW: Problem with SOAP/JMS and transactions

2009-11-02 Thread Willem Jiang
Hi Christian, I'm glade it works on camel side. For the CXF side , I think we need to check the CXF message's exception in the Camel transport and let camel throw the exception. Here is my patch on the latest trunk code (not be verified yet), please feel free to give it a try. ### Eclipse W

AW: AW: Problem with SOAP/JMS and transactions

2009-11-02 Thread Schneider Christian
Hi Claus, I have replaced the cxf server with the folowing route: Inside the Processor I simply throw a RuntimeException again. This configuration works like expected. The transaction is rolled back and the message gets redelivered. I also had to configure my queue n

Re: JMS Transactions and RequestReply - transactedInOut=true not working?

2009-11-02 Thread Claus Ibsen
Hi Try using a 2nd JMS component for sending. Then its separated from the 1st component. On Sat, Oct 31, 2009 at 12:26 AM, jonathanq wrote: > > I am having an issue with JMS queues and transactions. > > I have the following route: > > from("queue:incomingqueue") >        .process(getSomeTransla

Re: AW: Problem with SOAP/JMS and transactions

2009-11-02 Thread Claus Ibsen
On Mon, Nov 2, 2009 at 2:47 PM, Schneider Christian wrote: > Hi Willem, > > I also suspected it has to do with CXF Wrapping the Exception and not simply > rethrowing it. Do you think it would help to use pure CXF JMS Transport? > > For the start I will try how Claus suggested to get transactions w

AW: AW: Problem with SOAP/JMS and transactions

2009-11-02 Thread Schneider Christian
Hi Willem, I also suspected it has to do with CXF Wrapping the Exception and not simply rethrowing it. Do you think it would help to use pure CXF JMS Transport? For the start I will try how Claus suggested to get transactions working without CXF. When this works I will try again to get Camel CXF

Re: AW: Problem with SOAP/JMS and transactions

2009-11-02 Thread Willem Jiang
Hi Christian, I think it may relate to the CamelDestination just deal with input and output stream. As you know if you throw the exception from the service impl, the exception will be caught by the CXF interceptor chain and it will be turned into a soap fault message, then be passed back to th

Re: Problem with SOAP/JMS and transactions

2009-11-02 Thread Claus Ibsen
Hi Try without CXF in the mix and just plain Tibco and Camel and get that working. On Mon, Nov 2, 2009 at 2:10 PM, Schneider Christian wrote: > Hi Willem, > > I have adjusted my applicationContext but still my message gets acknowledged > instead of being rolled back. > > My service impl contai

Re: Discussion - Route Policy feature in Camel 2.1

2009-11-02 Thread Claus Ibsen
Hi I have implemented this feature into the trunk now. You can checkout the documentation at http://camel.apache.org/routepolicy.html And I have also added an example you can play with ./examples/camel-example-route-throttling Which also has a bit of documentation at http://cwiki.apache.org/con

AW: Problem with SOAP/JMS and transactions

2009-11-02 Thread Schneider Christian
Hi Willem, I have adjusted my applicationContext but still my message gets acknowledged instead of being rolled back. My service impl contains: throw new RuntimeException("Test for transaction"); Any idea what still goes wrong? Greetings Christian My applicationcontext now looks like

AW: Problem with SOAP/JMS and transactions

2009-11-02 Thread Schneider Christian
Hi Claus, thanks for the hint. I have found how to control redelivery in Tibco JMS. Do you have any idea why the rollback in my example does not work? If someone else needs to tune this on Tibco EMS: You can set maxRedelivery=n on a queue config. This means that messages in the queue are redelive

Re: Problem with SOAP/JMS and transactions

2009-11-02 Thread Willem Jiang
Hi Christian If you want the redelivery policy take effect, you need to change your camel context like this http://camel.apache.org/schema/spring";> uri="camel://jms:queue.net.enbw.services.etg.examples.customerservice.CustomerService" /> uri="camel://jms:queue.net.enbw.services

Re: Problem with SOAP/JMS and transactions

2009-11-02 Thread Claus Ibsen
On Mon, Nov 2, 2009 at 12:02 PM, Schneider Christian wrote: > Hi, > > I am currently trying to get transactions for SOAP/JMS running. I am using > camel-cxf for SOAP handling and camel-jms for jms connections. > > I have a request reply service that should be able to do three different > things: >

Problem with SOAP/JMS and transactions

2009-11-02 Thread Schneider Christian
Hi, I am currently trying to get transactions for SOAP/JMS running. I am using camel-cxf for SOAP handling and camel-jms for jms connections. I have a request reply service that should be able to do three different things: - no exception occurs in the implementation: The jms Message should be c

[ANNOUNCE] - Apache Camel Group on Linkedln

2009-11-02 Thread Charles Moulliard
I'm very proud to announce to Camel community that your favorite routing and mediation framework is now available on Linkedln web site : http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm Feel free to request to join the group in order to exchange your experience, ideas, promote disc