Re: Invoking a bean returned by a previous bean invocation

2012-04-30 Thread Claus Ibsen
On Mon, Apr 30, 2012 at 9:26 PM, Purple Tea wrote: > Hi, > > I have a route that returns a bean, and I would like to call a method in the > bean that was returned (which isn't in the registry). > I've been looking at the bean binding documentation but I didn't find this > scenario. > > Bellow is a

Invoking a bean returned by a previous bean invocation

2012-04-30 Thread Purple Tea
Hi, I have a route that returns a bean, and I would like to call a method in the bean that was returned (which isn't in the registry). I've been looking at the bean binding documentation but I didn't find this scenario. Bellow is a sample code: class MyBean

Re: File Processor Not deleting the files

2012-04-30 Thread rdifrango
I wonder if using one the Marshalling frameworks would solve this? -- View this message in context: http://camel.465427.n5.nabble.com/File-Processor-Not-deleting-the-files-tp5670301p5676645.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

2012-04-30 Thread Fitzcaraldo
Dan Did as you suggested and it installed cleanly. Sequence features:addUrl mvn:org.apache.activemq/activemq-karaf/5.5.1/xml/features features:addurl mvn:org.apache.cxf.karaf/apache-cxf/2.6.0/xml/features features:addurl mvn:org.apache.camel.karaf/apache-camel/2.9.2/xml/features features:instal

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

2012-04-30 Thread Fitzcaraldo
Trying that now... Thanks Dan. Much appreciated. Do you guys ever sleep? -- View this message in context: http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-install-problem-tp5675060p5677295.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

2012-04-30 Thread Daniel Kulp
May be ordering Try: 1) Karaf 2.2.7 with the jre.properties.cxf 2) Install the ActiveMQ 5.5.1 feature.xml 3) Install the CXF 2.6.0 feature.xml 4) Install the Camel 2.9.2 feature.xml Then install the various features themselves, likely in roughly the same order. ActiveMQ first, CXF next, th

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

2012-04-30 Thread Fitzcaraldo
I'm now trying to add ActiveMQ 5.5.1 to the above container (karaf 2.2.7, cxf 2.6.0, camel 2.9.2) features:addUrl mvn:org.apache.activemq/activemq-karaf/5.5.1/xml/features then features:install activemq-spring This fails with the message: Error executing command: Could not start bundle mvn:org

Re: Java heap space issue with Aggregation

2012-04-30 Thread Christian Müller
What's about this: public class GlobalAggrStratergy implements AggregationStrategy { private static final transient Logger log = LoggerFactory.getLogger(GlobalAggrStratergy.class); private int counter = 0; @Override public Exchange aggregate(Exchange oldExchange, Exchange newExc

Re: Consuming JMS messages and sending them to WS

2012-04-30 Thread Christian Müller
I would suggest something like below: from("jms://...") .to("xslt://...") .to(cxf://...); I'm not sure whether you are looking for the Camel XSLT component or not. Camel also supports XPath... The Camel CXF components supports HTTPS. Best, Christian On Mon, Apr 30, 2012 at 5:30 PM, saiya-ji

Re: A simple that was working before is not working now (2.10-SNAPSHOT)

2012-04-30 Thread soumya_sd
Tim wrote > > These "exhausted after ..." errors usually follow another exception. Can > you check the logs for that exception? > Tim, this is the only thing I see on the tomcat log. -- View this message in context: http://camel.465427.n5.nabble.com/A-simple-that-was-working-before-is-not-

Re: File Processor Not deleting the files

2012-04-30 Thread rdifrango
Thanks, in the meantime I'm going to see if I can get this running on a Unix box. -- View this message in context: http://camel.465427.n5.nabble.com/File-Processor-Not-deleting-the-files-tp5670301p5676398.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Java heap space issue with Aggregation

2012-04-30 Thread ebinsingh
Hi Claus, I aplogise for not understanding your comments (mutate the existing oldExchange). Please help me understand if you have sometime. I am doing as I did because of the following ... 1. I guess that the old exchange is null only once for every aggregation block (i.e Since I have the compl

Re: File Processor Not deleting the files

2012-04-30 Thread Claus Ibsen
On Mon, Apr 30, 2012 at 3:27 PM, rdifrango wrote: > So, I converted this over to Java and it is exhibiting the same behavior. > What did I do wrong: > > public class JavaSplitPerfProcessor { >        static class LineSplitter implements Processor { >                static final String format = "IN

Re: Using JdbcDataSourceName with Quickfix component

2012-04-30 Thread Marek Strejczek
Thank you for quick response and action. I see another problem with Quickfix engine configuration - if a setting (e.g. SETTING_JDBC_DS_NAME) is in a non-default section of the config file (i.e. [Session]) then it is not recognized by Camel. I guess it is because the SessionSettings.isSetting metho

Re: Question regarding loop in camel

2012-04-30 Thread Claus Ibsen
On Mon, Apr 30, 2012 at 5:03 PM, Hoang-Vu PHUNG wrote: > -- Forwarded message -- > From: Hoang-Vu PHUNG > Date: 2012/4/30 > Subject: Question regarding loop in camel > To: users-h...@camel.apache.org > > > Hi all, > > So far the loop construction in camel has a fixed number of ite

Fwd: Question regarding loop in camel

2012-04-30 Thread Hoang-Vu PHUNG
-- Forwarded message -- From: Hoang-Vu PHUNG Date: 2012/4/30 Subject: Question regarding loop in camel To: users-h...@camel.apache.org Hi all, So far the loop construction in camel has a fixed number of iterations. Is it possible some how to : 1. dynamically change the count of

Fwd: Question regarding loop in camel

2012-04-30 Thread Hoang-Vu PHUNG
-- Forwarded message -- From: Hoang-Vu PHUNG Date: 2012/4/30 Subject: Question regarding loop in camel To: users-h...@camel.apache.org Hi all, So far the loop construction in camel has a fixed number of iterations. Is it possible some how to : 1. dynamically change the count of

Re: Java heap space issue with Aggregation

2012-04-30 Thread ebinsingh
I am very sorry for not understanding this properly. Please accept my apologies if am wasting your time. I am totally missing something here. Below is the change I had made (Hopeing that this is what you meant by saying Mutate the old exchange). I am using StringBuilder so that the process os fas

Re: Logging from route not working

2012-04-30 Thread Nestor Urquiza
Thanks Christian. That is of course a good point. To test this works right away from the container I run the below and I got the messages as expected: from("quartz://group1/timer1?job.name=job1&stateful=true&trigger.repeatInterval=5000&trigger.repeatCount=0") .log(LoggingLevel.INFO, LOG_NA

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

2012-04-30 Thread Daniel Kulp
On Sunday, April 29, 2012 11:50:05 PM Fitzcaraldo wrote: > Good call. > > With karaf v2.2.7, cxf v2.6.0 and camel v2.9.2 - it installs cleanly. > This time the war didn't pull in an earlier version of cxf. If using CXF 2.6.0, you really need Camel 2.9.1 or newer (2.9.2 obviously preferred).

Re: New JMS connection being created for every message

2012-04-30 Thread weberj
No, the resource adapter is fine. I wrote a simple MDB that uses the RA and just echoes back a message to the reply Q. In the onMessage() call I create and close the connection. This MDB can handle 20 messages/s, whereas Camel handles only one. -- View this message in context: http://camel.46542

Re: Logging from route not working

2012-04-30 Thread Christian Müller
Did you send a message to your direct endpoint? Best, Christian On Mon, Apr 30, 2012 at 12:54 PM, Nestor Urquiza wrote: > I have changed the code by: > private static final String LOG_NAME = SampleRouteBuilder.class.getName(); > private static final Logger log = LoggerFactory.getLogger(LOG_NAME)

Re: File Processor Not deleting the files

2012-04-30 Thread rdifrango
So, I converted this over to Java and it is exhibiting the same behavior. What did I do wrong: public class JavaSplitPerfProcessor { static class LineSplitter implements Processor { static final String format = "INSERT INTO EVT_PERF ( EVT_PERF_ID, CRLTN_ID, USER_ID, APPN_

Re: file info lost in Exchange when passing through SEDA

2012-04-30 Thread Mark Webb
That was it. I fell into the trap of using getOut(). Thank you. On Mon, Apr 30, 2012 at 12:17 AM, Claus Ibsen wrote: > Hi > > Sounds like you do something wrong in your custom processor that > removes the message body. > See this FAQ > http://camel.apache.org/using-getin-or-getout-methods-on-e

Re: Logging from route not working

2012-04-30 Thread Nestor Urquiza
I have changed the code by: private static final String LOG_NAME = SampleRouteBuilder.class.getName(); private static final Logger log = LoggerFactory.getLogger(LOG_NAME); ... log.debug("Configuring dummy route"); from("direct:start").log(LoggingLevel.DEBUG, LOG_NAME, "Processing ${id}"); I still

Re: Logging from route not working

2012-04-30 Thread Łukasz Dywicki
Use .log(priority, category, message). In your case .log(priority, message) goes to category named as route id. If you have no id set on route it will be generated. Regards, Lukasz Wiadomość napisana przez Claus Ibsen w dniu 30 kwi 2012, o godz. 08:18: > Its the name such as you define with