Re: CAMEL and WebDAV ?

2010-01-04 Thread S. Ali Tokmen
Hello again First of all, happy new year everyone :) Le 28/12/2009 12:10, Claus Ibsen a écrit : There is also Milton http://milton.ettrema.com/index.html Milton is a server-side library. It looks like it needs a Servlet container, so some work needs to be done in order to access it

Re: Apache Camel Usage with .Net

2010-01-04 Thread Claus Ibsen
On Sat, Jan 2, 2010 at 8:36 PM, scope_creep scope_cr...@hotmail.com wrote: Bob. I'm a newbie on the Apache stack, so bear with me, although i've used the webserver for donkeys. I'm really interested in ApAche camel for its primary purpose which is routing. I have a .Net assembly, which

Re: CAMEL and WebDAV ?

2010-01-04 Thread Claus Ibsen
On Mon, Jan 4, 2010 at 9:50 AM, S. Ali Tokmen savas-ali.tok...@bull.net wrote: Hello again First of all, happy new year everyone :) Le 28/12/2009 12:10, Claus Ibsen a écrit : There is also Milton http://milton.ettrema.com/index.html Milton is a server-side library. It looks like it

Re: camel:proxy doesn't work outside camelContext

2010-01-04 Thread Hendy Irawan
Thank you Willem, I'm forever indebted to you for this. If there is only one camelContext in the spring applicationContext , you don't need to specify the camelContextId attribute, otherwise you need to specify it. Thanks, that is exactly the behavior I expected. And that's

Re: JAXB marshaller control characters

2010-01-04 Thread Willem Jiang
I just filled a JIRA[1] for adding an out of box support in camel-jaxb. So you don't need to use covertTo() DSL any more. [1] https://issues.apache.org/activemq/browse/CAMEL-2330 Willem Willem Jiang wrote: Hi, I think you can write a type converter[1] which can turn the InputStream to a

Re: Routing to a method of an object with more than one parameters - part2

2010-01-04 Thread Claus Ibsen
On Mon, Jan 4, 2010 at 8:43 AM, yaog yairo...@gmail.com wrote: Thanks. I have read those links, but... It may be me, but I cannot understand how it all hooks up. What I want to define is a bean that is invoked with a method that gets 3 parameters. Scenario is one of the following 2: 1.

Camel Example as Event Notification Framework

2010-01-04 Thread Hendy Irawan
Hi, I'd let you guys know that I've written a post on how to use Camel as event notification framework here: http://spring-java-ee.blogspot.com/2010/01/advanced-event-notification-framework.html You can download/explore the code here: http://github.com/ceefour/eventfx.camel Hope it helps

problem with simple message to file example under osgi

2010-01-04 Thread dlawson
When running the following simple message to file route under the Eclipse and Felix OSGi containers, public class MessageToFileRoute extends RouteBuilder { public MessageToFileRoute( ) { } // end MessageToFileRoute( ) public void configure( ) throws

How to convert the response of an InOut exchange using XSLT before sending it back to the original calling endpoint?

2010-01-04 Thread jeroenvoogt
Hi all, Does anyone know how I can convert the response of an InOut exchange (so the out message) using XSLT and pass it on to the original caller? In my situation, an external system is sending a soap request to the middleware (Apache ServiceMix and Apache Camel 1.6) which transforms it and

Re: How to convert the response of an InOut exchange using XSLT before sending it back to the original calling endpoint?

2010-01-04 Thread Claus Ibsen
On Mon, Jan 4, 2010 at 4:13 PM, jeroenvoogt jeroen.vo...@gmail.com wrote: Hi all, Does anyone know how I can convert the response of an InOut exchange (so the out message) using XSLT and pass it on to the original caller? In my situation, an external system is sending a soap request to the

Issue trying to browse a activemq queue

2010-01-04 Thread Ricardo Melo
Hi, I'm using camel and I need to get the number of elements present in a activemq queue, because the queue has a max size. I'm trying to use QueueBrowser Interface, with no success. The queue I put messages in is called activemq:queue:out. I've found some code to do that job, but I can't

Re: Issue trying to browse a activemq queue

2010-01-04 Thread Claus Ibsen
Hi In ActiveMQ 5.3 you can get stats as follows: http://activemq.apache.org/statisticsplugin.html That should be faster than the QueueBrowser interface as you have to walk every message on the queue to know how many messages exists. So getting the stats some other way is better and faster. What

Re: Issue trying to browse a activemq queue

2010-01-04 Thread James Strachan
BTW it looks like you are confusing the queue name in JMS with the JNDI name in JNDI. Incidentally a simpler alternative to using the JNDI API to lookup the queue then using the JMS API to use a queue browser is to just use the BrowseableEndpoint API in Camel...

Re: How to convert the response of an InOut exchange using XSLT before sending it back to the original calling endpoint?

2010-01-04 Thread jeroenvoogt
Claus Ibsen-2 wrote: Usually you just add that transformation as the last step in the route. The reply to the original caller is always whatever the Exchange looks like when the route ends. Thanks Claus, your reply helped me further and it's now working perfectly. The output of the

Re: Issue trying to browse a activemq queue

2010-01-04 Thread Ricardo Melo
Thank you all fot the answers. It works now with the Browsable endpoint, thanks! Very clean and elegant solution. On Mon, Jan 4, 2010 at 2:33 PM, James Strachan james.strac...@gmail.comwrote: BTW it looks like you are confusing the queue name in JMS with the JNDI name in JNDI. Incidentally

Re: Issue trying to browse a activemq queue

2010-01-04 Thread James Strachan
2010/1/4 Ricardo Melo rica...@cflex.com.br: Thank you all fot the answers. It works now with the Browsable endpoint, thanks! Very clean and elegant solution. Glad it worked :) BTW as Claus mentions, its actually inefficient under the covers if all you want is the size as it basically loads

Spring Integration Camel Example as Event Notification Framework

2010-01-04 Thread Hendy Irawan
Hi, I've posted an article on Using Spring Integration as Event Notification Framework: http://spring-java-ee.blogspot.com/2010/01/event-notification-framework-with.html I'm using the fresh new Spring Integration 2.0 M2 with Spring Framework 3.0 there. My other article that uses Camel is at:

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

2010-01-04 Thread SoaMattH
I am just having a little difficulty on the syntax and the doco at the juel web site on el is a bit light on What I have done: camel:to uri=bean:receiverBean?method=processData / camel:choice camel:when camel:el{$out.body ==

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

2010-01-04 Thread SoaMattH
I have also made the assumption that the return object ends up in out.body is this the case? --Matt SoaMattH wrote: I am just having a little difficulty on the syntax and the doco at the juel web site on el is a bit light on What I have done: camel:to

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

2010-01-04 Thread Claus Ibsen
On Mon, Jan 4, 2010 at 11:59 PM, SoaMattH matt...@netpacket.com.au wrote: I have also made the assumption that the return object ends up in out.body is this the case? You should just use ${body} in 99% of the cases as Camel uses the Pipes And Filters EIP pattern (pipeline) in a route when

ResolveEndpointFailedException with a file endpoint

2010-01-04 Thread /U
I have a simple route transferring contents of files in a folder to a JMS queue: camelContext xmlns=http://activemq.apache.org/camel/schema/spring; route from uri=file:///ftp/data/in.txt/?useFixedDelay=trueamp;delay=1000amp;/ to