Re: Multiple Consumers on a Queue

2010-09-14 Thread Claus Ibsen
Hi When you say queues? Do you you JMS queues? And which JMS broker are you using? And the JConsole is that stats from the broker? And when you refresh a bundle, what do you do exactly? And what version of the broker are you using? And have you used other versions before where it worked? etc.

Re: Camel-QuickFIX - JMX console to invoke quickfix server operations

2010-09-14 Thread Bengt Rodehav
QuickFix/J supports JMX but the earlier incarnations of the Camel / QuickFix integration did not. That's one of the reasons I couldn't use the Camel component for QuickFix/J at the time but rolled my own instead. I made some comments about this at the end of the following JIRA: https://issues.apac

Re: Multiple Consumers on a Queue

2010-09-14 Thread Roland Villemoes
Hi Charles, Thanks a lot for your reply. We use camel (camel-core, 2.2.0.fuse-01-00). Do you think an upgrade would make any difference? Roland -- View this message in context: http://camel.465427.n5.nabble.com/Multiple-Consumers-on-a-Queue-tp2839106p2840144.html Sent from the Camel - Users m

Re: GUI route builder

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 8:00 PM, Christian Schneider wrote: >  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 edit

Re: How to specify route to folder with $ in actual name

2010-09-14 Thread Claus Ibsen
Hi Please read this page how to ask for help http://camel.apache.org/support We need more details than you provide here such as - Camel version - OS - Log of the error reported - Snippet of Camel route - etc. On Wed, Sep 15, 2010 at 12:50 AM, raghu.j wrote: > > We have requirement setup a rou

Re: Camel-QuickFIX - JMX console to invoke quickfix server operations

2010-09-14 Thread Claus Ibsen
To my knowledge the camel-quickfix component doesnt offer JMX management. Maybe QuickFix itself has some JMX management, you can tap into. Otherwise we love contributions and you are welcome to work on adding JMX management for camel-quickfix. See for example how you can annotate the endpoint htt

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 ( whi

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 J

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 everythi

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 ~~~

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: http://camel.465427.n5.nabble.com/Odd-route-start-behavior-after-context-is-started-tp2835464p283

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: 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. ${header.msgPriority} $

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 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") >  .split(body().tokenize(",")) >

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 wrote: > On Tue, Sep 14, 2010 at 5:43 PM, Kannan wrote: >> >> I am using ActiveMQ 5.4.0 > > You need to enable priority queues in t

Re: example to set priority in message?

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 5:43 PM, Kannan wrote: > > I am using ActiveMQ 5.4.0 You need to enable priority queues in the config somehow. It just been added into AMQ 5.4.0. > -- > View this message in context: > http://camel.465427.n5.nabble.com/example-to-set-priority-in-message-tp2839328p283933

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
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 wrote: > What JMS broker are you using? Not all support JMSPriority. > > > On Tue, Sep 14, 2010 at 5:36 PM, Kannan wrote: >> >> I tried to set message priory like bel

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 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. > > > >       >       >       >       >         >

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. ${body.entity} is Foo 1 ${body.entity} is Bar 2

Re: GUI route builder

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 5:29 PM, Mark Webb 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 a bit about it in

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: [Converter] Generics ?

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 4:58 PM, Olivier.Roger wrote: > > hello Camel! > > Is it possible to use generics in annotated converters ? > > I tried to do this > >   �...@converter >    public T toPayload(Message msg){ >        return msg.getPayload(); >    } > > Which does not work. However, replacin

[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 toPayload(Message msg){ return msg.getPayload(); } Which does not work. However, replacing by a real class definition is working for that type. I would like to avo

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

2010-09-14 Thread camel_el
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") .split(body().tokenize(",")) .log("Split line ${body}") .process(new Processor() { public void process(Exchange e)

Re: How do YOU handle scheduling?

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 3:45 PM, Andreas A. 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 = > "ftp:localhost:1981/inbox?username=camel&

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=camel&password=camel123&move=.done"; String

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 wrote: > > Hi there, > > We have a

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 yo

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 multiple

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 stop

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=true&username={{ftp.username}}&password={{ftp.password}}&fileName=myFileName" Exchange str = consumer.receive(ftpsEndpoint); Works fi

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 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. wrote: > > Hi > > I'm now trying to just use a Spring trigger and a simple class using > ConsumerTemplate and ProducerTemplate to fetch t

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 in

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 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 jars one by one, eg camel-c

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 Consume

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 got

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: http://camel.465427.n5.nabble.com/Camel-calling-commit-too-early-when-using-split-seda-file-endpoint-tp283089

Re: Camel Exchange Patters

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 2:16 PM, Bengt Rodehav 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) you > need to s

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 j

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 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 > wrote: >> >> Thi

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

2010-09-14 Thread Claus Ibsen
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 wrote: > > This piece of code is a very simplified version of my real code.  My > application is running on an OSGi container and the different stages in my > p

Re: Camel Exchange Patters

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 10:23 AM, Christian Müller 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) >    .retriesExhaustedLo

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 Ja

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)); onException(IllegalArgumentException.class)

Re: Camel Exchange Patters

2010-09-14 Thread Bengt Rodehav
OK, thanks. /Bengt 2010/9/14 Claus Ibsen > On Tue, Sep 14, 2010 at 9:02 AM, Bengt Rodehav 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 ha

Re: Camel Exchange Patters

2010-09-14 Thread Claus Ibsen
On Tue, Sep 14, 2010 at 9:02 AM, Bengt Rodehav 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 original in mes

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