Re: confusion with active mq

2010-11-15 Thread Willem Jiang
Did you put the response back in the route which consumes the message from "activemq:myqueue"? If you just redirect a WebServiceResponse activemq endpoint, the MessageExchangePattern is InOut, you need to make sure set the response back. On 11/16/10 10:33 AM, Blair wrote: ok, lets try this

Re: messages stuck in queues

2010-11-15 Thread Willem Jiang
It looks like more than Camel issue. as there are more than on broker involved. Did you try to send this issue to ActiveMQ user list? On 11/16/10 12:48 PM, Jason Chaffee wrote: Sure have. Here is what I found. One of m brokers (on another machine) was hitting it's store usage limit so it sto

Re: ProducerTemplate with Spring and without

2010-11-15 Thread Willem Jiang
On 11/16/10 5:04 AM, serega wrote: Hi. I've tried examples from here http://camel.apache.org/spring-testing.html Two questions: 1. is how do I specify the producer template in spring? I've tried the following line I got org.apache.camel.NoSuchEndpointException: No endpoint could be found fo

Re: Cannot reply to a message routed more than once by Camel

2010-11-15 Thread Willem Jiang
On 11/16/10 4:49 AM, Krystian wrote: Hi, I am routing messages more than once and because of that, when last consumer gets the message and sends back a response I am getting nothing in the first producer. Sounds a bit complicated but there we go: I've got two routes: from("activemq:entryQueue"

Re: Is that possible to override the properties that are loaded from classpath?

2010-11-15 Thread Willem Jiang
Hi, Camel 2.5.0 already support the encrypted password out of box. Please check out the camel-jasypt[1] component, and you can find more information by go through the unit tests[2] of camel-jasypt. [1]http://camel.apache.org/jasypt.html [2]https://svn.apache.org/repos/asf/camel/trunk/components

RecipientList repeating parent body

2010-11-15 Thread damianharvey
I have a route that uses RecipientList to call "exec" (see http://stackoverflow.com/questions/4103499/apache-camel-exec-with-args) : from("seda:start") .log("*** Started single body : ${body}") .recipientList(simple("exec:GetClaimList${header.osCmdSuffix}?useStderrOnEmptyStdout=true&args=${bo

RE: messages stuck in queues

2010-11-15 Thread Jason Chaffee
Sure have. Here is what I found. One of m brokers (on another machine) was hitting it's store usage limit so it stopped allow producers to send it messages. The two other brokers then had their queues getting backed up because they could not route from their queues to to this one. I fixe

RE: messages stuck in queues

2010-11-15 Thread Taariq Levack
Have you enabled the tracer? http://camel.apache.org/tracer.html It may or may not be useful for this problem to read this sort of output... INFO TraceInterceptor - ID-davsclaus-local-54403-1246038742624-0-1 >>> from(direct:start) --> MyProcessor , Pattern:InOnly, Headers:{from=Claus},

Re: confusion with active mq

2010-11-15 Thread Blair
ok, lets try this again with a MUCH simpler example of whats going on. from("direct:fromWebService").convertBodyTo(String.class).to("activemq:myqueue"); is generating the same problems. I can't seem to go from a web service to activeMQ. I can go directly to other components without

Re: Is that possible to override the properties that are loaded from classpath?

2010-11-15 Thread yli
Just some updates: I have tried to put the decryption logic in my customized class that extends Spring's PropertyOverrideConfigurer, but it didn't work. Here is the bean definition in the context file. classpath:myProperty.propert

Re: Multiple JPA Consumers

2010-11-15 Thread vcheruvu
I have solved your issue by having stored procedure to return the records. This stored procedure use select for update with row lock. When JPA consumer calls the stored procedures it will guarantee to call next set of records rather than the records that have been locked by other JPA consumer. It

messages stuck in queues

2010-11-15 Thread Jason Chaffee
I am seeing issues where my messages are getting stuck in queues. I check the MBeans and it says they are inflight, so the consumer hasn't picked them. In my case, the consumer is a POJO method in the same JVM. Also, it appears retries are not happening. It just gets stuck. Before I attach m

ProducerTemplate with Spring and without

2010-11-15 Thread serega
Hi. I've tried examples from here http://camel.apache.org/spring-testing.html Two questions: 1. is how do I specify the producer template in spring? I've tried the following line I got org.apache.camel.NoSuchEndpointException: No endpoint could be found for: ref:direct:start 2. How to I write

Re: Will Camel play nice with WebSphere/WAS?

2010-11-15 Thread awold
Seems like I should be good to go then. At this time I only expect to use the FTP and File components, with possible interaction with JMS later on. -- View this message in context: http://camel.465427.n5.nabble.com/Will-Camel-play-nice-with-WebSphere-WAS-tp3262550p3266456.html Sent from the Cam

Cannot reply to a message routed more than once by Camel

2010-11-15 Thread Krystian
Hi, I am routing messages more than once and because of that, when last consumer gets the message and sends back a response I am getting nothing in the first producer. Sounds a bit complicated but there we go: I've got two routes: from("activemq:entryQueue").choice() .when().meth

Using a JPA based idempotent repository ~

2010-11-15 Thread awold
I’ve been trying to set up a working example of using a jpa store for idempotent file handling with Hibernate and it’s not quite working. I’m currently using an H2 database. Everything seems to start up fine until it tries to persist the message processed entity (that's #4 below). But I also ha

Re: SMTP Attachment filename

2010-11-15 Thread davsclaus
Yes see the wiki page for the attachments example http://camel.apache.org/mail.html -- View this message in context: http://camel.465427.n5.nabble.com/SMTP-Attachment-filename-tp3265933p3265950.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to get configure concurrent consumers for POJO with @Consume

2010-11-15 Thread Krystian
Sorry Claus... I screwed up by using the same producer all the time, which was waiting for response before making next call ;) My bad -- View this message in context: http://camel.465427.n5.nabble.com/How-to-get-configure-concurrent-consumers-for-POJO-with-Consume-tp3265743p3265831.html Sent f

Re: How to get configure concurrent consumers for POJO with @Consume

2010-11-15 Thread Claus Ibsen
On Mon, Nov 15, 2010 at 4:10 PM, Krystian wrote: > > Hmmm > > It seems not to work - adding concurrentConsumers option. But it's probably > because I am adding it in wrong place. > I don't have any routes configured. > It's a very simple test code, two pojos: > > class PojoProducer { >   �...@prod

Re: How to get configure concurrent consumers for POJO with @Consume

2010-11-15 Thread Krystian
Hmmm It seems not to work - adding concurrentConsumers option. But it's probably because I am adding it in wrong place. I don't have any routes configured. It's a very simple test code, two pojos: class PojoProducer { @Produce(uri="activemq:entryQueue") ProducerTemplate producer pub

Re: how to use a dynamic file name in the xslt component output=file ?

2010-11-15 Thread davsclaus
Try using instead of -- View this message in context: http://camel.465427.n5.nabble.com/how-to-use-a-dynamic-file-name-in-the-xslt-component-output-file-tp3265551p3265789.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to get configure concurrent consumers for POJO with @Consume

2010-11-15 Thread Claus Straube
Hi, No, you need not: http://camel.apache.org/competing-consumers.html In Java DSL something like from("jms:MyQueue?concurrentConsumers=5").bean(SomeBean.class); Claus On 15.11.2010 15:34, Krystian wrote: Hi, I've created a POJO with @Consume and it works great. However I have to be able t

Re: How to get configure concurrent consumers for POJO with @Consume

2010-11-15 Thread Claus Ibsen
On Mon, Nov 15, 2010 at 3:34 PM, Krystian wrote: > > Hi, > > I've created a POJO with @Consume and it works great. However I have to be > able to have more than one consumer listening on the queue. > How can I get more of them? > I can only hope it does not mean I will have to create 20 entries >

How to get configure concurrent consumers for POJO with @Consume

2010-11-15 Thread Krystian
Hi, I've created a POJO with @Consume and it works great. However I have to be able to have more than one consumer listening on the queue. How can I get more of them? I can only hope it does not mean I will have to create 20 entries for 20 concurrent consumers ;) Thanks, Krystian -- View this

Re: ActiveMQ or JMS Component for ActiveMQ?

2010-11-15 Thread Wille Faler
Thanks, get it now. I was looking under the old camel maintained ActiveMQ integration and couldn't find any new versions: http://repo1.maven.org/maven2/org/apache/camel/camel-activemq/1.1.0/ (which has broken downloads etc and is 3 years old)

Re: ActiveMQ or JMS Component for ActiveMQ?

2010-11-15 Thread Claus Ibsen
On Sun, Nov 14, 2010 at 11:35 PM, Wille Faler wrote: > Probably a question that has been asked multiple times, but couldn't find > anything with a quick search on nabble: > > Has the ActiveMQ Component been deprecated and should we now use the JMS > Component for ActiveMQ? > No its not deprecated

Re: Filtering an xml directory

2010-11-15 Thread Claus Ibsen
On Sun, Nov 14, 2010 at 6:45 PM, Tommy Chheng wrote: > Hi Claus, > In Section 13.4.1, the reference to shutting down the application when the > route is done processing is : > Main main = new Main(); > main.setApplicationContextUri("META-INF/spring/camel-context.xml"); > main.enableHangupSupport()