Re: Enrich message with data from dynamic sql query

2012-01-24 Thread Claus Ibsen
On Tue, Jan 24, 2012 at 7:53 PM, pvenini wrote: > Hi, I'm developing a info distribution system that gets an XML document with > data entries and then has to enrich it with nodes that are obtained from a > SQL database. The SQL query has to be generated using paramethers from data > inside the ori

Re: Access to AMQ Broker id in Exchange

2012-01-24 Thread Claus Ibsen
On Tue, Jan 24, 2012 at 11:04 PM, Fitzcaraldo wrote: > I am looking at building a logging/audit bean for messages that pass through > Camel. One of the things I would like to log is the name of the ActiveMQ > broker the message came from - which doesn't seem to be in any of the > JMSHeaders.  Is t

Re: Is asyncDelayedRedelivery really async?

2012-01-24 Thread Claus Ibsen
On Tue, Jan 24, 2012 at 8:22 PM, Masters, Bill wrote: > Hi Claus. > > I looked at http://camel.apache.org/asynchronous-routing-engine.html. > I'm trying to implement a route that reads a file and transfers it via SFTP. > If the destination is down for maintenance, I'd like to retry the transfer >

Re: JMX- queue size operation fails - Camel 2.9.0

2012-01-24 Thread Babak Vahdat
Type by the post before was a typo of me :-) Babak -- View this message in context: http://camel.465427.n5.nabble.com/JMX-queue-size-operation-fails-Camel-2-9-0-tp5233089p5429029.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Enrich message with data from dynamic sql query

2012-01-24 Thread Christian Müller
If you use the enrich EIP, you have to provide an Aggregation strategy to "merge" the original exchange (which contains the xml document) and the new exchange (the result of your database call if you have on). Where is the problem? Best, Christian On Tue, Jan 24, 2012 at 7:53 PM, pvenini wrote:

Re: JMX- queue size operation fails - Camel 2.9.0

2012-01-24 Thread Babak Vahdat
Hi, There're already some tests there: https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedBrowseableEndpointAsXmlTest.java https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedBrowseableEndpo

Re: JMX- queue size operation fails - Camel 2.9.0

2012-01-24 Thread vcheruvu
Hi Babak, Thank you for confirming the issue. I have raised a JIRA ticket as requested. Just out of curiosity is it possible to add TDD test case for ManagedBrowsableEndpoint? I do not see test classes for ManagedBrowsableEndpoint in the Camel trunk. I have seen several posts on Camel where JMX o

Access to AMQ Broker id in Exchange

2012-01-24 Thread Fitzcaraldo
I am looking at building a logging/audit bean for messages that pass through Camel. One of the things I would like to log is the name of the ActiveMQ broker the message came from - which doesn't seem to be in any of the JMSHeaders. Is there any way to access it through the Exchange? -- View this

Re: the namespace on the "IReportServiceExecuteRequest" element, is not a valid SOAP version

2012-01-24 Thread sram
True, but I do not understand why "out" is empty, whereas the same external endpoint when hit directly fetches response. - Expected from direct invocation outside camel route: http://schemas.xmlsoap.org/soap/envelope/";> http://services.reporting.mycomp.com/2011/10/outputs";

Re: JMS message routing, w/ header + message body

2012-01-24 Thread Rich Newcomb
Check out the camel bean binding docs [1]. With the Simple language you can do something like this: from("mms:topic:edaXmlTopic").bean(EventStoreService.class, "storeEventXmlToTCCache(${body}, ${header.someHeader})") 1. http://camel.apache.org/bean-binding.html On Tue, Jan 24, 2012 at 11

RE: Is asyncDelayedRedelivery really async?

2012-01-24 Thread Masters, Bill
Hi Claus. I looked at http://camel.apache.org/asynchronous-routing-engine.html. I'm trying to implement a route that reads a file and transfers it via SFTP. If the destination is down for maintenance, I'd like to retry the transfer later (say 15 minutes) up to 4 times but without blocking the thr

JMS message routing, w/ header + message body

2012-01-24 Thread phil swenson
I would like to set up a camel route that sends both the JMS header and the body to a java class. I see how to get this information independently, but not together….. here is my current working route, the body goes through fine: from("jms:topic:edaXmlTopic").beanRef("eventStoreService", "storeEve

Enrich message with data from dynamic sql query

2012-01-24 Thread pvenini
Hi, I'm developing a info distribution system that gets an XML document with data entries and then has to enrich it with nodes that are obtained from a SQL database. The SQL query has to be generated using paramethers from data inside the original XML document (they are properties of some of the no

Problems implementing a delay in a camel route

2012-01-24 Thread Mike Spelling
I'm using Camel v2.7.1 and trying to configure a route to apply a delay to incoming messages before passing them on to another queue. I've read about a similar problem at http://osdir.com/ml/users-camel-apache/2010-11/msg00134.html but the answer did not seem to work for me. I don't thi

Re: the namespace on the "IReportServiceExecuteRequest" element, is not a valid SOAP version

2012-01-24 Thread Claus Ibsen
Hi See this FAQ about getIn vs getOut http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html Basically check with hasOut() before calling getOut(). On Tue, Jan 24, 2012 at 4:25 PM, sram wrote: > With the help of this forum I was able to overcome my previous issue related > to ex

the namespace on the "IReportServiceExecuteRequest" element, is not a valid SOAP version

2012-01-24 Thread sram
With the help of this forum I was able to overcome my previous issue related to external webservice invocation. However, as a continuation to the same problem when a successful response is returned by this external endpoint, I encounter this error in my camel context. I try to Message out = exchan

Re: component lifecycle and cache

2012-01-24 Thread Babel
Thanks a lot for that accurate answer! Best regards -- View this message in context: http://camel.465427.n5.nabble.com/component-lifecycle-and-cache-tp4946235p5284189.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: component lifecycle and cache

2012-01-24 Thread Claus Ibsen
On Tue, Jan 24, 2012 at 4:18 PM, Babel wrote: > Thanks for your answer > > For more detail, I did not found how Camel manage its components. Are those > two assertion true? >  - a component is started when added to the camel context Yes, well its when you use the component for the first time its

Re: component lifecycle and cache

2012-01-24 Thread Babel
Thanks for your answer For more detail, I did not found how Camel manage its components. Are those two assertion true? - a component is started when added to the camel context - a component is destroy only when the camel context is stopped (and not for example when there is no more endpoint corr

Re: Is it possible to define Endpoints in a separate config file?

2012-01-24 Thread Tom Howe
Oh, I was under the impression the had to go inside the . Which items can go outside of and what must go inside ? On Tue, Jan 24, 2012 at 1:42 PM, Claus Ibsen wrote: > Hi > > If you have multiple XML files, then you can use xml:import or is it > xml:include (or whatever, google that). > > T

Re: JMX- queue size operation fails - Camel 2.9.0

2012-01-24 Thread Babak Vahdat
Hi I could reproduce the problem (on trunk) you've already reported which seems to be a bug to me in 2.9.0 Actually not only queueSize but also all other JMX operations given by ManagedBrowsableEndpoint are broken, like browseMessageAsXml, getCamelId etc. The problem is that it's the SedaEndpoint

Re: Is it possible to define Endpoints in a separate config file?

2012-01-24 Thread Claus Ibsen
Hi Another way is to define endpoints using property placeholders. And then have a .properties file per environment. People have done that for many years with Spring. So there is plenty of docs how to do that as well. And Camel in Action chapter 6 talks about this as well. And we got some pieces

Re: Is it possible to define Endpoints in a separate config file?

2012-01-24 Thread Claus Ibsen
Hi If you have multiple XML files, then you can use xml:import or is it xml:include (or whatever, google that). Then you can define Camel endpoints in those other XML files, using the with the Camel namespace. http://camel.apache.org/schema/spring"/> On Tue, Jan 24, 2012 at 1:14 PM, Tom Howe

RE: Is it possible to define Endpoints in a separate config file?

2012-01-24 Thread Daniel Baptista
Hi Tom, This might not be what you are looking for but have you seen this? http://camel.apache.org/ref.html I haven't used the above approach myself. Hope it helps. Dan. -Original Message- From: Tom Howe [mailto:tomh...@artcore.com] Sent: 24 January 2012 12:14 To: users@camel.apache.o

Is it possible to define Endpoints in a separate config file?

2012-01-24 Thread Tom Howe
I came across http://camel.apache.org/how-do-i-import-routes-from-other-xml-files.html It allows importing routes using . Is there something similar for Endpoints? I'd like to have separate files for each so that I can create tests that use the same Endpoints but different routes without having to

Re: SEDA vs VM component

2012-01-24 Thread Hervé BARRAULT
Hi, thanks for answer. Does it means, put camel-core.jar in lib directory when using it in Karaf ? Regards Hervé On 1/24/12, Jean-Baptiste Onofré wrote: > Hi Hervé, > > VM component extends the SEDA component. > > The difference is that the BlockingQueue is in the classloader tree > containing

Re: Writing the servicemix.log within custom java

2012-01-24 Thread Raul Kripalani
Take into account that the log level of your logging statements will affect whether they are displayed on servicemix.log or not. The default configuration sets the log level for the ROOT logger to INFO, meaning that only statements with severity equal or above INFO will actually appear on the log f

Re: SEDA vs VM component

2012-01-24 Thread Jean-Baptiste Onofré
Hi Hervé, VM component extends the SEDA component. The difference is that the BlockingQueue is in the classloader tree containing the camel-core.jar (system classpath). No impact on performance. Regards JB On 01/24/2012 11:34 AM, Hervé BARRAULT wrote: Hi, i have seen that there is too clos

SEDA vs VM component

2012-01-24 Thread Hervé BARRAULT
Hi, i have seen that there is too closed component which are SEDA and VM component. The difference is a SEDA component can communicate only in a camelContext. Is there some performance consideration ? Is it better to use multiple SEDA component in one camel context or use multiple VM component a

RE: Writing the servicemix.log within custom java

2012-01-24 Thread Omar Atia
Check the attached , how I'm sending log to Router.txt (daily logging). Everything should be logged into that file and will be renamed daily. -Original Message- From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] Sent: Tuesday, January 24, 2012 10:45 AM To: users@camel.apache.org Subj

Re: Writing the servicemix.log within custom java

2012-01-24 Thread Jean-Baptiste Onofré
Hi Gert, maybe I misunderstood the requirement. If the user want to create its own log file, he has to modify the org.ops4j.pax.logging.cfg file (to add its logger/appender). Else, if it's just to log into servicemix.log, as the rootLogger does it already, as you said, just logging (using sl

Re: Writing the servicemix.log within custom java

2012-01-24 Thread Gert Vanthienen
L.S., You probably don't have edit this configuration file at all - if you want, you can use it to e.g. create a separate log file for your own code or something, but if you just want to write to servicemix.log, everything should be good to go. Just use any of the logging frameworks you're famili