Re: How to set spring bean into exchange property

2013-04-09 Thread Claus Ibsen
Hi You can use the ref function from simple http://camel.apache.org/simple.html ${ref:someBean} There is a shorthand without the ${ }. ref:someBean On Wed, Apr 10, 2013 at 5:27 AM, darkAR wrote: > Hello, > > I would like to set a spring defined bean > > > > > > in a spring camel route l

Re: Facebook Component

2013-04-09 Thread Willem jiang
AFAIK, there is no Facebook component for camel. But you may consider to leverage Spring Social to save some time :) -- 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://willemjian

Facebook Component

2013-04-09 Thread Jason Chaffee
Does anyone know if there is a Facebook component that is similar to the camel-twitter component, but for Facebook? I am thinking of working on one for my needs, but I wanted to make sure that someone hasn't already gone down that path. Thanks, Jason

Facebook component

2013-04-09 Thread Jason Chaffee
Does anyone know if there is a Facebook component that is similar to the camel-twitter component, but for Facebook? I am thinking of working on one for my needs, but I wanted to make sure that someone hasn't already gone down that path. Thanks, Jason

How to set spring bean into exchange property

2013-04-09 Thread darkAR
Hello, I would like to set a spring defined bean in a spring camel route like ? what to put here ? will ${someBean} work? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-spring-bean-into-exchange-property-tp5730616

Re: CXF Example OSGi

2013-04-09 Thread Willem jiang
Just as Dan said we don't need that import, as the CXF bus will take care of it. @Christian, I will revisit this issue when I get some time today. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blo

Re: cxf producer needs a break?

2013-04-09 Thread Willem jiang
It looks like a bug of camel-cxf component. Can you submit a simple test case to the JIRA[1] so we can keep digging the issue. BTW, you can disable the async invocation by setting the option "synchronous=false" [1]http://issues.apache.org/jira/browse/CAMEL -- Willem Jiang Red Hat, Inc. Fu

cxf producer needs a break?

2013-04-09 Thread Smith-John
Hi, I have a strange (at least for me) issue with my route respectively the cxf component in it. The route looks like from("cxf:XXX?wsdlURL=YYY&...")to(...)...to("cxf:${header[ReplyTo]}?wsdlURL=YYY&..."); I get a one way SOAP message, do some work with it and send a response back to the cal

Re: CXF Example OSGi

2013-04-09 Thread Daniel Kulp
On Apr 9, 2013, at 3:16 PM, Christian Müller wrote: > dev:dynamic-import will resolve this > issue. It's the missing import of > > Apache CXF Runtime Core (116): META-INF.cxf; version=2.6.6 > > which cause this issue. > I will resolve this for Camel 2.10.5 and 2.11.1 and add a note to the k

Re: CXF Example OSGi

2013-04-09 Thread Christian Müller
dev:dynamic-import will resolve this issue. It's the missing import of Apache CXF Runtime Core (116): META-INF.cxf; version=2.6.6 which cause this issue. I will resolve this for Camel 2.10.5 and 2.11.1 and add a note to the know issues. Thanks for reporting! Best, Christian On Tue, Apr 9, 20

Re: Camel/JMS with Atomikos UserTransactionManager not consuming Messages

2013-04-09 Thread Christian Müller
If you do not use transacted (or policy) in your route, Camel will not start a transaction. [1] http://camel.apache.org/transactional-client.html Best, Christian On Tue, Apr 9, 2013 at 8:31 PM, yxzhao wrote: > Yes, we have transacted configured with the objects of JmsComponent. I > have a > g

Re: CronSchedulePolicy with cxf endpoint

2013-04-09 Thread Christian Müller
Can you provide a simple unit test? Or can you enable TRACE/DEBUG logging for org.apache.camel and share the log? Best, Christian On Thu, Apr 4, 2013 at 6:50 AM, Richa wrote: > We are stopping the route dynamically using a shutdown processor based on > some business conditions. > Basically, sh

Re: Camel/JMS with Atomikos UserTransactionManager not consuming Messages

2013-04-09 Thread yxzhao
Yes, we have transacted configured with the objects of JmsComponent. I have a general question now on how transaction boundaries are marked in camel routes. I saw results of each database call in a split list is committed into database. I wonder how are other regular routes that don't have transa

Re: Camel xmpp dynamic router is not connecting to openfire.

2013-04-09 Thread pshetty.kateel
Created Jira issue https://issues.apache.org/jira/browse/CAMEL-6256 -- View this message in context: http://camel.465427.n5.nabble.com/Camel-xmpp-dynamic-router-is-not-connecting-to-openfire-tp5730506p5730601.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: servlet event based file consuming using file component

2013-04-09 Thread praveenbillampati
Hi Chris, pollEnrich is the right option and it is doing the trigger as well, but I am seeing below error. Basically it is moving(this is what I need to do on trigger) the file on giving the trigger and after that it is trying to read the file again. /java.io.FileNotFoundException: C:\feed\event

Re: Dynamic from endpoint

2013-04-09 Thread Claus Ibsen
Hi Read about using property placeholders with Camel. There is a link from the user guide On Tue, Apr 9, 2013 at 4:57 PM, Bazzer wrote: > I want to do the same thing, but we're using the Spring DSL. I was wondering > if there was a way to use variable substitution, so I could change a bunch > of

Endpoint lifecycle and irrecoverable errors

2013-04-09 Thread Pil
Hello. I tried to find some information / examples about lifecycle of endpoints, but haven’t found anything usable for me (or I didn’t understand something). So I try to ask my question here. I have a custom endpoint (self written), that has to manage connection to a legacy application. I use a t

Re: Dynamic from endpoint

2013-04-09 Thread Bazzer
I want to do the same thing, but we're using the Spring DSL. I was wondering if there was a way to use variable substitution, so I could change a bunch of routes at startup without changing all my route definitions, something like: with my routes defined like: or: -- View this message

Re: Netty/bytearray

2013-04-09 Thread Claus Ibsen
Hi Yeah you would need to find a suitable encoder to use. Somehow you need to tell the other party how much data you send, or use some end of stream marker. Netty comes with a number of encoders out of the box you may use. Or write a custom encoder. On Tue, Apr 9, 2013 at 12:55 PM, Walzer, Tho

Re: Callback after startup from org.apache.camel.main.Main afterStart()

2013-04-09 Thread Claus Ibsen
Hi Yeah we probably need some API on MainSupport so you can add a custom EventNotifier, which we then add to the CamelContext before its started. Though another option that may be easier is just to have a beforeStart | beforeStop method which you can implement and do your custom code there. A bit

Re: Simple case of multithreading with camel and wildcard.

2013-04-09 Thread lleclerc
Do this X times : Thread t = new MyThread() t.start(); list.add(t); Then : for(Thread t2 : list) { t2.join(); } Continue process. As you can see, this can lock and there is no error handling, I want to do that using camel. -- View this message in context: http://camel.465427.n5.nabble.co

Re: Camel routing issue

2013-04-09 Thread prabumc...@gmail.com
Hi Chris, from(CARD_TYPE_SPECIFIC_QNAME).choice() .when(SCHEDULE_PREDICATE).multicast().to(CARD_QNAME,SCHEDULE_QNAME); .when(CARD_EVENT_PREDICATE).to(CARD_EVENT_CARE_HANDLER_QNAME) .otherwise() .setHeader(PROPERTY_ORIGINAL_DESTINATION, constant(PROPERTY_ORIGINAL_DESTINATION_VALUE)) .to(ERQ_QNAME)

Re: Camel xmpp dynamic router is not connecting to openfire.

2013-04-09 Thread Claus Ibsen
Hi Yeah this indicates a bug. Feel free to log a JIRA ticket and work on a patch. http://camel.apache.org/contributing.html On Mon, Apr 8, 2013 at 10:19 PM, pshetty.kateel wrote: > I just debugged using source code. > It looks like bug in XmppEndpoint.createConnection method. > > If no groupchat

Netty/bytearray

2013-04-09 Thread Walzer, Thomas
Hi, has anyone tried to send a plain byte array to a netty endpoint? (sync=false) If I use the textline option it implicitly converts to a String as far as I understand. I use Camel 2.10.2. Regards, Thomas.

Re: servlet event based file consuming using file component

2013-04-09 Thread praveenbillampati
We are using file consumer template, but file consumer by default polls the directory, but we need to prevent the continuous polling and look for the file only when we ask it to do. -- View this message in context: http://camel.465427.n5.nabble.com/servlet-event-based-file-consuming-using-f

Problems using camel-cdi and camel-cxf

2013-04-09 Thread helander
I have tried to use the new camel-cdi from 2.11 with camel-cxf ( and the CXFNonSpringServlet) and get the following problem: I need to make sure that the CXF servlet is initialized prior to the creation of the routes/context that will use the servlet. However the CDI container initializeds my CDI

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

2013-04-09 Thread Kessler, Joerg
Here is the answer: PollEnrich always creates an SFTP consumer endpoint that generally uses the configuration provided by the PollEnrich configuration (delay, intialDelay...). The difference is that the poll process is immediately stopped if there is no synchronous request waiting for a file.

Re: Storing camel routes information in a DB.

2013-04-09 Thread Babak Vahdat
Hi The following example of the Camel distribution should give you an idea how to achieve this: http://camel.apache.org/tracer-example.html Babak pbs wrote > My use case is quite simple > As soon as xml file arrives in one hot folder, I use came routes to move > it to another file directory. *

Re: Camel Splunk component

2013-04-09 Thread Claus Ibsen
Hi Preben This seems very nice. I guess the webinar is this one: http://www.youtube.com/watch?v=EFqEqD8djfc As people know we love contributions at ASF, so IMHO would be nice with a camel-splunk component. On Sun, Apr 7, 2013 at 8:46 PM, Preben.Asmussen wrote: > Hi > > I saw a Spring webinar