Re: Issue with recipientList and cxf in 2.8.0?

2011-10-12 Thread sanjai
Thanks Achim. I'm glad I'm not the only once seeing this issue. I'm not sure I understand how I would use RequestConext to send to multiple cxf endpoints. Do you have an example on how to do this? Thanks Sanjai -- View this message in context: http://camel.465427.n5.nabble.com/Issue-with-re

Re: Newbie question

2011-10-12 Thread Mirko Caserta
You don't need to code a servlet yourself, you just declare to consume from the camel servlet like this: After the from you do whatever processing you need, keeping in mind that camel maps the http request headers to the exchange.in.headers and the http body to exchange.in.body Read the came

Re: Issue with recipientList and cxf in 2.8.0?

2011-10-12 Thread Achim Nierbeck
Hi yep I have seen this issue too. To me it looks like the cache for the endpoints gets messed up somehow. At least that's the furthest point I got down to. But my workaround has been to define a "RequestContext" header with a map containing org.apache.cxf.message.Message.ENDPOINT_ADDRESS and the

Newbie question

2011-10-12 Thread AnitaJ
Hi everyone, I am working with a camel example application. I have a web.xml file with a mapping for CamelHttpTransportServlet. When I attached the source code to the camelservlet, I see that the application exits with a 404 because it could not find a HTTPConsumer. Do I need to create a HTTPConsu

Issue with recipientList and cxf in 2.8.0?

2011-10-12 Thread sanjai
Hello all, I have a route that had been working fine in our production system. The route is fairly basic. It simply reads messages of a JMS queue, does some processing on the message and then sends the message to multiple cxf endpoints. The sending to multiple endpoints is done by using recipie

Re: How do I avoid consuming zero byte files from a remote FTP server?

2011-10-12 Thread bbuzzard
Thanks. I tried it and it almost worked. The problem with the filter is that the empty file on the remote FTP server is deleted. -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-avoid-consuming-zero-byte-files-from-a-remote-FTP-server-tp4896550p4896647.html Sent fro

Re: How do I avoid consuming zero byte files from a remote FTP server?

2011-10-12 Thread David Karlsen
You could try to put in a filter to ignore 0-size files from the FTP-endpoint. Den 12. okt. 2011 20:50 skrev "bbuzzard" følgende: > I would like to avoid pulling empty (0 byte) files from a remote FTP > server, > but I'm running into problems. > > I'm connecting to a remote FTP Server. I have re

How do I avoid consuming zero byte files from a remote FTP server?

2011-10-12 Thread bbuzzard
I would like to avoid pulling empty (0 byte) files from a remote FTP server, but I'm running into problems. I'm connecting to a remote FTP Server. I have recursive=true and I am using the AntPathFilter to select specific files in specific folders for downloading to my local directory. Once and

Re: Convert jms message from textmessage to bytemessage

2011-10-12 Thread Preben.Asmussen
Created https://issues.apache.org/jira/browse/CAMEL-4540 /preben -- View this message in context: http://camel.465427.n5.nabble.com/Convert-jms-message-from-textmessage-to-bytemessage-tp4895362p4896423.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Convert jms message from textmessage to bytemessage

2011-10-12 Thread David Karlsen
Hmm, the foo header isn't related - so this must be a bug - can you register it in JIRA? 2011/10/12 Preben.Asmussen : > Forgot to mention that I'm using Camel 2.8.1 > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Convert-jms-message-from-textmessage-to-bytemessage-tp489

Camel Restlet in webapp with OSGi/Blueprint

2011-10-12 Thread Janko Heilgeist
Hi, I am trying to set up a scenario similar to "Using the Restlet servlet within a webapp" (http://camel.apache.org/restlet.html). However, my WAR is deployed inside an Apache Karaf container using Aries/Blueprint instead of Spring/Spring DM. How can I provide the Blueprint-defined Restlet-Compo

Embedded Web Console in Tomcat

2011-10-12 Thread cexbrayat
Hi, To make things short, I can't get the console neither in Jetty nor Tomcat. For those who want to help, here is the full situation I've been using the web console component directly in my webapp (using war overlay) with Jetty : it's *working great when i run it with "mvn jetty:run"*. I'

Re: Best practices to communicate between Camel Contexts in different OSGi bundles

2011-10-12 Thread Christian Müller
Thanks for the explanation. I remember, using persistent messaging was the reason to use activemq. Christian

Re: Convert jms message from textmessage to bytemessage

2011-10-12 Thread Preben.Asmussen
Forgot to mention that I'm using Camel 2.8.1 -- View this message in context: http://camel.465427.n5.nabble.com/Convert-jms-message-from-textmessage-to-bytemessage-tp4895362p4895367.html Sent from the Camel - Users mailing list archive at Nabble.com.

Convert jms message from textmessage to bytemessage

2011-10-12 Thread Preben.Asmussen
Hi Think I found a issue while working with jms. I have a simple route that at the moment takes a textmessage and sends it to a external system as a ByteMessage : The hubQueue and playQueue are 2 Oracle AQ queues on separate systems, but should be comparable

Re: Iterate over multivalued header

2011-10-12 Thread David Karlsen
Can I control where camel will put the splitted value - or will it always be the body? 2011/10/11 Claus Ibsen : > On Mon, Oct 10, 2011 at 10:26 PM, David Karlsen > wrote: >> Hi. >> >> I'd like to iterate over a header containing a list and doing a "to >> uri" for each value. >> Is this possible?

Re: Resolving beans in multi Camel Context use cases

2011-10-12 Thread Bernd Fischer
Hi Willem, thanks for your reply. > I just checked the code on the trunk and can't exactly the change that you > made, can > provide a diff file for it ? Unfortunately I'm using sources from distribution via maven and can't access Apache SVN repo's because of restricted network, sorry. Therefor

Re: Best practices to communicate between Camel Contexts in different OSGi bundles

2011-10-12 Thread Charles Moulliard
Another advantage of NMR is that you can easily create camel routes unit test without OSGI container (more info here camel.apache.org/nmr.html) On Wed, Oct 12, 2011 at 11:08 AM, Charles Moulliard wrote: > NMR is an in memory bus that you can use to send sync/async objects > without the cost of th

Re: Best practices to communicate between Camel Contexts in different OSGi bundles

2011-10-12 Thread Charles Moulliard
NMR is an in memory bus that you can use to send sync/async objects without the cost of the serialization. Endpoints (producers/consumers) are registered in the bus when Camel routes are started and are available for all the bundles ! Thread pools can be configured. NMR is not persistent compare t

Re: Best practices to communicate between Camel Contexts in different OSGi bundles

2011-10-12 Thread Guillaume Nodet
Avoiding serialization is the most important one I think. On Wed, Oct 12, 2011 at 10:01, Christian Müller wrote: > We use the camel jms/activemq component for this. > > @Charles: Could you please share the advantges of camel nmr over camel > jms/activemq with us!? > > Best, > Christian > > On We

Re: Thread pool for components in Camel

2011-10-12 Thread Claus Ibsen
On Mon, Oct 10, 2011 at 10:36 AM, diwakar wrote: > Hi, > >           >> The file is a single threaded scheduled consumer >           Thanks for the reply. This is one difference compared to > servicemix JBI. In servicemix multiple threads can poll the input folder. >           If we use multiple t

Re: NotifyBuilder condition fails to match on an out/activemq endpoint

2011-10-12 Thread Claus Ibsen
Hi Yeah you may have a point. Can you create a JIRA ticket? Will look into this when I get back to my office. I am traveling this week. On Mon, Oct 10, 2011 at 11:02 AM, jason.parr wrote: > Without any further changes the new wereSentTo added for 2.9 seems of very > limited use as previously pos

Re: Best practices to communicate between Camel Contexts in different OSGi bundles

2011-10-12 Thread Christian Müller
We use the camel jms/activemq component for this. @Charles: Could you please share the advantges of camel nmr over camel jms/activemq with us!? Best, Christian On Wed, Oct 12, 2011 at 8:36 AM, Charles Moulliard wrote: > Hi, > > On Karaf/Servicemix, the recommended approach to communicate betwee

Re: Compile Exception: 2.8.1

2011-10-12 Thread Christian Müller
Hello Babak! Let me know, if you plan an event in Switzerland. I will speak tomorrow in Paris and may next year in Frankfurt (if I get an invitation ;-) ). And traveling to Zurich is easy for me... Best, Christian On Sun, Oct 9, 2011 at 10:41 AM, bvahdat wrote: > I would say Zurich would be t