RE: [External] Re: Content Based Routing Feasibility Q

2017-09-01 Thread Jens J Parappallil
point with a matching url pattern can be used together to meet this requirement. This would be similar to a dispatcher pattern implementation. Cheers Jens -Original Message- From: Onder SEZGIN [mailto:ondersez...@gmail.com] Sent: Friday, September 01, 2017 12:26 PM To: users@camel.apache.org

Re: Camel CXF Payload mode

2016-06-07 Thread Jens
For a consumer endpoint in Payload mode, you only want the message payload (ie: body) without the SOAP stuff: String soap = "8545"; mabahma wrote > Hello everyBody > I'm struggling to make the folowing code to work.. > > > > CamelContext context = new DefaultCamelContext()

Re: Best Strategy to process a large number of rows in File

2016-04-15 Thread Jens Breitenstein
(35000/6/60/60). The processes responsible for reading the queue is single-threaded?? Jens Am 15/04/16 um 14:59 schrieb Michele: Hi, I spent a bit of time reading different topics on this issue, and I changed my route like this reducing the memory usage of about 300Mb

Re: Camel on OSGi - Get Bundle Name?

2016-03-30 Thread Jens
Thanks, both of you. I can't use the BlueprintBundleContext directly because I may not be running under Blueprint, but I'll figure something out from these leads. Claus, the common OsgiCamelContext idea sounds neat. Jens -- View this message in context: http://camel.465427.n5.

Re: Camel on OSGi - Get Bundle Name?

2016-03-30 Thread Jens
Ranx wrote > There are a variety of ways to do that but what is it you are after > actually? There may be easier ways to accomplish what you are after. Are > you using Blueprint? One mechanism is the BlueprintListener. You can > also get the information and inject it during instantiation and I

Camel on OSGi - Get Bundle Name?

2016-03-30 Thread Jens
Hi, I'm running Camel in an OSGi container (Karaf). I'd like to get hold of the OSGi bundle (or bundle name) that the route (or the context) belongs to in one of my processors. Is there a way to get that information somehow? Thanks, Jens -- View this message in context: http://ca

Re: Best Strategy to process a large number of rows in File

2016-03-29 Thread Jens Breitenstein
to track down memory usage and number of objects next Jens Am 29/03/16 um 20:11 schrieb Ranx: Jens, That's why I suggested setting the limit on the queue size. She has streaming turned on already so I believe that will block when the queue (SEDA or JMS) gets full. But 50,000 object

Re: Best Strategy to process a large number of rows in File

2016-03-29 Thread Jens Breitenstein
space is left. see: http://activemq.apache.org/producer-flow-control.html Jens Am 29/03/16 um 10:12 schrieb Michele: Hi, thanks a lot for your reply. I changed my route introducing Throttler Pattern like this

camel-cxf: Accessing Camel headers/properties in CXF interceptor on exception

2015-08-10 Thread Jens
t handling the exception in Camel? Thanks, Jens -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-Accessing-Camel-headers-properties-in-CXF-interceptor-on-exception-tp5770530.html Sent from the Camel - Users mailing list archive at Nabble.com.

aggregation and completionPredicate

2014-12-06 Thread Jens Breitenstein
s is my message before aggregation thus the "grouped_exchange" property is not set. So regardless what I try it's not possible for me to decide if completion is complete. Using "timeout" is no solution as I noticed a timeout can also occur in the middle of aggregation which leads to an invalid aggregation result (same keys spread accross two messages). Any idea to handle aggregation without timeout is welcome. Thanks in advance Jens

Re: Desktop applications

2014-07-14 Thread Jens Breitenstein
cache, a SQL DB, whatever) it's possible to analyze your problem without any further dependencies, right? So what are you trying to achieve with camel? Passing messages? In-VM or across multiple machines (like JMS?)? Jens Am 14.07.14 18:26, schrieb Jon Mithe: Hello, I'm learning a

Re: Fastest Data Holder

2014-04-30 Thread Jens Breitenstein
dditional code until performance really matters Jens Am 30.04.14 10:06, schrieb Muhammad Ichsan: Ah..! So, in the same JVM, using Java object simply uses an instance pointer. But if I'm going to produce into an ActiveMQ endpoint, I should make sure the MQ in the same JVM with vm transport o

Re: How to aggregate all messages into a single message?

2014-02-25 Thread Jens Breitenstein
keep track about the number of exchanges combined and the desired chunk size. Maybe you create your own aggregator derived from AbstractListAggregationStrategy and override this method: public Exchange aggregate(Exchange oldExchange, Exchange newExchange) ? Jens Am 25.02.14 10:11, schri

Re: Running a system command with Camel

2013-11-24 Thread Jens Breitenstein
Hi Philroc! if camel does not support it out of the box I would try to write my own camel processor (internally using java's ProcessBuilder to call a native application). Jens Am 24.11.13 16:06, schrieb Philippe de Rochambeau: Hello, I would like to pass arguments to a C applic

Re: Mocking CXF service with XSLT

2013-09-26 Thread Jens
Jens wrote > Hi, > > I'm trying to "implement" a CXF JAX-WS service using an XSL > transformation, ie. > > from("cxf:bean:...").to("xslt:..."); > > The CXF endpoint has a JMSConfiguration with a replyDestination attached >

Mocking CXF service with XSLT

2013-09-25 Thread Jens
n't sent back? Is there anything I need to do to "prepare" the response message for the CXF endpoint. Fwiw, I also tried converting the (string) transformation result to a CxfPayload but that didn't make any difference. Camel version used is 2.8.4. Thanks, Jens -- View this m

camel-cxf and synchronous vs. asynchronous endpoints

2013-05-27 Thread Jens
if the "router" endpoint is JMS as well (and therefore async by default) the route "hangs" after calling the "realEP" and never returns the response to the caller. Switching the "router" endpoint to synchronous operation as well seems to fix that, but is th

Re: ActiveMQ and WebSphereMQ

2012-10-24 Thread Jens
typically because you'll have packages like javax.jms on your classpath twice. Make sure there is only one, and you should be fine. Jens -- View this message in context: http://camel.465427.n5.nabble.com/ActiveMQ-and-WebSphereMQ-tp5721492p5721494.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Setting properties on Camel CXF consumer endpoints

2012-09-13 Thread Jens
plied anyway? I'm currently working around this by setting headers on the route which do get propagated to endpoint properties but that's somewhat less than ideal. Thanks, Jens -- View this message in context: http://camel.465427.n5.nabble.com/Setting-properties-on-Camel-CXF-consumer-endpoints-tp5719195p5719259.html Sent from the Camel - Users mailing list archive at Nabble.com.

Setting properties on Camel CXF consumer endpoints

2012-09-12 Thread Jens
nsumer side? Is there a way to avoid that? Thanks, Jens -- View this message in context: http://camel.465427.n5.nabble.com/Setting-properties-on-Camel-CXF-consumer-endpoints-tp5719195.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: doTry/doCatch with original message

2012-06-11 Thread Jens
Claus Ibsen-2 wrote > > On Wed, May 30, 2012 at 2:09 PM, Jens wrote: >> >> Jens wrote >>> >>> >>> Claus Ibsen-2 wrote >>>> >>>> Hi >>>> >>>> Have you tried enabling stream caching? >>>> h

Re: doTry/doCatch with original message

2012-05-30 Thread Jens
Jens wrote > > > Claus Ibsen-2 wrote >> >> Hi >> >> Have you tried enabling stream caching? >> http://camel.apache.org/stream-caching.html >> > > Yes, and I also tried converting the message to a String right away but > neither ch

Re: doTry/doCatch with original message

2012-05-29 Thread Jens
Claus Ibsen-2 wrote > > Hi > > Have you tried enabling stream caching? > http://camel.apache.org/stream-caching.html > Yes, and I also tried converting the message to a String right away but neither change helped. This is with Camel 2.8.3, by the way. Jens -- View this

doTry/doCatch with original message

2012-05-29 Thread Jens
Interestingly, using onException() does not seem to show the same problem. Thanks, Jens -- View this message in context: http://camel.465427.n5.nabble.com/doTry-doCatch-with-original-message-tp5713695.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using XML Catalog with XPath

2012-04-23 Thread Jens
Björn Bength wrote > > Have a look at this: > https://issues.apache.org/jira/browse/CAMEL-4666 > Thanks, I'm going to give that a good look when I get some time. Jens -- View this message in context: http://camel.465427.n5.nabble.com/Using-XML-Catalog-with-XPath-tp5651404p

Using XML Catalog with XPath

2012-04-19 Thread Jens
a way to use one short of writing my own XPathFactory. Thanks, Jens -- View this message in context: http://camel.465427.n5.nabble.com/Using-XML-Catalog-with-XPath-tp5651404p5651404.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Access the entire CXF Payload with XSLT

2012-03-16 Thread Jens
Kerry Barnes wrote > How can I get the full envelope to do my transformations against? Try from uri="cxf:bean:ControllerEndpoint?dataFormat=MESSAGE&allowStreaming=true" Regards, Jens -- View this message in context: http://camel.465427.n5.nabble.com/Access-the-entire-CXF-

RE: CXF endpoint's address dynamically modified?

2012-03-06 Thread Jens
ures and interceptors on the bean: > > cxf:myCXFBean?address=${in.headers.addressToSendTo} > Just use cxf:bean:myEp where myEP is a cxfEndpoint. Best, Jens -- View this message in context: http://camel.465427.n5.nabble.com/CXF-endpoint-s-address-dynamically-modified-tp3349431p5540241

RE: CXF endpoint's address dynamically modified?

2012-03-06 Thread Jens
ures and interceptors on the bean: > > cxf:myCXFBean?address=${in.headers.addressToSendTo} > Just use cxf:bean:myEp where myEP is a cxfEndpoint. Best, Jens -- View this message in context: http://camel.465427.n5.nabble.com/CXF-endpoint-s-address-dynamically-modified-tp3349431p5540239

RE: CXF endpoint's address dynamically modified?

2012-03-06 Thread Jens
ures and interceptors on the bean: > > cxf:myCXFBean?address=${in.headers.addressToSendTo} > Just use cxf:bean:myEp where myEP is a cxfEndpoint. Best, Jens -- View this message in context: http://camel.465427.n5.nabble.com/CXF-endpoint-s-address-dynamically-modified-tp3349431p5540238

RE: CXF endpoint's address dynamically modified?

2012-03-06 Thread Jens
ures and interceptors on the bean: > > cxf:myCXFBean?address=${in.headers.addressToSendTo} > Just use cxf:bean:myEp where myEP is a cxfEndpoint. Best, Jens -- View this message in context: http://camel.465427.n5.nabble.com/CXF-endpoint-s-address-dynamically-modified-tp3349431p5540235

RE: CXF endpoint's address dynamically modified?

2012-03-06 Thread Jens
ures and interceptors on the bean: > > cxf:myCXFBean?address=${in.headers.addressToSendTo} > Just use "cxf:bean:myEp" where myEP is a cxfEndpoint. Best, Jens -- View this message in context: http://camel.465427.n5.nabble.com/CXF-endpoint-s-address-dynamically-modified-tp33494

Re: Does onException not support multiple statements?

2011-09-02 Thread Jens
Claus Ibsen-2 wrote: > > On Thu, Sep 1, 2011 at 6:31 PM, Jens wrote: >> koseki nonuyuki wrote: >>> I encountered the same trouble when I got SOAP fault. >>> >>> The first processor in the onException route, I put >>> "exchange.getOu

Re: Does onException not support multiple statements?

2011-09-01 Thread Jens
to me that's what the onException handler should do already, though. Jens -- View this message in context: http://camel.465427.n5.nabble.com/Does-onException-not-support-multiple-statements-tp4381958p4759049.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CxfEndpoint data formats

2011-07-26 Thread Jens
uest] [myns:param1/] [myns:param2/] [/myns:request] it would be valid and it would be possible to use XPath etc. to work with it. Currently, I use a custom processor to convert the NodeList to such a document but it would be nice if there was a way to do this out of the box. Regards

CxfEndpoint data formats

2011-07-25 Thread Jens
s like XPath or XSLT to process PAYLOAD messages. Thanks, Jens -- View this message in context: http://camel.465427.n5.nabble.com/CxfEndpoint-data-formats-tp4631394p4631394.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Does onException not support multiple statements?

2011-05-12 Thread Jens
> #1-3 are correct, for #4, with the fault removed (or converted to an exception), the exception pipeline > will not be short-circuited... >From what I can see that doesn't seem to be true. As I said below I can make the use case work as intendedby shoving the exception into an exchange property.

Re: Does onException not support multiple statements?

2011-05-12 Thread Jens
>> Doesn't from("").handleFault() work either? > > Building on my previous example I'm assuming it should look like this? > ... > If so then no, that doesn't work, either. I think I should clarify. I'm not quite sure but I believe that what's happening might be this: 1. The CXF endpoint gets

Re: Does onException not support multiple statements?

2011-05-12 Thread Jens
to(ep). handleFault(); } If so then no, that doesn't work, either. >>> Jens, I think you can use this interceptor to convert faults to >>> exceptions...see >>> https://svn.apache.org/repos/asf/c

Re: Does onException not support multiple statements?

2011-05-12 Thread Jens
> Jens, I think you can use this interceptor to convert faults to > exceptions...see > https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/FaultRouteTest.java > this unit test > > basically, just add this to your context

Re: Does onException not support multiple statements?

2011-05-11 Thread Jens
> On Wed, May 11, 2011 at 9:03 AM, Jens wrote: >> >> I just built a small test case similar to your example and it does indeed >> work as expected. >> >> Unfortunately, my real world case doesn't. Even if I replace proc3 by a >> simple setBody("Hell

Re: Does onException not support multiple statements?

2011-05-11 Thread Jens
It looks to me like Camel doesn't properly clean up the exchange and still regards it as failed, therefore breaking out of the pipeline again. Any ideas what might be causing this? Jens -- View this message in context: http://camel.465427.n5.nabble.com/Does-onException-not-support

Does onException not support multiple statements?

2011-05-09 Thread Jens
nly the first step of the onException block gets called, and the result of this call is returned as my reply. Everything thereafter in the onException block is effectively ignored. This is using Camel 2.6.0. Am I doing something wrong? Thanks, Jens -- View this message in context: http://came