Re: how can i modify variable bases xpath in configure() method

2011-04-20 Thread ben.oday
use http://camel.apache.org/recipient-list.html something like this should allow you to dynamically determine the next endpoint based on the map and xpath result... replace you inline Processor and to(rcvQSRmttr) with this recipientList().method(MessageRouter.class, "routeTo") ... public class

Re: Camel-Cxf:unable to find wsdl

2011-04-20 Thread vcheruvu
Ah !! I overlooked the file extension differences.. sorry to waste your time.. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Cxf-unable-to-find-wsdl-tp4315065p4329756.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-Cxf:unable to find wsdl

2011-04-20 Thread Willem Jiang
Hi, If you take a look at the exception carefully, you will find the missing part is *bclearapi-1.6.xsd* instead of *bclearapi-1.6.wsdl*. Willem On 4/21/11 7:27 AM, vcheruvu wrote: Hi Willem and Claus, The wsdl file is located in cxf\src\main\resources\META-INF\wsdl\ and named it bclearapi-

Re: Camel-Cxf:unable to find wsdl

2011-04-20 Thread vcheruvu
Hi Willem and Claus, The wsdl file is located in cxf\src\main\resources\META-INF\wsdl\ and named it bclearapi-1.6.wsdl. In cxf endpoint I have specified the wsdlURL path to "classpath:META-INF/wsdl/bclearapi-1.6.wsdl" . However when running the test class, CXF is looking for ./bclearapi-1.6.

grant to a rmi remote connection

2011-04-20 Thread Filippo Balicchia
Hello, I need connect to a remote rmi server and I'd like to know if possible to tell at camelcontext to permit to make a lookup to a remote rmi service. By default seems that camel allow to lookup only from the same localhost, Correct me if I'm wrong. Could tell me please how I can to camel to

Re: Mina component: Serial port support?

2011-04-20 Thread Christian Müller
Johannes, maybe you can have a quick look on my patch which I attached to the issue. It upgrades to Mina 2.0.2, but some unit test fails with a strange behavior. Because I'm not a Mina expert, I stuck on this issue... Christian On Wed, Apr 20, 2011 at 1:05 PM, Klug, Johannes wrote: > Cheers Cla

Camel xmpp roster management

2011-04-20 Thread Brian Troutwine
Hello, all. Is it possible to do roster management with camel-xmpp? I could find no mention of the subject here: http://camel.apache.org/xmpp.html Thanks, -- Brian L. Troutwine

InOut pattern

2011-04-20 Thread dead_devil_66
Greetings. Im making an example program that uses the inout pattern but im having some issues. I have this code for the router: http://pastie.org/1816034 And this one for the java client that sends messages and expects replies: http://pastie.org/1816035 So...when i test that code, i manage to g

Re: ROUTE_STOP and mail

2011-04-20 Thread Donald Whytock
But if I do filter on the pipeline it'll determine whether the entire pipeline is or isn't performed, right? So to break out of the pipeline I'd have to put the filter on each pipelined item, such as from X filter when Y to A filter when Y to B end // filter to C // do something after f

can't get freemarker component to work with XML content.

2011-04-20 Thread Sorin Silaghi
Hi all, I'm using camel inside servicemix to process some files and I can't get the freemarker component to work propperly with XML content. Here's what I did: I created a processor to convert the body of the exchange message from String to NodeModel. If I then use freemarker right

Re: Camel release 2.8

2011-04-20 Thread bvahdat
Claus, please see my reply to your comment @ https://issues.apache.org/jira/browse/CAMEL-3799 Regards, Babak -- View this message in context: http://camel.465427.n5.nabble.com/Camel-release-2-8-tp4305340p4326992.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Testing Spring DSL camel routes with CamelSpringTestSupport, osgix namespace problem

2011-04-20 Thread Willem Jiang
"http://www.springframework.org/schema/osgi-compendium"; namespace handler is a part of Spring-DM. You need to deploy the spring application into OSGi platform. If you just want to test spring DSL without OSGi. you may consider to put the into META-INF/spring/osgi-context.xml and import act

Re: Camel-Cxf:unable to find wsdl

2011-04-20 Thread Willem Jiang
Hi, I just check the zip file that you uploaded, there is no ./bclearpapi-1.6.xsd schema file. Please make sure schema file can be accessed by CXF. Willem On 4/20/11 2:52 PM, vcheruvu wrote: HI, I have created a project that simply consumes soap messsage from cxf endpoint in a test class.

Re: GenericFileOperations optimization

2011-04-20 Thread Claus Ibsen
On Wed, Apr 20, 2011 at 1:43 PM, Marco Crivellaro wrote: > Thank you, what about the second point about lock? > The lock is very cheap as it only prevents you from writing to the *same* file concurrently, such as when you append to an existing file. So there should be no bottleneck there. > --

Re: Camel release 2.8

2011-04-20 Thread Claus Ibsen
Hi On Wed, Apr 20, 2011 at 1:45 PM, bvahdat wrote: > Claus, > > Strange but true! upgrading from maven 3.0.2 to maven 3.0.3 (that's the same > maven version you own on your box as well) resolved all the issues I used to > have concerning building. It also resolved the issue I reported once > rega

Re: Camel release 2.8

2011-04-20 Thread bvahdat
Claus, Strange but true! upgrading from maven 3.0.2 to maven 3.0.3 (that's the same maven version you own on your box as well) resolved all the issues I used to have concerning building. It also resolved the issue I reported once regarding tooling: https://issues.apache.org/jira/browse/CAMEL-3837

Re: GenericFileOperations optimization

2011-04-20 Thread Marco Crivellaro
Thank you, what about the second point about lock? -- View this message in context: http://camel.465427.n5.nabble.com/GenericFileOperations-optimization-tp4315363p4315567.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel release 2.8

2011-04-20 Thread bvahdat
Claus Ibsen-2 wrote: > > On Sun, Apr 17, 2011 at 5:18 AM, Willem Jiang > wrote: >> Did you have a chance to build the camel-spring bundle yourself? >> I just checked the camel-spring jar on my box, it has the class of >> CamelJMXAgentDefinition . >> > >> A good idea is t

Re: Weird behaviour with message routing

2011-04-20 Thread Claus Ibsen
Add a .convertBodyTo(String.class) before the XSLT endpoint as a work around. On Wed, Apr 20, 2011 at 1:20 PM, atte wrote: > Ok. Thanks for the pointer. > This brings me to my next question. > > > >> StreamCache Affects your payload object >> The StreamCache will affect your payload object as it

Re: Weird behaviour with message routing

2011-04-20 Thread atte
Ok. Thanks for the pointer. This brings me to my next question. > StreamCache Affects your payload object > The StreamCache will affect your payload object as it will replace the > Stream payload with a org.apache.camel.StreamCache object. > This StreamCache is capable of being re-readable and t

RE: Mina component: Serial port support?

2011-04-20 Thread Klug, Johannes
Cheers Claus, I'll see what I can do. > -Original Message- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: 20 April 2011 12:44 > To: users@camel.apache.org > Subject: Re: Mina component: Serial port support? > > The camel-mina component is still using Mina 1.1.7. There is a tic

Re: Weird behaviour with message routing

2011-04-20 Thread Claus Ibsen
On Wed, Apr 20, 2011 at 8:19 AM, atte wrote: > Is the consept of my route ok? > > .from("quartz").to("http").to("xslt").to("http"); > > Should I be able to do that? > Why does the route get broken if I f.ex. add .wireTap to the route? > .from("quartz").to("http").wireTap("file").to("xslt").to("htt

Re: Mina component: Serial port support?

2011-04-20 Thread Claus Ibsen
The camel-mina component is still using Mina 1.1.7. There is a ticket to upgrade it to Mina 2.0.x. https://issues.apache.org/jira/browse/CAMEL-3471 And yes you are the first whom asks about serial port support. As we love contributions so you are welcome to dig in and help. http://camel.apache.org

Re: GenericFileOperations optimization

2011-04-20 Thread Claus Ibsen
On Wed, Apr 20, 2011 at 11:47 AM, Marco Crivellaro wrote: > Hi, > when using camel as FTP/SFTP producer the exchange process is taking longer > time when many files are stored in the destination folder. > > This should be related to the operations.existsFile calls being processed by > the method.

Mina component: Serial port support?

2011-04-20 Thread Klug, Johannes
Dear all, Currently, the Mina component [1] seems to only support tcp, udp and vm transports. What is your view on serial port [2] support? Is there a reason why it's not supported yet, or is it just that so far nobody had any interest in it? Cheers, Johannes [1] http://camel.apache.or

GenericFileOperations optimization

2011-04-20 Thread Marco Crivellaro
Hi, when using camel as FTP/SFTP producer the exchange process is taking longer time when many files are stored in the destination folder. This should be related to the operations.existsFile calls being processed by the method. At the moment GenericFileProducer.processExchange is calling twice op

Re: How can we set the SOAP Operation name to be called when using camel-soap

2011-04-20 Thread Christian Schneider
Hi Charles, camel-soap uses the annotations on the code to determine the soap action. So you could either provide the correct annotation or if you generate the code from wsdl provide the soap action in the wsdl. As you added a wsdl to the mail I guess you are generating the java code. So I t

Re: Camel-Cxf:unable to find wsdl

2011-04-20 Thread Claus Ibsen
Do you wsdl import and xsd file? Because your get an error about not being able to load a XSD file. On Wed, Apr 20, 2011 at 8:52 AM, vcheruvu wrote: > HI, >  I have created a project that simply consumes soap messsage from cxf > endpoint in a test class. I have created the following route in JAV

Re: How to write a singleton producer

2011-04-20 Thread Claus Ibsen
On Wed, Apr 20, 2011 at 10:20 AM, andrew.cowper wrote: > Thnaks for your answer Ben, I actually already have that reference in my > Producer class. The real issue is that I need to call a specific method > (activate) on the datasource when a certain sentinel message has been > received once from e

Re: ROUTE_STOP and mail

2011-04-20 Thread Claus Ibsen
On Wed, Apr 20, 2011 at 12:42 AM, Donald Whytock wrote: > I ask because it appears to, in my application where I'm using > ROUTE_STOP to break out of a pipeline. > > Perhaps there should be some mechanism for breaking out of a pipeline > without killing the whole route?  A PIPELINE_STOP property,

Re: How can we set the SOAP Operation name to be called when using camel-soap

2011-04-20 Thread Claus Ibsen
There is a you can use to set a header with the operation name. Something like foobar On Tue, Apr 19, 2011 at 7:19 PM, Charles Moulliard wrote: > Hi, > > I create a simple camel route to generate a SOAP message and call the > webserver using http client. How can I configure camel, soap to send

Re: How to write a singleton producer

2011-04-20 Thread andrew.cowper
Thnaks for your answer Ben, I actually already have that reference in my Producer class. The real issue is that I need to call a specific method (activate) on the datasource when a certain sentinel message has been received once from each route. That is why I want a singleton Producer, so that it c

Re: Testing Spring DSL camel routes with CamelSpringTestSupport, osgix namespace problem

2011-04-20 Thread Claus Ibsen
Hi If you use OSGi you should use Pax Exam or something like that for unit testing with OSGi. Its frankly a bit more complicated and we will most likely add a camel-osgi-test component which makes testing Camel routes easier with OSGi. You can take a look at some of the camel source in tests/came

Re: Would appreciate advice on the best way to tackle a problem

2011-04-20 Thread Christian Schneider
I think a good solution may be to do the source side like I suggested. So you go from database to jms. Then you can use a route that listens on jms with one thread. This will serialize the processing. From there you can call the destination application synchronously. The only hard thing may be t

Testing Spring DSL camel routes with CamelSpringTestSupport, osgix namespace problem

2011-04-20 Thread janne postilista
I'm trying to unit/integration test my Spring DSL refined route with CamelSpringTestSupport. I have camel-context.xml which defines my routes. I try to initialize tests with that, and mock some endpoints using test-routes.xml which looks like: and my test class then looks like p