Re: camel-hazelcast component

2011-02-17 Thread Claus Straube
I've forgotten the most important part. Here you can find it: https://github.com/catify/camel-hazelcast Sorry ;) On 18.02.2011 08:55, Claus Straube wrote: Hi all, we've developed a camel component for the Hazelcast data grid (http://www.hazelcast.com ). Hazelcast i

camel-hazelcast component

2011-02-17 Thread Claus Straube
Hi all, we've developed a camel component for the Hazelcast data grid (http://www.hazelcast.com ). Hazelcast is a easy to use, but powerful data grid solution, entirely written in Java. We've implemented a producer/consumer for the distributed map/multimap, a produc

Re: Camel Osgi JMS

2011-02-17 Thread Claus Ibsen
You can use the # notation in the endpoint uri to lookup any bean from the registry with the given id. ?connectionFactory=#myFactory But it must have a name to lookup? It cannot lookup by type and just pick the first one? We could of course add such a feature, and have a convention if there is e

Re: Camel and Tomcat

2011-02-17 Thread Claus Ibsen
On Fri, Feb 18, 2011 at 7:45 AM, Richard Kettelerij wrote: > > Hi Claus, I 'll add it to the wiki. > > Do note that SpringSource recommends using ContextLoaderListener over > ContextLoaderServlet for modern (> Servlet 2.3 containers) since its > generally a more elegant way of loading the applicat

Re: Camel and Tomcat

2011-02-17 Thread Richard Kettelerij
Hi Claus, I 'll add it to the wiki. Do note that SpringSource recommends using ContextLoaderListener over ContextLoaderServlet for modern (> Servlet 2.3 containers) since its generally a more elegant way of loading the application contact. However I have found no problem using ContextLoaderServl

Re: DefaultShutdownStrategy can't shutdown DefaultErrorHandler's retries?

2011-02-17 Thread Claus Ibsen
On Fri, Feb 18, 2011 at 1:14 AM, rosmons wrote: > > Hi Claus, > I've been trying to figure out if the TransactionErrorHandler actually > persists the message in between retries. > I can see from your post here that it's probably not implemented yet. I have > used the hawtdb as repo for Aggregation

Re: Camel and Tomcat

2011-02-17 Thread Claus Ibsen
Hi Richard On Fri, Feb 18, 2011 at 12:24 AM, Richard Kettelerij wrote: > > As an alternative to the aforementioned approach can also use Spring's > ContextLoaderServlet instead of ContextLoaderListener. In that case you'll > need to start ContextLoaderServlet after CamelHttpTransportServlet e.g:

Re: DefaultShutdownStrategy can't shutdown DefaultErrorHandler's retries?

2011-02-17 Thread rosmons
Hi Claus, I've been trying to figure out if the TransactionErrorHandler actually persists the message in between retries. I can see from your post here that it's probably not implemented yet. I have used the hawtdb as repo for Aggregation, but was wondering if you could point me in the right way t

Re: Sync Issue in Initiating 2 routes simultaneously

2011-02-17 Thread VT
I tried the depends-on option but since the 2 contexts are independent of each other, I get following error at runtime for context-1: ***No bean named 'Context-2 is defined Do I have to define a bean which refers to the camelContext-2? -- View this message in context: http://camel.465427.n5.na

Re: Camel and Tomcat

2011-02-17 Thread Richard Kettelerij
As an alternative to the aforementioned approach can also use Spring's ContextLoaderServlet instead of ContextLoaderListener. In that case you'll need to start ContextLoaderServlet after CamelHttpTransportServlet e.g: CamelServlet org.apache.camel.component.servl

RE: Camel Osgi JMS

2011-02-17 Thread Roshan A. Punnoose
In our project we are trying to use the camel dsl to help non programmers write simple groovy route builders that will be used to build routes and do processing. If it was just for me, it would be really easy to set up the JmsComponent, but I'd like these non-programmers to just type "jms:topic

AW: Camel Osgi JMS

2011-02-17 Thread Christian Schneider
Hi Roshan, may I ask what you want to achieve by setting the connection factory from the url? If you only want to use several connection factories at the same time you can simply create several jms components with different names. Christian -Ursprüngliche Nachricht- Von: Roshan A. Punn

RE: Camel Osgi JMS

2011-02-17 Thread Roshan A. Punnoose
Yeah, that's what I expected. Thanks! I think that last solution would work in the short term, but I also created a component that added a "connectionFactoryName" parameter, so now my string looks like: "myjms:topic:heartBeatWithCounts?connectionFactoryName=javax.jms.ConnectionFactory" Where it

RE: Camel Osgi JMS

2011-02-17 Thread Roshan A. Punnoose
Maybe I am doing it wrong, but I tried this and it errors back saying that I can't set a String on a ConnectionFactory. Roshan From: Ashwin Karpe [aka...@fusesource.com] Sent: Thursday, February 17, 2011 4:58 PM To: users@camel.apache.org Subject: Re: Cam

AW: Camel Osgi JMS

2011-02-17 Thread Christian Schneider
Hi Roshan, I don´t think you can reference the connectionfactory from the endpoint url. I may be wrong though. What you can easily do is set up a jms component in spring and reference the connectionfactory through a service reference. Perhaps this is already what you need:

Re: Camel Osgi JMS

2011-02-17 Thread Ashwin Karpe
Hi, I believe you should be able to do this right now... There is already a connectionFactory option for the Camel JMS URI... http://camel.apache.org/jms.html http://camel.apache.org/jms.html Cheers, Ashwin... - - Ashwin Karpe Apac

Re: Sync Issue in Initiating 2 routes simultaneously

2011-02-17 Thread Ashwin Karpe
Hi, Can you please set a "depends-on" attribute on the first camel context in which you pass the Camel Context id of the second. This will ensure that the first Camel Context does not start before the second Camel Context. Cheers, Ashwin... -

Camel Osgi JMS

2011-02-17 Thread Roshan A. Punnoose
Usually we use spring to set up the camel jms component before using, but I wanted to know if it is possible to reference any bean in the camel registry by name for the connectionFactory. For example, let's say that I have the jms connection factory exposed as an osgi service in my container. T

Re: RMI Component

2011-02-17 Thread Claus Ibsen
Hi I have created a ticket to look into this https://issues.apache.org/jira/browse/CAMEL-3680 On Thu, Feb 17, 2011 at 1:56 PM, Claus Ibsen wrote: > Hi > > Try without the spring RMI exporter. It seems like Spring injects a Proxy. > > > > On Thu, Feb 17, 2011 at 10:15 AM, bdusauso wrote: >> >>

RE: Camel Osgi Component

2011-02-17 Thread Roshan A. Punnoose
That is a great solution actually, thank you! I'll try it out. Roshan From: Christian Schneider [ch...@die-schneider.net] Sent: Thursday, February 17, 2011 1:07 AM To: users@camel.apache.org Subject: Re: Camel Osgi Component Hi Roshan, I may have a soluti

Re: RMI Component

2011-02-17 Thread Claus Ibsen
Hi Try without the spring RMI exporter. It seems like Spring injects a Proxy. On Thu, Feb 17, 2011 at 10:15 AM, bdusauso wrote: > > Hi, > > I'm trying to invoke a RMI service with Camel. > This RMI service is exported with Spring RmiServiceExporter. > > But I have a type conversion problem wit

Re: Camel Tracer impedes performance.

2011-02-17 Thread Jim Talbut
On 17/02/2011 11:58, Naira & Kobo wrote: I am curious, is it the TraceEventHandler that impedes the performance or the TraceInceptor or the InterceptStrategy? Well it's definitely not the TraceEventHandler, because unless you provide one, there isn't one. Beyond saying that if you want a defin

AW: Camel and Tomcat

2011-02-17 Thread Christian Schneider
I guess the problem with your setup may be that the spring context comes up before the camelservlet. So it is not available when the servlet endpoint is started. The solution is to start the applicationcontext from the camelservlet. If you do it like Willem described it should work contextCon

AW: Camel Tracer impedes performance.

2011-02-17 Thread Christian Schneider
Perhaps you should use a seda queue The direct endpoint you used is always synchronous so this may cause the performance hit. You may also want to use a jms topic for tracing. This way you can even combine the traces of several servers. You can then attach one listener

Re: Camel Tracer impedes performance.

2011-02-17 Thread Naira & Kobo
I am curious, is it the TraceEventHandler that impedes the performance or the TraceInceptor or the InterceptStrategy? If the differences in the usage of these classes are clear to you, can you please explain to me how they differ? I assume, when there is a new exchange on a node, the TraceInte

Re: Camel Tracer impedes performance.

2011-02-17 Thread Jim Talbut
On 17/02/2011 11:21, Naira & Kobo wrote: Thanks a lot for your response. Whats is the name of the default trace event handler used by camel tracer? I 'd like to take a look at that class and see how I can optimize it. I will actually prefer if messages intercepted and logged in a separate thr

Re: Camel Tracer impedes performance.

2011-02-17 Thread Naira & Kobo
Thanks a lot for your response. Whats is the name of the default trace event handler used by camel tracer? I 'd like to take a look at that class and see how I can optimize it. I will actually prefer if messages intercepted and logged in a separate thread form the main exchange thread. This way

Re: Camel Tracer impedes performance.

2011-02-17 Thread Jim Talbut
On 17/02/2011 10:01, Naira & Kobo wrote: Hi, I noticed that extending the camel tracer to log exchange data into the database impedes performance on the ESB. I followed the example in the camel samples, where I defined a direct endpoint http://ca

Camel Tracer impedes performance.

2011-02-17 Thread Naira & Kobo
Hi, I noticed that extending the camel tracer to log exchange data into the database impedes performance on the ESB. I followed the example in the camel samples, where I defined a direct endpoint http://camel.apache.org/schema/spring"; trace="true">

Re: How to set camel-cxf encoding

2011-02-17 Thread Willem Jiang
Hi Can you move the before the . As you are using the dataFormat MESSAGE, you should prepare the stream with a right encoding. On 2/17/11 4:41 PM, Bill wrote: Hello, thanks your reply. I modify my code: Charset

RMI Component

2011-02-17 Thread bdusauso
Hi, I'm trying to invoke a RMI service with Camel. This RMI service is exported with Spring RmiServiceExporter. But I have a type conversion problem with Camel. It says : Caused by: org.apache.camel.InvalidPayloadException: No body available of type: org.springframework.remoting.support.RemoteI

Re: tutorial-osgi-camel-part1 on virgo (dm Server)

2011-02-17 Thread JacobS
Thanks Claus it works now. -- View this message in context: http://camel.465427.n5.nabble.com/tutorial-osgi-camel-part1-on-virgo-dm-Server-tp3383469p3389110.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to set camel-cxf encoding

2011-02-17 Thread Bill
Hello, thanks your reply. I modify my code: CharsetProcessor.java : public void process(Exchange exchange) throws Exception { exchange.setProperty(Exchange.CHARSET_NAME, "utf-8"

Re: How to set camel-cxf encoding

2011-02-17 Thread Willem Jiang
Hi, You can set the encoding by set the Exchange Property like this exchange.getProperty(Exchange.CHARSET_NAME, "UTF-8"); Willem On 2/17/11 2:03 PM, Bill wrote: Hi,all There is a webservice,when I invoked by cxf client , It's normal. but I invoked with camel, the webservice received some info

Re: [OSGi] JmsComponent config for WebSphere Queue ?

2011-02-17 Thread Olivier.Roger
I realize I might not have been clear in my first post. The blog entry is connecting the route to a WebSphere MQ endpoint by creating a Connection Factory using spring. I would like to connect the Application Server service integration bus (SIB) with a Connection Factory retrieved using JNDI, tha