@Consumed

2010-01-05 Thread vcheruvu
Hi Camel-Users, Can anyone give any hints on using @Consumed annotation. I have written a sample application where 1. Polling JPAConsumer endpoint gets new record 2. Message translation using Bean Integration to invoke the method. 3. Work in progress - I am trying to figure out how to use @Cons

Re: camel-cache: Using Objects for cache

2010-01-05 Thread Claus Ibsen
On Wed, Jan 6, 2010 at 3:44 AM, Willem Jiang wrote: > I think we can support the InputStream and Serializable object at the same > time :) > If the Message body is Serializable, we can skip the InputStream part, if > it's not, we can try to turn it into an InputStream. > > Any thought? > Yeah my

Re: Router logic

2010-01-05 Thread Willem Jiang
Hi, I don't think camel-jpa consumer can update the row of table as you want. So you may break the whole work into two parts. First poll the data from old tables, transforming, verify, write to entity new table. Second, update the old table row state with the new entity. (That could be that you

Re: camel-cache: Using Objects for cache

2010-01-05 Thread Willem Jiang
I think we can support the InputStream and Serializable object at the same time :) If the Message body is Serializable, we can skip the InputStream part, if it's not, we can try to turn it into an InputStream. Any thought? BTW, any kind of contribution is welcome, so please feel free to submit

Re: camel-servlet / Karaf / War / Tomcat

2010-01-05 Thread Willem Jiang
Hi Charles, I think if you can make sure the servlet is deployed before the camel context started, the camel-servlet endpoint can get the access the CamelHttpTransportServlet instance. As the CamelHttpTransportServlet and Karaf are using the same classloader, I think it should be OK for camel-

camel-cache: Using Objects for cache

2010-01-05 Thread tide08
I am using camel 2.1.0 cache component, and I am confused how I can use custom objects with cache? It seems to me that for every object I would want to use, I will have to register TypeConverter for those classes? Is that assumption correct? I think it is due to following code in CacheProducer.

Re: Not sure of syntax or if its possible or an example

2010-01-05 Thread SoaMattH
Just to clarify the body is Body:ALLREADY_PROCESSED SoaMattH wrote: > > > The syntax on the el has me a little stumped? > I put some logging in to se what is in the Exchange and the two points of > interest are: > > BodyType:afullyqualified.ProcessedStatusEnum.ProcessedStatusEnum, > Body:ALL

Re: Not sure of syntax or if its possible or an example

2010-01-05 Thread SoaMattH
The syntax on the el has me a little stumped? I put some logging in to se what is in the Exchange and the two points of interest are: BodyType:afullyqualified.ProcessedStatusEnum.ProcessedStatusEnum, Body:INCIDENT_ALLREADY_PROCESSED I have tried: {$body == 'ALLREADY_PROCESSED'} {$body =

Re: ResolveEndpointFailedException with a file endpoint

2010-01-05 Thread Claus Ibsen
On Tue, Jan 5, 2010 at 6:16 PM, /U wrote: > > Thanks for the help Claus. After removing the trailing &, it now > yields FailedToStartRouteException: apparently the directory is > not valid but the directory (C:\ftp\data\in.txt) is valid: > > Caused by: java.lang.IllegalArgumentException: Only dire

Re: ResolveEndpointFailedException with a file endpoint

2010-01-05 Thread /U
Thanks for the help Claus. After removing the trailing &, it now yields FailedToStartRouteException: apparently the directory is not valid but the directory (C:\ftp\data\in.txt) is valid: Caused by: java.lang.IllegalArgumentException: Only directory is supported. Endpoint must be configured with

camel-servlet / Karaf / War / Tomcat

2010-01-05 Thread Charles Moulliard
Hi, I have packaged my OSGI project including camel context in a WAR file. This WAR file contains Felix Karaf server which is started by the Tomcat Web Application Server though a bundle activator. My camel context uses camel-servlet endpoint to have access to servlet published by Tomcat

Typesafe way to extract Performance statistics from camel routes

2010-01-05 Thread Schneider Christian
Hi all, camel already does a nice job of collecting performance counters for several objects like routes. I would like to access these statistics from inside the same process and alternatively also from another process. Currently the only way I know is using JMX. Of course this is quite a lot of o

Re: Message Groups with other Messaging-Provider

2010-01-05 Thread James Strachan
2010/1/5 waterback : > > Hi Camel-Users, > > i have a question regarding the Messaging Groups feature... i am not really > sure, reading the documentary if Message Groups is an ActiveMQ-Feature or a > Camel-Feature, so that in the latter case i would think you could use > Message Groups with other

Message Groups with other Messaging-Provider

2010-01-05 Thread waterback
Hi Camel-Users, i have a question regarding the Messaging Groups feature... i am not really sure, reading the documentary if Message Groups is an ActiveMQ-Feature or a Camel-Feature, so that in the latter case i would think you could use Message Groups with other Messaging-Provider, i.e. WMQ ...

Re: Spring Integration & Camel Example as Event Notification Framework

2010-01-05 Thread Claus Ibsen
On Mon, Jan 4, 2010 at 10:12 PM, Hendy Irawan wrote: > > Hi, > > I've posted an article on Using Spring Integration as Event Notification > Framework: > http://spring-java-ee.blogspot.com/2010/01/event-notification-framework-with.html > > I'm using the fresh new Spring Integration 2.0 M2 with Spri