Re: Camel archetype 2.1.0 unusable: archetype-catalog.xml and generated project

2009-12-30 Thread Willem Jiang
Hi Hendy, For the issue 1, it is out of our camel guys hands :( Hope you can find some other way to resolved it. Willem Hendy Irawan wrote: Thanks Willem. I hope issue 1 (archetype-catalog.xml issue) will be fixed too.. willem.jiang wrote: For the issue 2, it is already be fixed in Camel 2

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

2009-12-30 Thread SoaMattH
I am just looking at http://camel.apache.org/content-based-router.html so seems like my initial thoughts were close. --Matt SoaMattH wrote: > > > I am using camel 2.0. > I want to call a bean as part of my xml route configuration and > then evaluate where to go with somthing like: > > ..

Re: camel:proxy doesn't work outside camelContext

2009-12-30 Thread Willem Jiang
Hendy Irawan wrote: I'd love to have ability to put camel:proxy outside and set camelContext myself. For simple purposes, I can configure Spring to autowire camelContext. I just checked the code of CamelNamespaceHandler.java[1] if you just want to define the out side of camelContext, we nee

Not sure of syntax or if its possible or an example

2009-12-30 Thread SoaMattH
I am using camel 2.0. I want to call a bean as part of my xml route configuration and then evaluate where to go with somthing like: . are there any examples of how this is done ? --Matt - /* --

Re: File Read using java

2009-12-30 Thread hjoshi
Hey Claus, Thanks for that example. That worked, but when we are calling stop the cosumer stops polling. What should we do to make it poll forever. Basically i want a directory poller which continuously poll a directory read files matching with a regex. Process message payload and write them to a

Re: Camel archetype 2.1.0 unusable: archetype-catalog.xml and generated project

2009-12-30 Thread Hendy Irawan
Thanks Willem. I hope issue 1 (archetype-catalog.xml issue) will be fixed too.. willem.jiang wrote: > > For the issue 2, it is already be fixed in Camel 2.2-SNAPSHOT[1] a week > ago. > > [1] https://issues.apache.org/activemq/browse/CAMEL-2313 > > Willem > > Hendy Irawan wrote: >> Creation

Re: camel:proxy doesn't work outside camelContext

2009-12-30 Thread Hendy Irawan
I'd love to have ability to put camel:proxy outside and set camelContext myself. For simple purposes, I can configure Spring to autowire camelContext. willem.jiang wrote: > > Hi, > Current is not support to be defined out side of the > camelContext. as we set the implicit camelContext into

Re: camel:proxy doesn't work outside camelContext

2009-12-30 Thread Willem Jiang
Hi, Current is not support to be defined out side of the camelContext. as we set the implicit camelContext into the CamelProxyFactoryBean when parsing the proxy element. If you want to use it outside the camelContext , you need to specify the camelContext property yourself. To avoid the user

Re: Silent Failures?

2009-12-30 Thread Willem Jiang
Hi, If you just want to pass the SOAP message to the JMS endpoint, you can try to use the MESSAGE dataformat [1]. camel-cxf endpoint will pass the raw XML message into the next endpoint of your route. [1] http://camel.apache.org/cxf.html#CXF-Thedescriptionsofthedataformats Willem James Car

Re: Camel archetype 2.1.0 unusable: archetype-catalog.xml and generated project

2009-12-30 Thread Willem Jiang
For the issue 2, it is already be fixed in Camel 2.2-SNAPSHOT[1] a week ago. [1] https://issues.apache.org/activemq/browse/CAMEL-2313 Willem Hendy Irawan wrote: Creation of new Camel project with Camel archetype version 2.1.0 is unusable. This feature is very useful to speed up Camel app devel

Re: Processing 5 files at a time - Threads? SEDA + Concurrent Consumers?

2009-12-30 Thread jonathanq
I took a good look at the Route Policy - at first the ThrottlingInflightRoutePolicy class seemed like it could work - as I really only want 5 exchanges to be in-flight at a time. Unfortunately it would never suspend the consumer. I dug deeper into the code and discovered why. The ThrottlingInfl

Re: Silent Failures?

2009-12-30 Thread James Carr
Turns out you were right... I had some configuration issues. After solving them it works like a charm with one small caveet. My goal was to take a SOAP message being sent to a CXF HTTP endpoint and simply forward the whole SOAP message to a topic that would have CXF endpoints attatched to consume t

camel:proxy doesn't work outside camelContext

2009-12-30 Thread Hendy Irawan
The following works: http://camel.apache.org/schema/spring";> com.soluvas.samples.eventfx.camel but this doesn't work: and I have to do t

Re: Silent Failures?

2009-12-30 Thread James Carr
Hmmm... I'll see if JmsTemplate will send something to the topic... if it does, then I'll post the additional info.. otherwise I just didn't set it up right :) On Wed, Dec 30, 2009 at 11:18 AM, Claus Ibsen wrote: > On Wed, Dec 30, 2009 at 6:11 PM, James Carr wrote: >> Hi, >> >> I've been trying

Re: http vs Redelivery

2009-12-30 Thread Claus Ibsen
On Wed, Dec 30, 2009 at 2:09 PM, rdomingo wrote: > > Hello, > > I'm trying to find out how I can trigger redelivery of http message. So when > a message is available in jms queue it should be send over http to my http > service. But when it is not running currently an error response is returned. >

Re: File Read using java

2009-12-30 Thread Claus Ibsen
Hi You need to start the consumer first consumer.start() before calling the receive() and stop() it also after use. See this unit test http://svn.apache.org/viewvc?rev=894683&view=rev On Wed, Dec 30, 2009 at 2:30 PM, hjoshi wrote: > > Still nothing is being read. > > Claus Ibsen-2 wrote: >

Re: Silent Failures?

2009-12-30 Thread Claus Ibsen
On Wed, Dec 30, 2009 at 6:11 PM, James Carr wrote: > Hi, > > I've been trying to simply take a message sent to a cxf endpoint and > reroute it to a JMS topic. First I tried re-routing the message to a > bean and it worked fine, so I set up a jms component and tried to use > it... however when the

Camel archetype 2.1.0 unusable: archetype-catalog.xml and generated project

2009-12-30 Thread Hendy Irawan
Creation of new Camel project with Camel archetype version 2.1.0 is unusable. This feature is very useful to speed up Camel app development (and quick testing of ideas). Due to two separate reasons: 1. There's no archetype-catalog.xml on both: http://repo1.maven.org/maven2/archetype-catalog.xml

Silent Failures?

2009-12-30 Thread James Carr
Hi, I've been trying to simply take a message sent to a cxf endpoint and reroute it to a JMS topic. First I tried re-routing the message to a bean and it worked fine, so I set up a jms component and tried to use it... however when the message is sent to the CXF Http endpoint, nothing happens... I

Re: How to InOut with JMs

2009-12-30 Thread Claus Ibsen
Try looking at the wireTap EIP pattern to fork the message. On Wed, Dec 30, 2009 at 4:15 PM, yaog wrote: > > I guess I wasn't clear. > > I want to fork the route. I want the first part to reply, but after sending > a message to the queue I am not expecting a response. > > I tries defining 2 rout

Re: How to InOut with JMs

2009-12-30 Thread yaog
I guess I wasn't clear. I want to fork the route. I want the first part to reply, but after sending a message to the queue I am not expecting a response. I tries defining 2 routes but it didn't help. -- View this message in context: http://old.nabble.com/How-to-InOut-with-JMs-tp26965017p269684

Re: File Read using java

2009-12-30 Thread hjoshi
Still nothing is being read. Claus Ibsen-2 wrote: > > On Wed, Dec 30, 2009 at 2:13 PM, hjoshi > wrote: >> >> Hi Claus, >> Thanks for reply. >> I have written some code >> public static void main(String[] args) { >>                CamelContext context = new DefaultCamelContext(); >>        

Re: File Read using java

2009-12-30 Thread Claus Ibsen
On Wed, Dec 30, 2009 at 2:13 PM, hjoshi wrote: > > Hi Claus, > Thanks for reply. > I have written some code > public static void main(String[] args) { >                CamelContext context = new DefaultCamelContext(); >                try{ >                        Endpoint endpoint = > context.get

Re: File Read using java

2009-12-30 Thread hjoshi
Hi Claus, Thanks for reply. I have written some code public static void main(String[] args) { CamelContext context = new DefaultCamelContext(); try{ Endpoint endpoint = context.getEndpoint("file:/opt/swift/in?fileName=MT941.fin&delay=2000");

http vs Redelivery

2009-12-30 Thread rdomingo
Hello, I'm trying to find out how I can trigger redelivery of http message. So when a message is available in jms queue it should be send over http to my http service. But when it is not running currently an error response is returned. But I would like camel to retry my http service for some time

Re: In a route, how can I process a batch of messages to send a single output?

2009-12-30 Thread alex12345
willem.jiang wrote: > > Can you try the lastest Camel 2.2-SNAPSHOT ? As Claus fixed this bug[1] > two weeks ago. > It worked. Thanks! -- View this message in context: http://old.nabble.com/In-a-route%2C-how-can-I-process-a-batch-of-messages-to-send-a-single-output--tp26959490p26967278.html

Re: File Read using java

2009-12-30 Thread Claus Ibsen
On Wed, Dec 30, 2009 at 12:09 PM, hjoshi wrote: > > Hi all, > I am a newbie to camel using for first time. > I want to poll a directory for some files. > I want to read and Process those files and then write them to a different > location. > Can someone provide me an example to achieve this in jav

Re: Processing 5 files at a time - Threads? SEDA + Concurrent Consumers?

2009-12-30 Thread Claus Ibsen
Hi See also route policy to throttle the file consumer to a pace of 5 concurrent files http://camel.apache.org/routepolicy.html On Wed, Dec 30, 2009 at 11:51 AM, gmagniez wrote: > > > jonathanq wrote: >> >> I am trying to write a process that will use a file endpoint (camel 2.1.0) >> to read f

Re: File Read using java

2009-12-30 Thread Willem Jiang
Hi, If you are using Camel 2.x , you can take a look at this page[1] If you are using Camel 1.x , you can see this page[2] [1]http://camel.apache.org/file2.html [2]http://camel.apache.org/file.html Willem hjoshi wrote: Hi all, I am a newbie to camel using for first time. I want to poll a dire

File Read using java

2009-12-30 Thread hjoshi
Hi all, I am a newbie to camel using for first time. I want to poll a directory for some files. I want to read and Process those files and then write them to a different location. Can someone provide me an example to achieve this in java class. I dont want to use xml configuration -- View this me

Re: Processing 5 files at a time - Threads? SEDA + Concurrent Consumers?

2009-12-30 Thread gmagniez
jonathanq wrote: > > I am trying to write a process that will use a file endpoint (camel 2.1.0) > to read from a directory. > > I need the process to read a file from the directory and then do some > processing on the contents (namely hitting a REST service for each record > in the file). We h

Re: How to InOut with JMs

2009-12-30 Thread Ryadh Amar
By guessing, I suppose that you're going to use the camelTemplate to send stuff to "direct:start", It is enough to do something like: ProducerTemplate camelTemplate = (ProducerTemplate)context.getBean("template"); Object returnValue = camelTemplate.requestBody("dire

Newbie: need little help http->http bridge->jms->http bridge->http

2009-12-30 Thread rdomingo
Hello, I have a multibus scenario (POC) to learn about a number of features related to using camel. In the current scenario I like a consumer to upload a file (over http) to my first bus (my local camel instance), this bus proxies the request to a second bus (my global routing bus). This second

How to InOut with JMs

2009-12-30 Thread yaog
Hi, I have a route like this: http://camel.apache.org/schema/spring";>