Re: Context Component issue

2016-04-28 Thread Aaron Birkland
Hi, I noticed a recent jira comment that indicates the context component is deprecated[1] I couldn't find anything in the code or documentation that indicates deprecation. Is there now a better alternative for the kinds of use cases the context component supported? [1]

Context component with response reply protocol:how to handle timeout in onCompletion with exception?

2016-04-25 Thread Sven Bauhan
wait for a response before sending another segment. To use this implementation as a library it is implemented in a camel context component. The sender has to wait for responses and if no response is received it has to react after a given timeout time. So I tried to implement this behaviour

Re: Context Component issue

2015-10-08 Thread Antonin Stefanutti
address space but for the lifecycle of the endpoint as well. >> >> You can create a JIRA ticket and I'll review / test your patch. >> >> Antonin >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Context-Component-issue-tp5770975p5772383.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >>

Re: Context Component issue

2015-10-07 Thread Aaron Birkland
tti wrote: > Hi Aaron, > > I've been able to reproduce your issue and your analysis is correct. > > The Endpoint returned by the context component has its reference to its > original black-box Camel context overwritten when the 'parent' context adds > it to its list

Re: Context Component issue

2015-10-07 Thread Aaron Birkland
Hi Antonin, Thank you very much. Part of the patch involves having the Context component mint 'exported' Endpoints that have noops for several operations that looked dangerous to me (like setCamelContext). I'll create an issue this evening, and place the fixes in a cloned repos

Re: Context Component issue

2015-10-07 Thread astefanutti
Hi Aaron, I've been able to reproduce your issue and your analysis is correct. The Endpoint returned by the context component has its reference to its original black-box Camel context overwritten when the 'parent' context adds it to its list of service. There is a clear design

Re: Context Component issue

2015-10-06 Thread Aaron Birkland
Hi All, I had some time to dig into this issue, and it appears more severe than I had initially thought. Right now, there is *no* isolation between endpoint names between camel contexts. In fact, using the context component in its current state results brings *local* endpoint names from

Context Component issue

2015-08-25 Thread Aaron Birkland
Hello, I'm having a strange problem with the camel context component and think it may be a bug. I've created a unit test that currently fails: https://gist.github.com/birkland/1b12261521dd5d5c79ef Basically, I'm trying create a 'parent' camel context that routes a m

RE: context component with seda options

2014-02-21 Thread Cohen, Bruce
Thanks for the speedy response Claus. I gravitated towards using the combination of SEDA and context component because I liked the pseudo-namespace provided by referencing the endpoint using the context in which it was defined, i.e. instead of But if it isn't possible, I'

Re: context component with seda options

2014-02-21 Thread Claus Ibsen
Hi That is what the vm component is for http://camel.apache.org/vm Or the direct-vm http://camel.apache.org/direct-vm On Fri, Feb 21, 2014 at 3:24 PM, Cohen, Bruce wrote: > I'm trying to use the context component with SEDA endpoints. My goal is to > be able to define a SEDA endp

context component with seda options

2014-02-21 Thread Cohen, Bruce
I'm trying to use the context component with SEDA endpoints. My goal is to be able to define a SEDA endpoint in one context and have multiple consumers in other contexts consuming from it, is this possible? I have the following two Spring DSL XML configurations: inne

Re: Incomplete Registry interface [was: base class for context component?]

2013-03-18 Thread Claus Ibsen
ed to create a camel context component to put a route in a > black box. But I want to put this context component into a library and hide > it behind an API. > > Starting point was the description in http://camel.apache.org/context.html > and the detailed example in > http://svn.

Incomplete Registry interface [was: base class for context component?]

2013-03-18 Thread Sven Bauhan
Hi, I think for the interface Registry a method bind() should be defined. Here comes the explanation why: Finally I managed to create a camel context component to put a route in a black box. But I want to put this context component into a library and hide it behind an API. Starting point

Re: base class for context component?

2013-03-14 Thread Taariq Levack
are >> asking about. >> > I did not mean to create a new implementation of DefaultCamelContext. I > want to create a class for a context component. > > > >> And the docs you referred to discuss this, and it's the example for how to >>

Re: base class for context component?

2013-03-13 Thread Sven Bauhan
context component. And the docs you referred to discuss this, and it's the example for how to do so. You can copy that sample and redefine it like this for example... DefaultCamelContext fooBlackBox = new DefaultCamelContext(registry); fooBlackBox.setName("fooBlackBox"); fooBlackBo

Re: base class for context component?

2013-03-13 Thread Taariq Levack
issing for me, is how I can put it in a running context. > Is there a small example that I could investigate to understand how it > works? > > Thanks, Sven > > > On 03/11/13 14:45, Taariq Levack wrote: > >> Hi Sven >> >> Perhaps you've misunderstoo

Re: base class for context component?

2013-03-13 Thread Sven Bauhan
there a small example that I could investigate to understand how it works? Thanks, Sven On 03/11/13 14:45, Taariq Levack wrote: Hi Sven Perhaps you've misunderstood the following... "Defining the context component" In this context(excuse me), what's meant is a bean definit

Re: base class for context component?

2013-03-11 Thread Taariq Levack
Hi Sven Perhaps you've misunderstood the following... "Defining the context component" In this context(excuse me), what's meant is a bean definition. You should just use the DefaultCamelContext to define your own context, with it's own name as this one is blackbox, and

Re: base class for context component?

2013-03-11 Thread Sven Bauhan
On 03/09/13 20:40, Henryk Konsek wrote: Hi Sven, I'm trying to build my own context component as described in http://camel.apache.org/context.html. Actually Context Component is ready to use out of the box. You don't need to create your own. Or if you have to, please share w

Re: base class for context component?

2013-03-09 Thread Henryk Konsek
Hi Sven, > I'm trying to build my own context component as described in > http://camel.apache.org/context.html. Actually Context Component is ready to use out of the box. You don't need to create your own. Or if you have to, please share with us the reasoning behind this nee

base class for context component?

2013-03-08 Thread Sven Bauhan
Hi, I'm trying to build my own context component as described in http://camel.apache.org/context.html. I wonder if there is a base class or interface I can use for MyContextComponent. I saw there exists org.apache.camel.Component. But the method createEndpoint() I have to implement doe

Re: Context component not found during build

2012-10-19 Thread Willem jiang
/confluence/display/CAMEL/Context?focusedCommentId=30739765&#comment-30739765> > > > Best regards, > Robert > > > Willem.Jiang wrote > > Hi Robert, > > > > It is not a bug of camel. > > > > You need to make sure the context componen

Re: Context component not found during build

2012-10-19 Thread Robert
Context?focusedCommentId=30739765&#comment-30739765> Best regards, Robert Willem.Jiang wrote > Hi Robert, > > It is not a bug of camel. > > You need to make sure the context component can load the sub context > first. > So we need add the depends-on attribute like thi

Re: Context component not found during build

2012-10-19 Thread Willem jiang
Hi Robert, It is not a bug of camel. You need to make sure the context component can load the sub context first. So we need add the depends-on attribute like this http://localhost:9090/foo"/> http://foo.in)"/> http://foo.in)"/> -- Willem Jiang Red Hat, Inc

Re: Context component not found during build

2012-10-19 Thread Willem jiang
g to build the (test) project. And I ran the > application with the 'mvn camel:run' command using this (predefined) entry > in the pom.xml: > > > org.apache.camel > camel-maven-plugin > 2.10.1 > > > Do you think using the camel-java archetype would make any d

Re: Context component not found during build

2012-10-18 Thread Robert
he pom.xml: org.apache.camel camel-maven-plugin 2.10.1 Do you think using the camel-java archetype would make any difference if the context component is found? It looks like Maven finds the dependency and it's just not picked up during route construction. If

Re: Context component not found during build

2012-10-18 Thread Willem jiang
mel can't find the context component [1] in my application. My application > is based on the Camel java maven archetype. I am declaring the camel-context > maven dependency. What am I doing wrong? > > Here is my route declaration > > > > http://localhost:9090/foo&quo

Context component not found during build

2012-10-18 Thread Robert
Hi, camel can't find the context component [1] in my application. My application is based on the Camel java maven archetype. I am declaring the camel-context maven dependency. What am I doing wrong? Here is my route declaration http://localhost:909

Re: Context Component and Transactions...

2012-04-20 Thread Christian Müller
ent thread), the route in your context component will not be part of this transaction. from("vm:in").transacted().to(...).to("vm:out"); make no sense, because the "vm" component doesn't support transactions, unless your to(...) talks to a transacted resource. Bes

Context Component and Transactions...

2012-04-20 Thread James Carman
We are planning to write a bunch of camel contexts which contain routes using only local endpoints (the vm component). To get everyone talking to one another, we'll create a "wiring" context which connects the dots. I was wondering how this will work with transactions. Suppose I have a few routes

Using the Context Component in ServiceMix...

2012-04-20 Thread James Carman
our case). I'm trying to use the context component (http://camel.apache.org/context.html), but I'm having some troubles. When I try to refer to the local endpoints in other bundles, Camel complains saying it can't find a component which supports the scheme "context". Yes, I

Re: context component

2011-03-11 Thread Ashwin Karpe
Hi, The options are related to the "direct" or "seda" endpoint options that you are invoking using the context component. The options are not for specialization of the context component itself. Hope this hel

context component

2011-03-11 Thread Tim
The text of http://camel.apache.org/context.html says: "You can append query options to the URI in the following format, ?option=value&option=value&..." However, it doesn't explain how to get to those parameter's from your context. Looking through the code, I don't even see it passing those param