2.14.0 build fails on camel-web (javadocs)

2014-09-22 Thread rickaroni
Hiya, I'm compiling 2.14.0 with: mvn clean install -Pspring4,fastinstall and getting the following errors below when it hits camel-web. [Spring4 is the the default now, yes?] Thanks, Rick [INFO] [INFO] BUILD FAILURE [IN

Getting error Content Based Routing for the xml

2014-09-22 Thread vikrant
I have a custom message - etlms~ Message-Profile-Id=FPC-MAIN-REQUEST| Correlation-Id=123456_ABCDEFG| ~ http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="../ServicesRequest1.xsd" MessageType="Request"> Using the preprocessor, I am getting the xml message from th

Re: Can unit tests be @Transactional?

2014-09-22 Thread Minh Tran
I think it’s important to understand the reason why your test fails, it’s not really camel’s fault. It's because your camel route executes your dao method on a separate thread. If you’re using a JMS consumer then this will definitely run under a separate thread. This is a spring transaction “fe

Re: Is this route possible..?

2014-09-22 Thread Matt Sicker
You're probably better off with a transaction manager like Geronimo's just to coordinate all the different transaction types. Then you can use the transacted route definitions. On 22 September 2014 07:05, Siano, Stephan wrote: > Yes, it should be possible to define a transaction manager for the

Re: Camel 2.14.0 Restlet: NoClassDefFoundError

2014-09-22 Thread Camel Guy
Thanks for your help, Claus and Willem. I'm doing OK with 2.13.2. I'll try again in a few weeks. Like you said, it probably was an old JAR file. To answer one of your questions, I don't use a servlet container. Restlet is great with Camel and I look forward to using Apache Spark. On Sat, Sep 20, 2

Re: Can unit tests be @Transactional?

2014-09-22 Thread Claus Ibsen
On Mon, Sep 22, 2014 at 5:41 PM, James Green wrote: > OK - we have a working solution. Someone should document this at > http://camel.apache.org/transactional-client.html and > http://camel.apache.org/spring-testing.html since we have had many days of > trouble. > We love contributions, so you ar

Re: Can unit tests be @Transactional?

2014-09-22 Thread James Green
OK - we have a working solution. Someone should document this at http://camel.apache.org/transactional-client.html and http://camel.apache.org/spring-testing.html since we have had many days of trouble. The crux is the source here: https://github.com/rajivj2/example2/blob/master/src/test/java/com/

Re: please help with transformation of a response by xslt

2014-09-22 Thread aioria3077
effectively, since last week Always change a PAYLOAD to MESSAGE data format. I'm about to check out the transformation with the manager of that part because apparently that's where we're having problems, thank you very much -- View this message in context: http://camel.465427.n5.nabble.com/pl

RE: please help with transformation of a response by xslt

2014-09-22 Thread aioria3077
Thank you very much for this information, and check the coding of the original RESPONSE and matches my XSLT transformation, both are UTF-8. -- View this message in context: http://camel.465427.n5.nabble.com/please-help-with-transformation-of-a-response-by-xslt-tp5756711p5756852.html Sent from t

Re: please help with transformation of a response by xslt

2014-09-22 Thread aioria3077
thanks, run the transformation to String after the XSLT transformation, continuous error, I think it's my transformation which is having problems, I'll check, thank you very much for your help -- View this message in context: http://camel.465427.n5.nabble.com/please-help-with-transformation-of-

Re: Corrections to Wiki

2014-09-22 Thread Claus Ibsen
Thanks I removed those links On Mon, Sep 22, 2014 at 4:30 PM, James Green wrote: > Apparently I don't have permission to edit the following page: > > http://camel.apache.org/transactional-client.html > > Could someone correct the links to the Spring website (there are several > that now 404)? > >

Corrections to Wiki

2014-09-22 Thread James Green
Apparently I don't have permission to edit the following page: http://camel.apache.org/transactional-client.html Could someone correct the links to the Spring website (there are several that now 404)? Thanks, James

Re: Can unit tests be @Transactional?

2014-09-22 Thread Minh Tran
The reason for the hang is because Spring unit test transaction is separate to the camel transaction. The camel transaction is blocked waiting because the spring has uncommitted changes to the same table it is trying to read from. Either 1. commit the spring transaction first, drop the @Transac

Can unit tests be @Transactional?

2014-09-22 Thread James Green
We have a Spring project that has a unit test annotated @Transactional. This uses a DAO to save a sample Entity before invoking a Camel route that accepts a JMS message and sends it to some Processors. The problem we have is when the test itself is annotated @Transactional. The route stops having

RE: Is this route possible..?

2014-09-22 Thread Siano, Stephan
Yes, it should be possible to define a transaction manager for the data source and make the route transacted with that one. However in that case the database accesses may be committed before the JMS read is committed (so if the removal of the message from the JMS queue fails, the database calls

Is this route possible..?

2014-09-22 Thread James Green
We want to consume from JMS and route the message through a set of Processors which may or may not invoke database calls via DAOs. Thing is, we want the database calls to be wrapped in a transaction, but we don't have an XA transaction manager so the JMS part ought to be excluded. Is this possibl

Zip files are not getting created after a certain period of time.

2014-09-22 Thread Milind
Hi, I am using a Zip file Data format component to generate single entry zip file after reading messages from RabbitMQ and these are getting generated successfully. I am facing a frequent issue of not producing these zip files after a period of two-three days. I have more than 10 lac message in

Re: Route Design Suggetion

2014-09-22 Thread imranrazakhan
Hi, Thanks for suggestions, "direct" will also help to minimize duplicate code. Regards, -- View this message in context: http://camel.465427.n5.nabble.com/Route-Design-Suggetion-tp5756825p5756837.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Route Design Suggetion

2014-09-22 Thread Charles Moulliard
- This is always a good practice to increase readability of the camel DSL or its reusability by using the "direct" component for sync exchanges - Exposing your rules/conditions using the Camel DSL (like choice().when()) offers the advantage that the logic is visible and not encapsulated with java b

Re: Route Design Suggetion

2014-09-22 Thread imranrazakhan
Hi, Thanks, 1- I want to improve syntax. 2- As i am using multiple choices so any better way to handle it. 3- Can we break one big route into multiple for more good readability. 4- Any other suggestion to improve syntax design as i am getting data in table(no other trigger available) so polling