Re: Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Charles Moulliard
Hi Jothi, You can have a look here http://camel.apache.org/xpath.html Regards, On Fri, Aug 24, 2012 at 8:20 AM, Joe San wrote: > When versioning with the package names, I would end up changing the imports > of these models in my classes that use these models. Yes it is just a > ctrl+o in ecl

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Joe San
When versioning with the package names, I would end up changing the imports of these models in my classes that use these models. Yes it is just a ctrl+o in eclipse, but still I would give it a thought. Now back to my original question, how can I filter the xml that I posted above in the mail threa

Re: Routing an ObjectMessage in ActiveMQ

2012-08-23 Thread Charles Moulliard
Hi Jean-Pierre, Have you the same issue if you draw your camel route like this : Regards, On Thu, Aug 23, 2012 at 7:04 PM, jprio wrote: > Hello, > I'm using AMQ 5.5.0 and I want to use the following route definition to > route an *ObjectMessage* : > > >

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Charles Moulliard
Hi Jothi, Christian suggests to define package name with a version number like this : com.mycompany.domain.v1_0.mymodel com.mycompany.domain.v1_1.mymodel com.mycompany.domain.v2_0.mymodel So, based on different xsd files, you will generate domain classes that you can next enrich with Bindy annot

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Joe San
Christian, I did not get your point. In one of my earlier projects, we used to version the xsd file in SVN. But when you say version the generated objects, do I do it using an annotation? Can that also be generated as well? Regards, Jothi On Thu, Aug 23, 2012 at 10:38 PM, Christian Müller < chri

Re: Help with JMX client to monitor/manage camel routes,processors etc

2012-08-23 Thread Willem jiang
It looks like you didn't specify a right ObjectName for the route. Here is an example: ObjectName onFoo = ObjectName.getInstance("org.apache.camel:context=localhost/camel-1,type=routes,name=\"foo\""); -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog

Re: Camel with IBM MQ JNDI

2012-08-23 Thread Willem jiang
Hi Amby, It looks like you codes are not showed in the mailing list. I just have a quick look at them from nabble site, you need setup the JMSComponent with the connectionFactory before create the JMSEndpoint. BTW, it could be useful if you past the stack trace. -- Willem Jiang FuseSource We

Re: JsonEndpoint and Router

2012-08-23 Thread ychawla
Hi Marco, I have had a similar situation. I grab the JSON input, unmarshall to a POJO, inspect the payload for a parameter, and then set a camel header for routing. I have also had cases where I could route directly based of information in the HTTP Headers. Handling this by setting a header ba

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Christian Müller
But than you cannot re-generate your JAXB objects. You should consider to version the generated and annotated domain objects instead to generate it from your XSD file... Best, Christian On Thu, Aug 23, 2012 at 5:29 PM, Charles Moulliard wrote: > Yep. You can annotated your domain class with bot

Re: Camel with IBM MQ JNDI

2012-08-23 Thread ambarish.d
Hello Henryk I have edited the post and added my code here. As I said earlier, I am using Java for this route. - thanks Amby http://workingwithqueues.blogspot.com/ -- View this message in context: http://camel.465427.n5.nabble.com/Camel-with-IBM-MQ-JNDI-tp5717890p5717968.html Sent from

JsonEndpoint and Router

2012-08-23 Thread Marco Mistroni
hello all i have a camel-app in which i have configured a Jetty endpoint which will handle JSON requests/responses to my application. this is the simple config data associated with it http://localhost:/myJettyService"; /> I was

Help with JMX client to monitor/manage camel routes,processors etc

2012-08-23 Thread dmhatre
Hi Folks, I am trying to build a JMX client to monitor/manage camel routes,processors etc. I can see the mbeans in jconsole but want some remote jmx client to monitor camel. I am able to connect to the mbeanserver but get exception when calling the operations on Mbean NOTE: Running CAMEL as s

Routing an ObjectMessage in ActiveMQ

2012-08-23 Thread jprio
Hello, I'm using AMQ 5.5.0 and I want to use the following route definition to route an *ObjectMessage* : My problem is that, when I post an ObjectMessage to foo, the consumer of bar1 receives an ActivemqObjectMessage whereas the consumer of bar2 receives an ActivemqMessage (a

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread towe
Upgraded to 2.10.0 but unfortunately the problem is still there. :-( Message gone after graceful shutdown but left if process killed. Claus Ibsen-2 wrote > > Okay you need to upgrade to Camel 2.10 as we have improve the graceful > shutdown > * Graceful Shutdown is now more aggressive if timeo

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Charles Moulliard
Yep. You can annotated your domain class with both JAXB and Bindy annotations. On Thu, Aug 23, 2012 at 4:37 PM, Joe San wrote: > I would have to route a JMS message which I guess would be from Tibco to a > CSV file to be saved as .xls in a file system. > > I guess I have to use both the JAXB and

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Joe San
Here is more specific of what I'm trying to do: I have a route that listens for JMS messages in a Queue and these JMS messages are SOAP xml messages. In this message, I have to filter out certain piece of the xml and convert that to a CSV format which will finally be stored as an excel file:

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread Claus Ibsen
Hi Okay you need to upgrade to Camel 2.10 as we have improve the graceful shutdown * Graceful Shutdown is now more aggressive if timeout occurred during shutdown, rejecting continued processing of messages or redeliveries. http://camel.apache.org/camel-2100-release.html I can't remember if we hav

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread towe
Camel: 2.9.2 ActiveMQ: 5.6.0 Spring: 3.1.1 -- View this message in context: http://camel.465427.n5.nabble.com/shutting-down-Camel-in-flight-messages-gone-tp5717930p5717949.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread Claus Ibsen
What version of Camel are you using? On Thu, Aug 23, 2012 at 4:45 PM, towe wrote: > > While Camel running the route and continuously rolling back and trying to > redeliver. If I: > 1. ctrl+c: graceful shutdown, message gone :-( > 2. kill -9: process killed, message left in queue! > > This leads

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread towe
While Camel running the route and continuously rolling back and trying to redeliver. If I: 1. ctrl+c: graceful shutdown, message gone :-( 2. kill -9: process killed, message left in queue! This leads me to think that something in the graceful shutdown procedure removes the message. I can't see an

Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Joe San
I would have to route a JMS message which I guess would be from Tibco to a CSV file to be saved as .xls in a file system. I guess I have to use both the JAXB and Bindy dataformats. JAXB to unmarshall from xml to Java and marshall from java to csv using Bindy. But can I annotate the same domain obj

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread Claus Ibsen
You should remove the Camel error handler, and let the broker do the redelivery. Don't do both. A message broker can also be configured to perform redelivery of messages, and it has a dead letter queues etc. If you use ActiveMQ read and their links http://activemq.apache.org/redelivery-policy.htm

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread towe
I am using transacted mode. But if I stop Camel during redelivery while the queue on B is down the message gets removed from the queue and is gone when I restart. To simulate an error I have a dummy consumer that throws an exception, but the problem is the same if I have a remote queue that is sh

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread Claus Ibsen
On Thu, Aug 23, 2012 at 2:09 PM, towe wrote: > Hi, > > Not really, I want to be able to shutdown immediately (or with a small > timeout). Any message picked up from A must be rolled back and stay in the > queue. > > If I have the a of 5s Camel will keep trying to resend until timeout. Then > it dr

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread towe
Just clarify further: I want to continuously poll a local queue A and forward to a remote queue B. When B is down stuff should stay in A until B is up again. When turning off Camel no message should be lost. And I want to be able to shut down Camel at any time, messages in-flight should be rolle

Re: Rename file in endpoint

2012-08-23 Thread German de la Cruz
great!! It works!! CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() { @Override public void configure() throws E

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread towe
Hi, Not really, I want to be able to shutdown immediately (or with a small timeout). Any message picked up from A must be rolled back and stay in the queue. If I have the a of 5s Camel will keep trying to resend until timeout. Then it drops the message. But I want it to be left in A (as it has no

Re: shutting down Camel, in-flight messages gone

2012-08-23 Thread Claus Ibsen
Hi You want to keep retry forever if B is down during shutdown of Camel? You can set the timeout period to be 0 or a negative value. Then it runs forever until it can shutdown without any inflight messages. http://camel.apache.org/graceful-shutdown.html On Thu, Aug 23, 2012 at 10:56 AM, towe w

Re: redeliveryPolicy -: How can we retry from start of the route in case of exception occurred inbetween of route?

2012-08-23 Thread sarfaraj
Hey man it works :) . This is what I exactly wanted. Finally I got it. Many thanks appreciated /Sarfaraj -- View this message in context: http://camel.465427.n5.nabble.com/redeliveryPolicy-How-can-we-retry-from-start-of-the-route-in-case-of-exception-occurred-inbetween-of-tp5717848p57179

shutting down Camel, in-flight messages gone

2012-08-23 Thread towe
I am trying to set up a camel route that forwards jms messages from one persistent (local) queue to another remote jms queue. If the remote connection is down the incoming message should be left on the in-queue. I managed to get this to work using transactions. But the problem I have now is that

Re: JSON - Jackson return list rather than POJO

2012-08-23 Thread Claus Ibsen
On Mon, Aug 20, 2012 at 10:42 AM, Jason Chaffee wrote: > I asked this same question before and this the example and answer I got about > using a Map with Jackson. > Yeah I think it uses Map by default. > > > > unmarshalTypeName="org.apache.camel.component.jackson.TestPojo"/> > > >

Re: onCompletion with onWhen predicate

2012-08-23 Thread Claus Ibsen
On Wed, Aug 15, 2012 at 5:01 PM, Hilde wrote: > Hello folks! > > I have figured out that onCompletion().onWhen() cannot be used multiple. > > Actually onCompletion().onWhen() suggests to use it multiple erroneously. > I wrote the following route: > > from("seda:" + SedaDirectDestinations.SEDA_LOAD