Hi

I have created unit tests in both pure Java and with Spring XML and
cannot reproduce any such behavior
http://svn.apache.org/viewvc?rev=951088&view=rev

Direct endpoints with same endpoint uri is not shared between multiple
CamelContext.

So double check on your end what you may do wrong or what you do differently.

On Thu, Jun 3, 2010 at 4:20 PM, ankelee <andreasasm...@gmail.com> wrote:
>
> Hi
>
>
> Running on Windows in JVM 1.6.
>
> I'm just loading it into a Spring container in Java main:
>
> private static String fileRessource = "isuite-client-context.xml";
>
> ClassPathXmlApplicationContext x = new
> ClassPathXmlApplicationContext(fileRessource);
>
>
>
>
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>>
>> Whats your runtime environment?
>> And how do you start your app?
>> Do you use OSGi or WAR etc?
>>
>>
>>
>>
>> On Thu, Jun 3, 2010 at 2:28 PM, ankelee <andreasasm...@gmail.com> wrote:
>>>
>>> Perhaps I'm doing it wrong.
>>>
>>> I load a Spring context xml file that has two imports as such.
>>>
>>> <import resource="common-beans.xml"/>
>>> <import resource="first-camelcontext.xml"/>
>>> <import resource="second-camelcontext.xml"/>
>>>
>>> The two camelcontext.xml files obviously holds a <camelContext> tag each.
>>>
>>> Each of contexts loads a identical route that they create their own
>>> instance
>>> of. These are configured differently with properties. Then I get a
>>> "direct
>>> endpoint cannot have more than 1 active consumer" when I run them at the
>>> same time. Maybe I don't really have two camelcontexts or?
>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Direct-route-not-shared-across-contexts--tp28766143p28766770.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Author of Camel in Action: http://www.manning.com/ibsen/
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Direct-route-not-shared-across-contexts--tp28766143p28768147.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to