Re: Camel Exchange Patters

2010-09-14 Thread Bengt Rodehav
Thanks Willem and Claus, I guess we should only bother with in messages then and forget about the out message if we want a simple rule. I thought that the rationale for having both in- and out messages was that the original in message would be kept unaltered while the out message would gradually

Re: Camel Exchange Patters

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 9:02 AM, Bengt Rodehav be...@rodehav.com wrote: Thanks Willem and Claus, I guess we should only bother with in messages then and forget about the out message if we want a simple rule. I thought that the rationale for having both in- and out messages was that the

Re: Camel Exchange Patters

2010-09-14 Thread Bengt Rodehav
OK, thanks. /Bengt 2010/9/14 Claus Ibsen claus.ib...@gmail.com On Tue, Sep 14, 2010 at 9:02 AM, Bengt Rodehav be...@rodehav.com wrote: Thanks Willem and Claus, I guess we should only bother with in messages then and forget about the out message if we want a simple rule. I thought

Re: Camel Exchange Patters

2010-09-14 Thread Christian Müller
Hello Claus! That's not (in my opinion) how it works currently. At present I work on a route which looks like this: errorHandler( defaultErrorHandler() .retryAttemptedLogLevel(LoggingLevel.DEBUG) .retriesExhaustedLogLevel(LoggingLevel.INFO));

Re: Problem with protobuf example / Spring DSL to unmarshal to protobuf

2010-09-14 Thread Marcel Jager
Let me describe a step-by-step guide so you can recreate it. Ok, I have constructed a small example using a freshly downloaded copy of Camel 2.4.0. I'am using the provided example protobuffer definition from the example: addressbook.proto and run the protobuffer-compiler protoc to generate the

Re: Camel Exchange Patters

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 10:23 AM, Christian Müller christian.muel...@gmail.com wrote: Hello Claus! That's not (in my opinion) how it works currently. At present I work on a route which looks like this: errorHandler(  defaultErrorHandler()    .retryAttemptedLogLevel(LoggingLevel.DEBUG)    

Re: Camel Exchange Patters

2010-09-14 Thread Bengt Rodehav
I think that was very useful information. I hadn't thought of a Processor as very low level - it's definitely a level that a lot of us will use. Then I guess that in some circumstances (like when coding a custom processor) you need to set the out messsage if the MEP is out capable otherwise you

Re: Camel Exchange Patters

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 2:16 PM, Bengt Rodehav be...@rodehav.com wrote: I think that was very useful information. I hadn't thought of a Processor as very low level - it's definitely a level that a lot of us will use. Then I guess that in some circumstances (like when coding a custom processor)

Re: Camel calling commit too early when using split+seda+file endpoint

2010-09-14 Thread camel_el
Is there a link I can use to download 2.5.0 (links on http://camel.apache.org/camel-250-release.html do not work), or I need to go through the code repo? -- View this message in context:

Re: Camel Exchange Patters

2010-09-14 Thread Bengt Rodehav
Yeah I remember reading about the problems with losing message headers somewhere on this list... To be perfectly honest I think that the number of mails on this thread indicates the importance of documenting these rules and how things work. Claus, you are most definitely the man to do it. I've

Re: How do YOU handle scheduling?

2010-09-14 Thread Andreas A.
Hi I'm now trying to just use a Spring trigger and a simple class using ConsumerTemplate and ProducerTemplate to fetch the files. However, I can't get the ConsumerTemplate to stop polling when I first start it, what's going on? public class FtpsPoller { @Autowired private

Re: Camel calling commit too early when using split+seda+file endpoint

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 2:27 PM, camel_el eric.ladouc...@cse-cst.gc.ca wrote: Is there a link I can use to download 2.5.0 (links on http://camel.apache.org/camel-250-release.html do not work), or I need to go through the code repo? http://camel.apache.org/download You need to download the

Re: Camel calling commit too early when using split+seda+file endpoint

2010-09-14 Thread camel_el
I've tried smcduff's patch on 2.4.0 and it fixed my problem. Like he has mentioned on https://issues.apache.org/activemq/browse/CAMEL-3121, we had to modify his original patch slightly to make it work at shutdown time. I'll still give 2.5.0 a try when I get access to it. -- View this message

Re: How do YOU handle scheduling?

2010-09-14 Thread Claus Ibsen
Read the java doc and documentation for the ConsumerTemplate. Or check chapter 3 or appendix C in the Camel book. On Tue, Sep 14, 2010 at 2:30 PM, Andreas A. andreasasm...@gmail.com wrote: Hi I'm now trying to just use a Spring trigger and a simple class using ConsumerTemplate and

Re: Camel calling commit too early when using split+seda+file endpoint

2010-09-14 Thread Claus Ibsen
Hi Can you try 2.5 as it should have been fixed already by another ticket. On Tue, Sep 14, 2010 at 1:39 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi I have created a ticket to track this https://issues.apache.org/activemq/browse/CAMEL-3121 On Thu, Sep 9, 2010 at 10:07 PM, camel_el

Re: How do YOU handle scheduling?

2010-09-14 Thread Andreas A.
I tried basing the class on both the example in the wiki and the example in the book. It works, except the consumer never stops polling when I use the FTP endpoint. I don't know what you are trying to hint at. If I use receive or receiveNoWait does not make any difference. The FTP endpoint keeps

Re: How do YOU handle scheduling?

2010-09-14 Thread Andreas A.
The same thing happens in another method I use to enrich a message with a single specific file: String ftpsEndpoint = ftps:{{ftp.address}}{{ftp.path.out}}?delete=trueamp;username={{ftp.username}}password={{ftp.password}}fileName=myFileName Exchange str = consumer.receive(ftpsEndpoint); Works

Re: How do YOU handle scheduling?

2010-09-14 Thread Claus Ibsen
You need to stop the consumer because the FTP consumer is schedule based and will poll using a timer. So you can stop the consumer template after usage, which should stop the consumers. You may also be able to set the cache size of the consumer template to 0 (i dont know if that makes it auto

Multiple Consumers on a Queue

2010-09-14 Thread Roland Villemoes
Hi there, We have a FUSE running, and uses a lot of Camel to work on queues etc. Everything works fine, but we have one thing that is quite anoying. Sometimes when we refresh a bundle we suddenly get one more consumer. We can see this with JConsole on the specific Queue. We can do this

Re: Problem with protobuf example / Spring DSL to unmarshal to protobuf

2010-09-14 Thread Willem Jiang
Hi, I just checked the schema of camel-spring, it's bug of Camel since Camel 2.3.0, I just logged a JIRA[1] for it and will commit a fix shortly. [1]https://issues.apache.org/activemq/browse/CAMEL-3122 Willem On 9/14/10 5:08 PM, Marcel Jager wrote: Let me describe a step-by-step guide so

Re: Multiple Consumers on a Queue

2010-09-14 Thread Charles Moulliard
I think that you can connect to activemq through jconsole and kill client connected. Anyway, there is an issue as the JMS Listener is not closed when you stop your bundle. Which version of camel do you use ? On Tue, Sep 14, 2010 at 3:21 PM, Roland Villemoes r...@alpha-solutions.dk wrote: Hi

Re: How do YOU handle scheduling?

2010-09-14 Thread Andreas A.
Hi Ok I have corrected my flawed logic to something that works now (I never reached the consumer.stop() line): public void poll() throws Exception { String ftpsUri = ftp:localhost:1981/inbox?username=camelpassword=camel123move=.done; String

Re: How do YOU handle scheduling?

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 3:45 PM, Andreas A. andreasasm...@gmail.com wrote: Hi Ok I have corrected my flawed logic to something that works now (I never reached the consumer.stop() line):        public void poll() throws Exception {                String ftpsUri =

[Converter] Generics ?

2010-09-14 Thread Olivier.Roger
hello Camel! Is it possible to use generics in annotated converters ? I tried to do this @Converter public T T toPayload(MessageT msg){ return msg.getPayload(); } Which does not work. However, replacing T by a real class definition is working for that type. I would like to

GUI route builder

2010-09-14 Thread Mark Webb
I imagine such a thing exists, but I can't find one. Is there a GUI tool, or possibly IDE plugin that allows you to visually create routes in Camel?

Re: GUI route builder

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 5:29 PM, Mark Webb elihusma...@gmail.com wrote: I imagine such a thing exists, but I can't find one.  Is there a GUI tool, or possibly IDE plugin that allows you to visually create routes in Camel? FuseSource is working on such a tool (current name is Rider). I talked

example to set priority in message?

2010-09-14 Thread Kannan
I tried to set message priory like below mentioned code. It didn’t work for me.I am not sure what changes still needed to be done. route errorHandlerRef=deadLetterErrorHandler from ref=queue1 / transacted ref=required / convertBodyTo type=com.domain.Message / choice

Re: example to set priority in message?

2010-09-14 Thread Claus Ibsen
What JMS broker are you using? Not all support JMSPriority. On Tue, Sep 14, 2010 at 5:36 PM, Kannan ramkannan2...@gmail.com wrote: I tried to set message priory like below mentioned code.  It didn’t work for me.I am not sure what changes still needed to be done. route

Re: example to set priority in message?

2010-09-14 Thread Claus Ibsen
And you most likely need to set preserveMessageQos=true http://camel.apache.org/jms On Tue, Sep 14, 2010 at 5:39 PM, Claus Ibsen claus.ib...@gmail.com wrote: What JMS broker are you using? Not all support JMSPriority. On Tue, Sep 14, 2010 at 5:36 PM, Kannan ramkannan2...@gmail.com wrote: I

Re: example to set priority in message?

2010-09-14 Thread Kannan
I am using ActiveMQ 5.4.0 -- View this message in context: http://camel.465427.n5.nabble.com/example-to-set-priority-in-message-tp2839328p2839339.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: example to set priority in message?

2010-09-14 Thread Claus Ibsen
A bit info here http://activemq.apache.org/per-destination-policies.html The docu will be improved in the near future On Tue, Sep 14, 2010 at 5:52 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Tue, Sep 14, 2010 at 5:43 PM, Kannan ramkannan2...@gmail.com wrote: I am using ActiveMQ 5.4.0

Re: Camel calling commit too early when using split+seda+file endpoint

2010-09-14 Thread Claus Ibsen
Will take a look tomorrow on windows. On Tue, Sep 14, 2010 at 4:58 PM, camel_el eric.ladouc...@cse-cst.gc.ca wrote: Claus,  can you try the following piece of code and check if it works or not?  (it doesn't work on my workstation, using camel 2.5.0) Code from(file:e:/test)  

Re: example to set priority in message?

2010-09-14 Thread Kannan
I used custom headers instead of JMSPriority to resequence message based on custom priority header. where as the consumer is not consuming based on resequence order. route errorHandlerRef=deadLetterErrorHandler from ref=queue1 / resequence

Re: GUI route builder

2010-09-14 Thread Christian Schneider
Hi Claus, wasn´t there a GUI for camel in the fuse portfolio since some time? I remember to have seen such a tool that visualized the EAI patterns or was this only experimental? Personally I do not really miss a visual editor for routes. Rather than that I miss a good text based editor that

Re: Odd route start behavior after context is started

2010-09-14 Thread GSegel
Thanks! I'll use the JMS Topic as a temporary workaround until this is fixed. If this doesn't make it in the 2.5 release, I'll try using the DynamicRouter pattern. -- View this message in context:

Re: GUI route builder

2010-09-14 Thread Charles Moulliard
Hi Christian, The Fuse tool project abandoned was Fuse Integration Designer. In fact it was an Eclipse version embedding SOA and a Bull project called cimeno. Regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel - Karaf - ServiceMix Committer

How to specify route to folder with $ in actual name

2010-09-14 Thread raghu.j
We have requirement setup a route to a shared drive on NAS and the folder name on the NAS has name like # Network Location edi.error.report.pdf = \\mltpnfs13\EDI$\dev1\XE.TO.ST\ edi.error.report.txt = \\mltpnfs13\EDI$\dev1\XE.TO.ST\ The bean is reporting errors since it is trying to pick

Camel-QuickFIX - JMX console to invoke quickfix server operations

2010-09-14 Thread vcheruvu
Hi, I have started Camel-QuickFix component as an acceptor. I have managed to send mock fix messages to the my Camel-Quickfix from FIX Simulator. Now I am trying to turn on JMX support for Camel-QuickFIX component. I went through the QuickFixAcceptor code and have not seen any code that enable

camel aggregator differnce between camel 1.6 and came 2.2

2010-09-14 Thread alexcpn
Hi, I have been using camel aggregator 1.6 in service 3.3.1. Now servicemix is upgraded to 3.3.2 and they have taken camel 2.2 . There were namespace changes and compilation changes to be done; after this now the xpath filter does not seem to be working as expected Here is the code snippet (