RE: InOut over JMS always leads to Timout (ExchangeTimedOutException)

2011-04-01 Thread Mike L .
Claus: Once again, thank you for your reply. Even my real-world application processes the messages much, much faster than 20 seconds. However, I can also replicate the problem using the sample class below (which reads the in message, appends a String to it, and returns the result). So, as I

camel-core-osgi

2011-04-01 Thread Donald Whytock
I was able to build an app with OsgiDefaultCamelContext, but I had to add a ServiceTracker to wait for org.apache.camel.spi.TypeConverterLoader to be registered. Before I did that, my bundles were trying to create SEDA queues before camel-core had finished loading. If camel-core-osgi is going to

Re: Asynchronous Remoting with Futures

2011-04-01 Thread Harald Wellmann
Cool, thanks :-) I'll check this out and give you some feedback. Best regards, Harald Am 31.03.2011 11:57, schrieb davsclaus: This has been implemented in Camel 2.8. You can now use Future in your client interfaces, and the invocation will now be asynchronous. And there is a little example her

Re: Monitor Camel with Nagios

2011-04-01 Thread Michael Prieß
Thanks for your fast response. I know that i can get notifications from camel but i like that nagios call camel and check if the route is running. So i need a attribute which can i easy check without saving timestamps. Regards, Michael

Re: Exchange.MAXIMUM_CACHE_POOL_SIZE is not affecting producers created by recipientList

2011-04-01 Thread Marco Crivellaro
Thank you, I will check it using the example provided. -- View this message in context: http://camel.465427.n5.nabble.com/Exchange-MAXIMUM-CACHE-POOL-SIZE-is-not-affecting-producers-created-by-recipientList-tp4257273p4275924.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Exchange.MAXIMUM_CACHE_POOL_SIZE is not affecting producers created by recipientList

2011-04-01 Thread Claus Ibsen
Works fine. I added an unit test http://svn.apache.org/viewvc?rev=1087773&view=rev On Fri, Mar 25, 2011 at 2:05 PM, Marco Crivellaro wrote: > this affects 2.7.0 release too > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Exchange-MAXIMUM-CACHE-POOL-SIZE-is-not-affecti

Re: Error Handling

2011-04-01 Thread Claus Ibsen
On Fri, Apr 1, 2011 at 4:34 PM, Claus Ibsen wrote: > Just use a direct endpoint in the DLC. > > Then you can use a camel route where you can grab the caused exception > message and do whatever you want with it. > You can also just use a bean endpoint in the DLC. And then in the bean (pojo) have

Re: Monitor Camel with Nagios

2011-04-01 Thread Claus Ibsen
On Fri, Apr 1, 2011 at 4:42 PM, Charles Moulliard wrote: > I think that Michael is looking for a component that they can use to > connect to Camel from Nagios active ... > And that's what camel-nagios can do. It can send ALERTS to nagios from Camel, when something goes wrong, such as an Exchange

Re: Monitor Camel with Nagios

2011-04-01 Thread Charles Moulliard
I think that Michael is looking for a component that they can use to connect to Camel from Nagios active ... On Fri, Apr 1, 2011 at 4:36 PM, Claus Ibsen wrote: > Hi > > There is a camel-nagios component > http://camel.apache.org/nagios > > On Fri, Apr 1, 2011 at 11:16 AM, Michael Prieß > wrote:

Re: Monitor Camel with Nagios

2011-04-01 Thread Claus Ibsen
Hi There is a camel-nagios component http://camel.apache.org/nagios On Fri, Apr 1, 2011 at 11:16 AM, Michael Prieß wrote: > Hi, > > i have the problem that i like to monitor my camel routes with Nagios. > Know anyone a Nagios plugin or something else to monitor camel with > Nagios active easily?

Re: Error Handling

2011-04-01 Thread Claus Ibsen
Just use a direct endpoint in the DLC. Then you can use a camel route where you can grab the caused exception message and do whatever you want with it. On Fri, Apr 1, 2011 at 2:58 PM, John McDonald wrote: > I feel this is an embarrassingly simple question - but I've read around and > cant get

Error Handling

2011-04-01 Thread John McDonald
I feel this is an embarrassingly simple question - but I've read around and cant get things to happen the way I want. I am using the following dead-letter channel as a strategy for handling errors errorHandler(deadLetterChannel("log:RoutingError?level=ERROR")); but my problem is that I

Re: getCurrentCacheSize when using recipientList

2011-04-01 Thread Marco Crivellaro
reason why I am asking is because I've tried to set it to a low value (say 50) and then send several messages to a list of 100 unique recipents (3 recipient for each exchange). I than took a snapshot with jmap and found all 100 producers -- View this message in context: http://camel.465427.n5.na

Re: getCurrentCacheSize when using recipientList

2011-04-01 Thread Ashwin Karpe
Hi, The Recipient List uses the default size for the ProducerCache which is set to Exchange.MAXIMUM_CACHE_POOL_SIZE in the camel context. If no value is set by the user in the camel context for this property, the default cache size is set to 1000. There is no operation on the recepient list to ge

Re: restlet consumer overrides http producer's endpoint

2011-04-01 Thread Paul Lowry
Thanks Willem :) On Fri, 2011-04-01 at 04:07 -0700, Willem Jiang wrote: > Hi Paul, > > Cool. It's good to see you find a way to resolve this issue. > > Just one more note for the InputStreamCache, if you want to read the > body again, you just need to call the method reset() of > InputStreamCache.

Re: restlet consumer overrides http producer's endpoint

2011-04-01 Thread Willem Jiang
Hi Paul, Cool. It's good to see you find a way to resolve this issue. Just one more note for the InputStreamCache, if you want to read the body again, you just need to call the method reset() of InputStreamCache. Willem On 4/1/11 5:49 PM, Paul Lowry wrote: Hi Willem, My route looks like th

Re: destoring sequence of camel context and beans

2011-04-01 Thread ext2
Thanks,Claus: The real problem is spring doesn't understand the camel's xml schema. For example: the camel processor may dependency on a spring bean by the beanId; but the spring know nothing about this; So I am wondering if camel has carefully deal the destroy life cycle? I try to ch

getCurrentCacheSize when using recipientList

2011-04-01 Thread Marco Crivellaro
Is there a way to get the current cache size when using a recipientList? in my route I am consuming messages from an ActiveMQ queue and then sending to recipients using the recipientList. -- View this message in context: http://camel.465427.n5.nabble.com/getCurrentCacheSize-when-using-recipientL

Re: restlet consumer overrides http producer's endpoint

2011-04-01 Thread Paul Lowry
Hi Willem, My route looks like this: http://localhost:9090/client?restletMethod=POST"/> POST text/xml http://localhost:8080/server"/> The processor at the end is defined as follows: public class MyResponseProcessor implements Processor { public void process(Exc

Monitor Camel with Nagios

2011-04-01 Thread Michael Prieß
Hi, i have the problem that i like to monitor my camel routes with Nagios. Know anyone a Nagios plugin or something else to monitor camel with Nagios active easily? JMX provide a few attributes like ExchangesTotal and ExchangesFailed this is nice but not easy to monitor. What i need is a attribut

Re: destoring sequence of camel context and beans

2011-04-01 Thread Claus Ibsen
On Fri, Apr 1, 2011 at 9:20 AM, ext2 wrote: > > > Hi: >        With spring, caml processors may depend on many beans. Could camel > will ensure the camelcontext will be destroy before all the dependencies > while spring context is destroy? > > Check the spring documentation how it allows you to c

Re: restlet consumer overrides http producer's endpoint

2011-04-01 Thread Willem Jiang
Hi Paul, Can you check the response from the outside server is right. I guess the issue of converting the InputStreamCache object to Document could be caused by the server didn't send the reply message rightly. Willem On 4/1/11 4:10 PM, Paul Lowry wrote: Hi Willem, I did what you suggested

Re: restlet consumer overrides http producer's endpoint

2011-04-01 Thread Paul Lowry
Hi Willem, I did what you suggested and got another error... DefaultTypeConverter DEBUG No type converter available to convert from type: org.apache.camel.converter.stream.InputStreamCache to the required type: org.w3c.dom.Document with value org.apache.camel.converter.stream.InputStreamCache@1cb

destoring sequence of camel context and beans

2011-04-01 Thread ext2
Hi: With spring, caml processors may depend on many beans. Could camel will ensure the camelcontext will be destroy before all the dependencies while spring context is destroy?

Re: polling database

2011-04-01 Thread Claus Ibsen
Hi The JPA can also do this http://camel.apache.org/jpa It will delete the record after it has been processed. If you want to customize this you can set the option to false and use @Consumed in the Entity pojo and that method would be invoked. Check the source code of camel-jpa for examples. On