camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" <claus.ib...@gmail.com>
Subject Re: DefaultMessageListenerContainer threading issue - possible false alert
Date Mon, 15 Dec 2008 14:09:11 GMT
Hi

Ah yeah of course. If you dont define any spring bean with the id=jms
then Camel will use the default component and thats the
org.apache.camel.component.jms.JmsComponent and it's default
configuration.

So you have to override this by adding your own jms bean id, as you did.


On Mon, Dec 15, 2008 at 3:05 PM, efender <eric+nabble@fender.net> wrote:
>
> I tried using org.apache.activemq.camel.component.ActiveMQComponent and that
> had the same issue.  I've got it fixed by configuring like this:
>
>        <bean id="camelThreadPool"
> class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
>                <property name="corePoolSize" value="1"/>
>                <property name="maxPoolSize" value="1"/>
>        </bean>
>
>        <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
>            <property name="connectionFactory" ref="jmsCachingConnectionFactory"/>
>            <property name="taskExecutor" ref="camelThreadPool"/>
>        </bean>
>
> And referencing all my JMS endpoints as jms:queue:blahblah
>
>
> Claus Ibsen-2 wrote:
>>
>>
>> And you are using the JmsComponent. But for ActiveMQ we encurage you
>> to use it's component
>> http://activemq.apache.org/camel/activemq.html
>>
>> It's an extension for JmsComponent where it has properly configured it
>> on the ActiveMQ platform.
>>
>> So use this class:
>> org.apache.activemq.camel.component.ActiveMQComponent
>>
>> --
>>
>> /Claus Ibsen
>> Apache Camel Committer
>> Blog: http://davsclaus.blogspot.com/
>>
>>
>
> --
> View this message in context: http://www.nabble.com/DefaultMessageListenerContainer-threading-issue-tp18811410s22882p21014555.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 

/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/

Mime
View raw message