Re: spring-ws component unmarshall Jaxb problem when Payload namespace prefix in attribute value

2012-05-15 Thread Richard Kettelerij
Also can you post your package-info.java file? You need that when binding the namespace (prefix). Especially note the @XmlNs annotation. -- View this message in context: http://camel.465427.n5.nabble.com/spring-ws-component-unmarshall-Jaxb-problem-when-Payload-namespace-prefix-in-attribute-value-

Re: spring-ws component unmarshall Jaxb problem when Payload namespace prefix in attribute value

2012-05-15 Thread Richard Kettelerij
Hi, Use the JAXB NamespacePrefixMapper to customize the prefux. See http://camel.apache.org/jaxb.html and the following post on the mailing list: http://camel.465427.n5.nabble.com/camel-jaxb-namespace-prefix-td5685354.html. Btw, why are you referring to XMLBeans in the last part of your post when

Re: Help with bulk insert using Spring+JPA+hibernate

2012-05-15 Thread Willem Jiang
You may consider to use splitter[1] to pass the EntityTest object to the jpa endpoint. [1]http://camel.apache.org/splitter.html On Wed May 16 07:31:03 2012, dmhatre wrote: Hi Folks, Below is the sample route. I am returning ArrayList from processor (can say setting exchange body). Is it po

Re: Handler is not getting called when calling external webservice using camel-cxf

2012-05-15 Thread Willem Jiang
Hi, I just did a quick test and find out the protocol handler is invoked in the camel-cxf endpoint is working in the PAYLOAD dataformat. Please double check your handler code to see why you cannot see any log message. On Tue May 15 12:57:27 2012, bhushand wrote: I am using handler definitio

Re: Graceful shutdown not graceful at all

2012-05-15 Thread PhilBurress
What do you recommend we use in its place (if anything)? -- View this message in context: http://camel.465427.n5.nabble.com/Graceful-shutdown-not-graceful-at-all-tp5709579p5710487.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Graceful shutdown not graceful at all

2012-05-15 Thread Willem.Jiang
You are using ThreadPoolTaskExecutor from spring and JmsComponent doesn't manage the TaskExecutor life cycle itself. If you want to shutdown the whole application gracefully, you need to call the ApplicationContext destroy method. -- View this message in context: http://camel.465427.n5.nabble.

Re: TransormationException in XSLT

2012-05-15 Thread Willem Jiang
Can you double check your message to see if it has more than one 'header' ? On Tue May 15 16:10:29 2012, Aleksawka Danilov wrote: Hello. I have a XML message what begin with header. When I send this message to xslt endpoint, it raised exception: javax.xml.transform.TransformerException: The proce

Help with bulk insert using Spring+JPA+hibernate

2012-05-15 Thread dmhatre
Hi Folks, Below is the sample route. I am returning ArrayList from processor (can say setting exchange body). Is it possible to insert the list in database instead for inserting it one by one? Kindly help me with this. Thanks in advance. Caused by:

Re: Global Route Policy?

2012-05-15 Thread Babak Vahdat
And also be aware of https://issues.apache.org/jira/browse/CAMEL-4196 Which is not fixed in Camel 2.6 you're using. So maybe check if you see any log entries like: "Scheduled Route Policy for route " + route.getId() + " is not set since the no start, stop and/or suspend times are specified" wh

Re: Global Route Policy?

2012-05-15 Thread PhilBurress
We are on Camel 2.6 if that makes any difference. Can't upgrade due to WAS 6.1. -- View this message in context: http://camel.465427.n5.nabble.com/Global-Route-Policy-tp5710327p5710374.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Global Route Policy?

2012-05-15 Thread Babak Vahdat
Using one of the Camel's own unit-tests [1] I did modify the test as the following to reproduce the behavior you've, however without success, as the test does pass: final SimpleScheduledRoutePolicy policy = new SimpleScheduledRoutePolicy(); long startTime = System.currentTimeMillis

Re: Global Route Policy?

2012-05-15 Thread PhilBurress
http://camel.465427.n5.nabble.com/Delay-route-start-td5686442.html Based on this suggestion for delaying route startup , my config has set to false. This is deployed as a web application and initializes after startup. -- View this message in context: http://camel.465427.n5.nabble.com/Global-Rout

Re: Global Route Policy?

2012-05-15 Thread Babak Vahdat
Hi How do you start your two Camel contexts? Can you show your complete Spring XML? Babak -- View this message in context: http://camel.465427.n5.nabble.com/Global-Route-Policy-tp5710327p5710330.html Sent from the Camel - Users mailing list archive at Nabble.com.

Global Route Policy?

2012-05-15 Thread PhilBurress
Tried setting up a SimpleScheduledRoutePolicy. However, it won't work on multiple routes. Only one route is started. I tried creating separate route policy beans (one for each route), but the same issue occurs, only one route starts. How to get around this? -- View this message in context:

Re: Error handling and invoking certain logic unconditionally

2012-05-15 Thread Ignat
Thanks, Claus. For some reason I saw your reply just now (and did not receive any e-mails from nabble, which is strange). Is there a way to attach unit of work synchronization code in Spring DSL ? This would be real help! -- View this message in context: http://camel.465427.n5.nabble.com/Error

Re: Splitting XML but including attribute from parent-document

2012-05-15 Thread Babak Vahdat
Hi Yes there's indeed a Spring DSL way to do it as well called "", so given that sample from the Camel documentation itself by the previous post you would have something like: ... ... Babak -- View this message in context: http://camel.465427.n5.nabble.com/Splitting-XML-but-includin

Re: How to implements ProcessStrategy?

2012-05-15 Thread Babak Vahdat
Hi The reason why you get "null" is simply just because of the "noop" implementation of many methods by "org.apache.camel.component.file.FileOperations" like the following: public List listFiles() throws GenericFileOperationFailedException { // noop return null; } pub

Re: How to get this done in Camel

2012-05-15 Thread Rocco Gallo Citera
You can have a bean that is a factory for the dynamic bean. For the parallel processing, you might want to take a look at the EIP, you could find it useful ;-) On Tue, May 15, 2012 at 9:11 AM, Christian Schneider wrote: > That depends what you mean by configure. You can not create the bean every

Re: How to get this done in Camel

2012-05-15 Thread Christian Schneider
That depends what you mean by configure. You can not create the bean every time and call the constructore with values from the message. What you can do is call a method of the bean with e.g. header values from the message. See: http://camel.apache.org/bean-binding.html Christian Am 15.05.201

Re: 2 persistence units in Camel

2012-05-15 Thread Babak Vahdat
Hi Looking at the stacktrace you've provided I suspect you did *not* name the persistence unit as "qualitas-pu" inside your "persistence.xml". That's it should be something like: ... ... ... Can you maybe show your "persistence.xml". And wh

Re: Splitting XML but including attribute from parent-document

2012-05-15 Thread Kleczka Peter John
Thanks. Was hoping there was a Sping DSL way to do it, but I guess a POJO just about as easy. On May 14, 2012, at 10:06 PM, alexey-s wrote: > Hey. > Read Splitter https://camel.apache.org/splitter.html > Section "Using a Pojo to do the splitting", a class MySplitterBean. > Change the method si

How to implements ProcessStrategy?

2012-05-15 Thread Pieter Vunckx
I'm trying to use the ProcessStrategy functionality of Apache Camel but it's not working for the moment. Routing-class: endpoint.setProcessStrategy(new MyGenericFileProcessStrategy()); MyGenericFileProcessStrategy-class: class MyGenericFileProcessStrategy extends GenericFileProcessStr

Re: How to get this done in Camel

2012-05-15 Thread soumya_sd
Christian Schneider wrote > > You can´t really dynamically create the bean using camel DSL. It will > always be created at the time the route is added to camel. > Of course you can have one "singleton" bean that then creates the other > bean in java code. > > > @Christian - what I meant was

Re: How to get this done in Camel

2012-05-15 Thread soumya_sd
Willem.Jiang wrote > > > > How about the route like this > > from("direct:in").to("http://somewhere";).bean(mybean, "process").to("your > endpoint") > > You can store the parameter into the exchange property, and it will be > copied across the route. > > Thanks for confirming this. Is it p

2 persistence units in Camel

2012-05-15 Thread Łukasz Budnik
Hi All, I had 1 persistence unit in my route and everything worked fine. Yesterday I decided to add JPA tracer. For this tracer I defined a dedicated persistence unit. Basically this is not a problem to have many persistence unit (just to be clear my data access layer is in a separate project). A

Re: ClassCastException using cxf:bean

2012-05-15 Thread cgiera
Willem.Jiang wrote > > The bean method should be thread safe, as the method will be called > from different thread. > The getBean() method is not thread safe: Just try it out: You need 2 breakpoints in this method: 1. breakpoint at last if in line value = bean 2. breakpoint at line bean = v

TransormationException in XSLT

2012-05-15 Thread Aleksawka
Hello. I have a XML message what begin with header . When I send this message to xslt endpoint, it raised exception: javax.xml.transform.TransformerException: The processing instruction target matching "[xX][mM][lL]" is not allowed. But when I send another XML message with this header to another X

Re: How to get this done in Camel

2012-05-15 Thread Christian Schneider
You can´t really dynamically create the bean using camel DSL. It will always be created at the time the route is added to camel. Of course you can have one "singleton" bean that then creates the other bean in java code. Christian Am 15.05.2012 06:02, schrieb soumya_sd: I've a route that 1. i