Re: inter-bundle camel routing

2014-04-10 Thread samslara
Thanks for the information. One other question, though, what about nmr? What are your thoughts on using NMR for interbundle routing? -- View this message in context: http://camel.465427.n5.nabble.com/inter-bundle-camel-routing-tp5750021p5750061.html Sent from the Camel - Users mailing list ar

inter-bundle camel routing

2014-04-09 Thread samslara
Hi, I have a question about how to route messages between OSGi bundles within the same container. If I have two bundles, B1 and B2, which have their own camel routes and I want them to send messages to each other, say from B1 to B2, what's the best practice approach on how to do this? So for ex

CamelBlueprintTestSupport and URL Handler Service

2014-02-28 Thread samslara
Hello, I'm trying to use CamelBlueprintTestSupport to simulate how we have our production setup as but i'm running into a problem. Our production setup makes use of OSGi URL Handler Service to handle certain URLs that are in our blueprint files however when using CamelBlueprintTestSupport I can'

Re: jetty minThreads/maxThreads in OSGi and multiple consumers

2014-02-25 Thread samslara
Perfect, thank you for the response. -- View this message in context: http://camel.465427.n5.nabble.com/jetty-minThreads-maxThreads-in-OSGi-and-multiple-consumers-tp5747706p5747964.html Sent from the Camel - Users mailing list archive at Nabble.com.

jetty minThreads/maxThreads in OSGi and multiple consumers

2014-02-20 Thread samslara
Hello, I have a question about how jetty minThreads/maxThreads settings work in an OSGi environment where there's multiple bundles consuming from the same port via the Camel jetty component. So if I have 2 bundles (bundle1, and bundle2) and they both are consuming from the same port (for example

Re: Camel Jetty component and overlapping urls when a consumer

2013-12-21 Thread samslara
I'm sorry you're right. Our 20+ routes do have matchOnUriPrefix such as: http://0.0.0.0:8080/...?matchUriOnPrefix=true"; /> In my original scenario but with this additional change what would happen? eg: route1: http://0.0.0.0:8080/?matchOnUriPrefix=true"/> ... route2: http://0.0.0.0:8080/applic

Re: Camel Jetty component and overlapping urls when a consumer

2013-12-20 Thread samslara
It was my understanding of the contrary. I'm currently using servicemix where there are 20+ bundles each with a camel context and each of those with routes starting with a jetty consumer (eg: ). We haven't had any problems with each of these camel routes listening on the common 8080 port. In fac

Camel Jetty component and overlapping urls when a consumer

2013-12-19 Thread samslara
Hello, I have a question about the behavior of the jetty component when in an OSGi environment (such as in ServiceMix). If I have two bundles each with a camel context where one has a route such as: http://0.0.0.0:8080/"/> ... and the other has a route such as: http://0.0.0.0:8080/application

event-driven consumer

2013-10-19 Thread samslara
Hi, I'm trying to implement an event-driven consumer where the event-driver is a custom library we have developed. I was looking at various documentation on the subject and I can't find any interface through which the event-driver notifies the consumer. From the following fusesource doc: http:

calling a non-"direct" consumer "directly"

2013-05-20 Thread samslara
Hello, I have a question. Suppose I have a route that has a consumer that is not "direct", say it's jetty. For example: http://localhost:8080/test"; /> now I want to invoke this route from another route but I don't want to go via http, rather I want to treat it as if it's direct con

Sending an exchange into a route mid way

2013-05-16 Thread samslara
Hello, I have a hypothetical question that's been bugging me. Is it possible to send an exchange into a route mid way? So to elaborate I have a route R1 that does something simple like (pseudo camel xml): Now I have this other route R2 that somewhere down the line (in P4) wants

interceptFrom with a new consumer

2013-05-13 Thread samslara
Hello, I have a problem which I'm unsure on how to solve. So I have a route, say R1, that's pretty simple: http://localhost:8080/test"/> Now someProcessor may take a long time to return, so I want to alter the route's behavior such that it's more "async". What I mean by this is I want

Re: interceptStrategies and wiretap

2013-04-05 Thread samslara
That route wasn't good. Something more like http://localhost:8080/something"; /> -- View this message in context: http://camel.465427.n5.nabble.com/interceptStrategies-and-wiretap-tp5730432p5730434.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: interceptStrategies and wiretap

2013-04-05 Thread samslara
Sorry, forgot to mention that I'm running on ServiceMix 4.3.0 and Camel 2.6.0 using blueprint. -- View this message in context: http://camel.465427.n5.nabble.com/interceptStrategies-and-wiretap-tp5730432p5730433.html Sent from the Camel - Users mailing list archive at Nabble.com.

interceptStrategies and wiretap

2013-04-05 Thread samslara
Hello, I've been playing around with interceptStrategies and recently have been running into problems with wiretaps. I'm trying to run some logic within the same thread as the wiretap's referenced processor (it's a custom defined component). The logic is to write into the slf4j MDC, which is th

custom MDCUnitOfWork

2013-03-30 Thread samslara
Hello, I'm currently looking to implement logic very similar to MDCUnitOfWork, the main difference being putting custom values into the MDC. How would I go about doing this? -- View this message in context: http://camel.465427.n5.nabble.com/custom-MDCUnitOfWork-tp5730107.html Sent from the C

activemq: reference to connection

2012-12-03 Thread samslara
Hello, Is there a way from within a Processor to get a reference to the connection that was used to connect to the broker to fetch the jms message? For example in the given route: Is there a way from within aBean's code to get a reference to the connection used from the activemq consumer?

Re: Message.copy() not exactly a copy

2011-09-22 Thread samslara
Ah you're right. But when I do the following at some point after invoking a service with HttpComponent: exchange.getIn().getBody(String.class); it returns a String ok, which is the response of the service. But if I instead do: exchange.getIn().copy().getBody(String.class); this returns null.

Message.copy() not exactly a copy

2011-09-21 Thread samslara
Hi, I currently have a camel route that makes use of HttpComponent. After calling a service and getting a String back in the body I tried to do a Message.copy(), with the Message being from exchange.getIn(). The original Message body is of type String but the new Message body isn't of type Stri

Re: obtaining a reference to X509Certificate from jetty:https

2011-04-26 Thread samslara
I've figured it out and for anyone who's interested: from the Exchange you can get the HttpServletRequest via: exchange.getIn().getBody(HttpServletRequest.class) and from there get the X509Certificate via: request.getAttribute("javax.servlet.request.X509Certificate") -- View this message in co

obtaining a reference to X509Certificate from jetty:https

2011-04-25 Thread samslara
Hello, Is it possible to obtain the request java.security.cert.X509Certificate reference or equivalent from an endpoint such as: https://..."/>? The purpose is to extract some of the X500 Principal information out for use later on. -- View this message in context: http://camel.465427.n5.nabble

Re: tcp proxy route

2011-04-25 Thread samslara
Hello, More great information but I wasn't very clear about my followup, sorry. I wanted to know if there's a way to do non-plaintext tcp proxy connection via a camel route, ssl with just an arbitrary example. So when I tried to use the previous suggestion from Scott Cranton's blog for a came

Re: tcp proxy route

2011-04-23 Thread samslara
Hello, thanks for the great information. One follow up question though, if I wanted to tunnel an ssl connection through a Camel route, either though Netty or Mina, would I need to implement a special encoder/decoder or is there something already supplied to do this? Or is my line of thought compl

tcp proxy route

2011-04-22 Thread samslara
Hello, I'm wondering if there's a way to create a route that acts like a tcp proxy in Camel. Maybe something along the lines of: from("netty:tcp://0.0.0.0:5050").to("netty:tcp://somewhere:5051") or maybe even using MINA that just forwards data along. -- View this message in context: http://