Re: CAMEL and WebDAV ?

2013-03-18 Thread Claus Ibsen
On Thu, Mar 14, 2013 at 8:32 PM, moxximus wrote: > Was this camel-sardine component ever completed? If not, could you pass my > contact info on to the community member who was developing the component? > No the webdav component was never completed / contributed to ASF > I need this component for

Re: Exchange lifecycle

2013-03-18 Thread Claus Ibsen
On Sun, Mar 17, 2013 at 11:19 AM, helander wrote: > Can someone clarify the following: > > When an exhange is passed between routes, e.g. using "direct" or > "direct-vm", is then a new exhange created or is it the same exhange that > will be used in the "target" route? > Its the same. > If it

Incomplete Registry interface [was: base class for context component?]

2013-03-18 Thread Sven Bauhan
Hi, I think for the interface Registry a method bind() should be defined. Here comes the explanation why: Finally I managed to create a camel context component to put a route in a black box. But I want to put this context component into a library and hide it behind an API. Starting point w

Camel Aggregator Strategy Question

2013-03-18 Thread Joe San
Camel Users, I need to acheive the following scenario: I have a file system where 3 different CSV files will be written, csv1, csv2 and csv3. All these 3 files will be available at the same time. I need to read all the three files, do some processing on iut and produce one CSV file as a result.

Re: Incomplete Registry interface [was: base class for context component?]

2013-03-18 Thread Claus Ibsen
Hi Camel is a client that lookup in an existing registry you use, eg Spring App Context, CDI, Guice, OSGi Service Registry, JNDI, or whatever you may write as custom registry. Camel comes with a few out of the box, JndiRegistry, SimpleRegistry. So if you want to use a registry where you can add/

dynamic properties

2013-03-18 Thread jinaLu
I need to have configurable text with some parameters to set in the body. In my .cfg file I have message=My message ${property.type} is for user ${property.user} Properties are set in steps before. If I use setBody(simple("{{message}}") I get text without properties parameters. Any ideas how to set

Re: Using camel:routeContextRef under camel:camelContext

2013-03-18 Thread deepak_a
Hi All, After spending a lot of time with the namespace issue, I decided to follow a different approach 1st load the appContext via Spring. This appContext has a camel:camelContext that defines the errorHandlerRef attributes and also other items like camel:onException camel:onCompletion Once the

Integration of LMAX disruptor as a CAMEL endpoint

2013-03-18 Thread ladoe00
Hi, I've created a JIRA issue a few weeks ago on this topic and I would like to know if this could be on the books for a future release. https://issues.apache.org/jira/browse/CAMEL-5828 As pointed out in the JIRA task, there is a Github project that already started the endpoint code (I've been

PollEnrich using SFTP: What is the meaning of delay, initialDelay in this context?

2013-03-18 Thread Kessler, Joerg
Hi, We use Camel 2.10.x. I want to pick up a limited number of files from an SFTP server by one synchronous (WS) call. I use Loop and PollEnrich to aggregate the the message. I have set the timeout-property of PollEnrich to 0 since I expect the files to exist on the SFTP server. The SFTP endpoi

Combining Camel Proxying with Shiro for authentication Issue

2013-03-18 Thread mlykes
I am having issues combining Camel Proxying with Shiro for authentication and wanted to know if anyone else has had a similar problem. Please let me know if I should attach the source code of the project? The Key line is below where I am making a camel proxy as a dependency of the realm. I am gues

stopRoute(): Waiting as there are still X inflight and pending exchanges to complete

2013-03-18 Thread mdo
Hello, I'm trying to stop a route from a processor. The route is Quartz-triggered (via context.startRoute()). The route in question is defined like this: from("file:///tmp/x/?sendEmptyMessageWhenIdle=true") .noAutoStartup() .routeId(nameConsumer)

Re: stopRoute(): Waiting as there are still X inflight and pending exchanges to complete

2013-03-18 Thread Claus Ibsen
Hi See this FAQ how to stop a route from a route http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html On Mon, Mar 18, 2013 at 3:21 PM, mdo wrote: > Hello, > > I'm trying to stop a route from a processor. The route is Quartz-triggered > (via context.startRoute()). The route in questio

Re: stopRoute(): Waiting as there are still X inflight and pending exchanges to complete

2013-03-18 Thread mdo
Hello Claus, thanks for your quick answer! Claus Ibsen-2 wrote > See this FAQ how to stop a route from a route > http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html I've seen these examples but is it necessary to start a new thread? I've seen examples with the following procedure

Re: stopRoute(): Waiting as there are still X inflight and pending exchanges to complete

2013-03-18 Thread Claus Ibsen
On Mon, Mar 18, 2013 at 3:34 PM, mdo wrote: > Hello Claus, > > thanks for your quick answer! > > > Claus Ibsen-2 wrote >> See this FAQ how to stop a route from a route >> http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html > > I've seen these examples but is it necessary to start a ne

Re: Routing an ObjectMessage in ActiveMQ

2013-03-18 Thread yodamad
Hi, I'm facing the same problem using camel 2.8 in servicemix 4.4.1. Does anyone find a solution for this "issue" ? Thanks Mat -- View this message in context: http://camel.465427.n5.nabble.com/Routing-an-ObjectMessage-in-ActiveMQ-tp5717965p5729353.html Sent from the Camel - Users mailing li

Re: dynamic properties

2013-03-18 Thread Claus Ibsen
Hi See this page how to use property placeholders with Camel http://camel.apache.org/using-propertyplaceholder.html What version of Camel do you use? And do you use Spring or OSGi blueprint, or something? And what is ${property.type} is that another property placeholder with a key=type,eg eg f

Error on Tracer HTML page

2013-03-18 Thread ronald.rockwell@envisagesystem
The doc on the Tracer page needs to be updated. In the section "Using Destination for custom processing and routing", it states that "the original Exchange can be accessed using getTracedExchange()". This does not work and according to this http://camel.465427.n5.nabble.com/svn-commit-r791077-in-ca

Programatically adding beans to a registry in a RouteBuilder

2013-03-18 Thread Gert Villemos
How can I in the 'configure' method of a RouteBuilder add beans to the registry? Im in a RouteBuilder creating a route using Netty. The Netty URL reference encoder/decoder beans. I need to create and insert these beans in the registry. The Netty description (last code example) indicates that you

Re: Programatically adding beans to a registry in a RouteBuilder

2013-03-18 Thread Donald Whytock
On Mon, Mar 18, 2013 at 12:16 PM, Gert Villemos wrote: > How can I in the 'configure' method of a RouteBuilder add beans to the > registry? > > Im in a RouteBuilder creating a route using Netty. The Netty URL reference > encoder/decoder beans. I need to create and insert these beans in the > regis

Re: Error on Tracer HTML page

2013-03-18 Thread Claus Ibsen
On Mon, Mar 18, 2013 at 4:56 PM, ronald.rockwell@envisagesystem wrote: > The doc on the Tracer page needs to be updated. In the section "Using > Destination for custom processing and routing", it states that "the original > Exchange can be accessed using getTracedExchange()". This does not work an

Re: Programatically adding beans to a registry in a RouteBuilder

2013-03-18 Thread Gert Villemos
Hmmm... tried that but doesnt work. getContext() returns a org.apache.camel.impl.PropertyPlaceholderDelegateRegistry object. Which cant be cast to JndiRegistry. My setup is the following; In a Spring based route I have bean A. Bean As @Handler will create an instance of bean B, which is a RouteBu

Re: Programatically adding beans to a registry in a RouteBuilder

2013-03-18 Thread Donald Whytock
On Mon, Mar 18, 2013 at 2:02 PM, Gert Villemos wrote: > Hmmm... tried that but doesnt work. > > getContext() returns a > org.apache.camel.impl.PropertyPlaceholderDelegateRegistry object. Which cant > be cast to JndiRegistry. > > My setup is the following; In a Spring based route I have bean A. Bea

Re: Drools with Camel

2013-03-18 Thread AlanFoster
For those guys who arrive at this question from Google, here's a quick answer to this question: There is a basic maven archetype for a drools+camel example - the source can also be found he re https://github.com/FuseByExample/camel-drools-example. Also try looking at the drools integration docu

Re: Exchange lifecycle

2013-03-18 Thread Lars-Erik Helander
Claus, thank you very much for the feedback. Regarding sending an exchange to another context I was thinking about when you use the camel-context component. Is your statement about ONLY still valid , considering that case? I read somewhere (think it was in "Camel in Action") that UnitOfWork is

Re: Programatically adding beans to a registry in a RouteBuilder

2013-03-18 Thread Chris Wolf
It may, or may not be wrapped in PropertyPlaceholderDelegateRegistry, in that case, I would try this: Registry registry = context.getRegistry(); if (registry instanceof PropertyPlaceholderDelegateRegistry) registry = ((PropertyPlaceholderDelegateRegistry)registry).getRe

Re: Programatically adding beans to a registry in a RouteBuilder

2013-03-18 Thread Gert Villemos
I meant that I in the RouteBuilder::configure have; JndiRegistry registry = (JndiRegistry) getContext().getRegistry(); // DO NOT WORK! --- Thanks for the suggestion. The code PropertyPlaceholderDelegateRegistry registry = (PropertyPlaceholderDelegateRegistry) getContext().getRegistry()

Re: Programatically adding beans to a registry in a RouteBuilder

2013-03-18 Thread Chris Wolf
Are you running this code in web container? If so, which? Tomcat, Jetty, JBoss? If you are just running as a standalone Java app, you can just use "SimpleRegistry", which is basically a Map. CamelContext context = new DefaultCamelContext(new SimpleRegistry()); Registry registry

Re: How to schedule FTP with quartz?

2013-03-18 Thread Chris Wolf
Claus, I have a few further questions about CronScheduledRoutePolicy. I noticed that it has setters such as setRouteStartTime, setRouteStopTime, each which takes a cron expression string. What I'm looking for is to be able to use a cron expression for the start, but a relative time length for st

Populate message with BeanInvocation

2013-03-18 Thread helander
In a route I would like to fill the message with a BeanInvocation, the same way as when using .bean(), but I do not want the bean method to be called. Is there some easy way to do this (preferably using similar syntax as when using .bean() ) ? Thanks Lars -- View this message in context: h

Re: CXF proxy route creates multiple (two) user-agent HTTP headers

2013-03-18 Thread kingolego
Camel 2.10.3 / CXF 2.6.3 -- View this message in context: http://camel.465427.n5.nabble.com/CXF-proxy-route-creates-multiple-two-user-agent-HTTP-headers-tp5729137p5729374.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Regarding File Transfer

2013-03-18 Thread Christian Müller
e.g. via FTP... http://camel.apache.org/ftp2.html Best, Christian On Mon, Mar 18, 2013 at 1:51 PM, Krishna.aradhya < krishna.arad...@cognizant.com> wrote: > > Hi, > > How can i send a file from my local Machine to another > machine using Camel? > > > > > > -- > View this

Re: Routing an ObjectMessage in ActiveMQ

2013-03-18 Thread Christian Müller
Try stream caching as described here: http://camel.apache.org/stream-caching.html Best, Christian On Mon, Mar 18, 2013 at 4:15 PM, yodamad wrote: > Hi, > > I'm facing the same problem using camel 2.8 in servicemix 4.4.1. > Does anyone find a solution for this "issue" ? > > Thanks > Mat > > > >

Re: How to schedule FTP with quartz?

2013-03-18 Thread Pontus Ullgren
Hello Chris, On Mon, Mar 18, 2013 at 8:54 PM, Chris Wolf wrote: > Claus, > > I have a few further questions about CronScheduledRoutePolicy. I > noticed that it has setters such as setRouteStartTime, > setRouteStopTime, each which takes a cron expression string. What I'm > looking for is to be a

Re: Camel Aggregator Strategy Question

2013-03-18 Thread Pontus Ullgren
Hello, The file component will by default poll all files that are available in the directory. You could then use the aggregator EIP [1] and your own custom aggregation strategy to combine the files. Possibly you could also use a custom route policy to restrict the polling of files until all files

Re: ClassNotFoundException: org.apache.xalan.xsltc.trax.DOM2SAX

2013-03-18 Thread Christian Müller
May be there is a missing Import-Package "org.apache.xalan.xsltc.trax" in camel-cxf. Can you provide a unit test which show this "issue"? Best, Christian On Wed, Mar 13, 2013 at 1:36 PM, Smith-John wrote: > java.lang.ClassNotFoundException: org.apache.xalan.xsltc.trax.DOM2SAX > at java.

Re: CDI in 2.11

2013-03-18 Thread Christian Müller
No, it should be up to date. If you miss the documentation of a specific feature which is already in our SCM, feel free to raise an JIRA at https://issues.apache.org/jira/browse/CAMEL Best, Christian On Mon, Mar 18, 2013 at 7:02 AM, Lars-Erik Helander wrote: > But that page only describes CDI fo

Re: CamelOne 2013 Call for papers

2013-03-18 Thread Matt Pavlovich
Hey Rob- Hope all is going well. Last year, there was some talk about having a tech track and a manager track-- has any of that crystalized for this year? Thanks, Matt Pavlovich On Mar 11, 2013, at 10:01 AM, Robert Davies wrote: > This is the third year of CamelOne, the conference designed f

Re: ClassNotFoundException: org.apache.xalan.xsltc.trax.DOM2SAX

2013-03-18 Thread Willem jiang
I think Smith should try to use the latest Camel 2.10.4, there are some CxfPayloadConverter related fix recently. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.bl

Re: Camel Aggregator Strategy Question

2013-03-18 Thread Willem jiang
If three files are in same directory, you can just use one route with the aggregator. If these files are in different directory, you can use three route like this from("file:/csv1/").to("direct:merge"); from("file:/csv2/").to("direct:merge"); from("file:/csv3/").to("direct:merge"); from("direct:m

Re: routing private chat xmpp messages to camel route

2013-03-18 Thread optimist
Willem, Thanks for response. Can you please post an example where routes are added dynamically? I can try to use that mechanism to route the private chat messages to my original route. Also, I feel this is not the first instance where private chat messages are needed to be put on to a camel rou

Re: Populate message with BeanInvocation

2013-03-18 Thread Willem jiang
It could be done by writing a custom TypeConverter[1], and you can turn the message body into BeanInvocation like this from(xxx).setBody(body(BeanInvocation.class)) [1] http://camel.apache.org/type-converter.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://ww

Re: dynamic properties

2013-03-18 Thread jinaLu
I use camel 2.8 according my serviceMix server. In cfg I have: message=My message ${property.type} is for user ${property.user} messageSubject.invoice=Invoice message I use Java DSL to define route and osgi blueprint for other purposes. My route looks like: from("direct:start") .to("bean:FindXML"