bean -> camel-bindy -> csv problem

2009-12-22 Thread Kevin Jackson
Hi, We have a requirement to generate CSV in the format header line,1,, line,2,, line,3,, footer,3 My reading of the docs (such as they are) suggests that this may be possible with @Link, @OneToMany and @Section I have the following model: @CsvRecord class PurchaseOrder { @Link private

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 SimpleJ

Re: Web Console configuration

2009-12-22 Thread Willem Jiang
You can use the Spring to load the Java DSL route configure() like this http://camel.apache.org/schema/spring";> class="org.apache.camel.spring.example.test1.MyRouteBuilder"/> And you can find more information here[1] [1] http://camel.apache.org/spring.html Willem mistrz wrote: S

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 f

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 : >> >> How do I configure Web Console to look at my routes? > > The web console starts by loading the Spring app

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: [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, shutdo

Re: Sharing a CamelContext across several bundles

2009-12-22 Thread James Strachan
2009/12/22 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

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 > 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 >> >>

Re: Web Console configuration

2009-12-22 Thread James Strachan
2009/12/21 mistrz : > > 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 the broker uri?

Re: Web Console configuration

2009-12-22 Thread James Strachan
2009/12/22 mistrz : > > Which port (server name) is the console connecting to by default? The web console is a WAR; you can drop it into any web container on any port. If you are using maven you can run it via "mvn jetty:run-war" and use the jetty plugin to specify which port you wanna use (by de

Re: "preMove" option creates unwanted .camel directory

2009-12-22 Thread Claus Ibsen
On Tue, Dec 22, 2009 at 10:53 AM, Serge Merzliakov 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 > >   >       >         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 sta

"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 I noticed that the "preMove" attribute puts the file in: ./before/.camel/FILE-moved.TXT instead of what I expected: ./before/FILE-

Re: Sharing a CamelContext across several bundles

2009-12-22 Thread James Strachan
2009/12/22 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 u

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 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 shared with in same ca

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 o

Re: Newbie: Argument and File streaming

2009-12-22 Thread Claus Ibsen
On Tue, Dec 22, 2009 at 9:49 AM, 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. Th

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] ht

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 th

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 >From bundle B: contribute some routes

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 provided

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 Dispatch interface to transmit the messages). Up until now, I was using the "camel-http" module to deliver the messages to

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 A