Re: CAMEL and WebDAV ?

2009-12-22 Thread Charles Moulliard
Hi Ali, Have you had a look to JackRabbit project. It proposes a WebDav client/server http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-webdav/README.txt Maybe this could be helpful for you and camel community Have a nice Christmas too. Regards, Charles Moulliard Senior Enterprise

Newbie: CXF _client_ transport

2009-12-22 Thread Alexandros Karypidis
Hello, I have some SOAP messages inside a JMS queue. They are in XML format as SOAP envelopes (i.e. if I had a CXF client endpoint using the JAX-WS frontend, I would use the DispatchSource interface to transmit the messages). Up until now, I was using the camel-http module to deliver the

Re: Newbie: Argument and File streaming

2009-12-22 Thread rdomingo
Thank you, this is exactly what I needed. So I found out I could add an Exchange parameter to my upload method and it would receive the exchange object somehow magically. I then could use this object to get access to the http headers. This completed my provider. And by the info you just

Sharing a CamelContext across several bundles

2009-12-22 Thread TheWinch
Hi everyone, Do you know if it is possible to share a single CamelContext across several bundles ? What I'de like to do is to have several bundles contribute to a same CamelContext. Example in pseudo code: From bundle A: define a context camel:camelContext !-- maybe some routes here --

Re: Sharing a CamelContext across several bundles

2009-12-22 Thread Adrian Trenaman
Might be a bit tricky: maybe you could declare the context in one bundle, register it as an osgi service, and then pull it in to the routes in your other bundles. Another approach I've used in the past is to provide an osgi service for each route, which uses the producerTemplate to kick off

Re: Web Console configuration

2009-12-22 Thread Willem Jiang
Sorry, the default web console port 8080. If you ask for the ActiveMQ broker default port, that is 61616. Willem mistrz wrote: Willem, the page you are mentioning does not have the information I'm asking about. willem.jiang wrote: Hi, You can find the Web Console information here[1]. [1]

Re: Newbie: Argument and File streaming

2009-12-22 Thread Claus Ibsen
On Tue, Dec 22, 2009 at 9:49 AM, rdomingo r...@domingo.nl wrote: Thank you, this is exactly what I needed. So I found out I could add an Exchange parameter to my upload method and it would receive the exchange object somehow magically. I then could use this object to get access to the http

Re: Newbie: Argument and File streaming

2009-12-22 Thread Willem Jiang
Hi, rdomingo wrote: Thank you, this is exactly what I needed. So I found out I could add an Exchange parameter to my upload method and it would receive the exchange object somehow magically. I then could use this object to get access to the http headers. This completed my provider. What kind

Re: Sharing a CamelContext across several bundles

2009-12-22 Thread Willem Jiang
Hi, I don't think you get what you want with your pseudo code. As each camel:camelContext/ will create a separate camel context for you, if the endpoint can't be shared in different camel context, you can't access the endpoint from other camel context. For example seda endpoint can only be

Re: Sharing a CamelContext across several bundles

2009-12-22 Thread James Strachan
2009/12/22 Adrian Trenaman trena...@progress.com: Might be a bit tricky: maybe you could declare the context in one bundle, register it as an osgi service, and then pull it in to the routes in your other bundles. Another approach I've used in the past is to provide an osgi service for each

preMove option creates unwanted .camel directory

2009-12-22 Thread Serge Merzliakov
Hi, Given the following Camel context (OS X 10.6, camel 2.1.0, activemq 5.3) to copy a text file to a JMS queue camel:camelContext id=camel camel:route id=file-to-jms camel:from uri=file:resource/test/runtime?preMove=before/${file:name.noext}-moved.${file:ext}/

Re: Sharing a CamelContext across several bundles

2009-12-22 Thread TheWinch
What's the difference between using an optimized in-vm JMS endpoint and a NMR endpoint, apart from the required infrastructure (having a JMS factory on one side and the NMR bundles on the other) ? Do they use different thread-management strategies, or do they have limitations? I don't want to

Re: preMove option creates unwanted .camel directory

2009-12-22 Thread Claus Ibsen
On Tue, Dec 22, 2009 at 10:53 AM, Serge Merzliakov sm...@epistatic.net wrote: Hi,   Given the following Camel context (OS X 10.6, camel 2.1.0, activemq 5.3) to copy a text file to a JMS queue   camel:camelContext id=camel      camel:route id=file-to-jms         camel:from

Re: Web Console configuration

2009-12-22 Thread James Strachan
2009/12/21 mistrz grok...@edmunds.com: How do I configure Web Console to look at my routes? The web console starts by loading the Spring applicationContext.xml file in WEB-INF. Put whatever routes you want in there (or include them from that spring XML file). Is there a parameter to define

Re: preMove option creates unwanted .camel directory

2009-12-22 Thread Serge Merzliakov
JIRA issue created https://issues.apache.org/activemq/browse/CAMEL-2309 Claus Ibsen-2 wrote: On Tue, Dec 22, 2009 at 10:53 AM, Serge Merzliakov sm...@epistatic.net wrote: Hi,   Given the following Camel context (OS X 10.6, camel 2.1.0, activemq 5.3) to copy a text file to a JMS

Re: Sharing a CamelContext across several bundles

2009-12-22 Thread James Strachan
2009/12/22 TheWinch vincent.girardrey...@thalesgroup.com: What's the difference between using an optimized in-vm JMS endpoint and a NMR endpoint, apart from the required infrastructure (having a JMS factory on one side and the NMR bundles on the other) ? Do they use different

Re: [NEW] Camel 2.2 - Graceful Shutdown - Feedback welcome

2009-12-22 Thread Claus Ibsen
Hi I have improved the graceful shutdown a bit more. It now honors SuspendableService to suspend the consumer at first, this allows for a more gentle shutdown. After all the pending + in flight messages is completed then those consumers is shutdown for real. I will ponder a bit about the,

Re: Newbie: CXF _client_ transport

2009-12-22 Thread Willem Jiang
Hi, As you already get a SOAP message from he JMS queue, it is not easy to just add the WS-RM SOAP header information directly from camel-cxf endpoint or camel-http endpoint. Maybe you can consider to pass the message into a bean method[1], in that method you can call use CXF client to call

Re: Web Console configuration

2009-12-22 Thread mistrz
So I have to define my routes explicitly in Spring? If I define my routes inside configure() the Web Console will not recognize them? James.Strachan wrote: 2009/12/21 mistrz grok...@edmunds.com: How do I configure Web Console to look at my routes? The web console starts by loading

ActiveMQ - Camel as client POST?

2009-12-22 Thread user09772
Hey, A oracle table is enqueuing ids to an activemq. i Have a service as the consumer of the queue, which dequeues ids from the queue and does a database lookup based on that id, and eventually gets a POJO (from hibernate). I need a way to send this pojo to another service. Can Camel do this

Re: Web Console configuration

2009-12-22 Thread Willem Jiang
You can use the Spring to load the Java DSL route configure() like this camelContext id=camel5 xmlns=http://camel.apache.org/schema/spring; routeBuilder ref=myBuilder / /camelContext bean id=myBuilder class=org.apache.camel.spring.example.test1.MyRouteBuilder/ And you can find more

Re: ActiveMQ - Camel as client POST?

2009-12-22 Thread Stephen Gargan
Rest assured you're in the right place, Camel is exactly what you need! By POST i'm going to assume your service is a HTTP server of some kind? By way of a simple example if the service is a simple http server expecting json, it might be as easy as defining a route as follows public class