You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by leo ks <l6...@gmail.com> on 2015/02/24 14:32:34 UTC

relationship between ActiveMQResourceAdapter, javax.jms.ConnectionFactory and MDB InstanceLimit

Hi

I am trying to understand how embedded JMS works in TomEE.

If I want max X simultaneous MDBs, I set at tomee.xml container type
"MESSAGE" InstanceLimit = X.

Do I also have to set at tomee.xml a resource
type="javax.jms.ConnectionFactory" PoolMaxSize to X as well?

And also do I have to set at tomee.xml a resource
type="ActiveMQResourceAdapter" ThreadPoolSize to X too?

thanks

K.

Re: relationship between ActiveMQResourceAdapter, javax.jms.ConnectionFactory and MDB InstanceLimit

Posted by Romain Manni-Bucau <rm...@gmail.com>.
you can depend as well of your usage

here are some properties (not all but most important one) related to
AMQ props: http://activemq.apache.org/activation-spec-properties.html


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-02-24 14:56 GMT+01:00 leo ks <l6...@gmail.com>:
> thanks
>
> just forgot, also, inside the MDB, should I set
> @ActivationConfigProperty(maxSessions=X) too?
>
>
>
> 2015-02-24 10:49 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
>> Hi
>>
>> seems right yes. You dont have to do it but that's the parameters you
>> can adjust to get the behavior you want
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau
>> http://www.tomitribe.com
>> http://rmannibucau.wordpress.com
>> https://github.com/rmannibucau
>>
>>
>> 2015-02-24 14:32 GMT+01:00 leo ks <l6...@gmail.com>:
>> > Hi
>> >
>> > I am trying to understand how embedded JMS works in TomEE.
>> >
>> > If I want max X simultaneous MDBs, I set at tomee.xml container type
>> > "MESSAGE" InstanceLimit = X.
>> >
>> > Do I also have to set at tomee.xml a resource
>> > type="javax.jms.ConnectionFactory" PoolMaxSize to X as well?
>> >
>> > And also do I have to set at tomee.xml a resource
>> > type="ActiveMQResourceAdapter" ThreadPoolSize to X too?
>> >
>> > thanks
>> >
>> > K.
>>

Re: relationship between ActiveMQResourceAdapter, javax.jms.ConnectionFactory and MDB InstanceLimit

Posted by leo ks <l6...@gmail.com>.
thanks

just forgot, also, inside the MDB, should I set
@ActivationConfigProperty(maxSessions=X) too?



2015-02-24 10:49 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> Hi
>
> seems right yes. You dont have to do it but that's the parameters you
> can adjust to get the behavior you want
>
>
> Romain Manni-Bucau
> @rmannibucau
> http://www.tomitribe.com
> http://rmannibucau.wordpress.com
> https://github.com/rmannibucau
>
>
> 2015-02-24 14:32 GMT+01:00 leo ks <l6...@gmail.com>:
> > Hi
> >
> > I am trying to understand how embedded JMS works in TomEE.
> >
> > If I want max X simultaneous MDBs, I set at tomee.xml container type
> > "MESSAGE" InstanceLimit = X.
> >
> > Do I also have to set at tomee.xml a resource
> > type="javax.jms.ConnectionFactory" PoolMaxSize to X as well?
> >
> > And also do I have to set at tomee.xml a resource
> > type="ActiveMQResourceAdapter" ThreadPoolSize to X too?
> >
> > thanks
> >
> > K.
>

Re: relationship between ActiveMQResourceAdapter, javax.jms.ConnectionFactory and MDB InstanceLimit

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

seems right yes. You dont have to do it but that's the parameters you
can adjust to get the behavior you want


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-02-24 14:32 GMT+01:00 leo ks <l6...@gmail.com>:
> Hi
>
> I am trying to understand how embedded JMS works in TomEE.
>
> If I want max X simultaneous MDBs, I set at tomee.xml container type
> "MESSAGE" InstanceLimit = X.
>
> Do I also have to set at tomee.xml a resource
> type="javax.jms.ConnectionFactory" PoolMaxSize to X as well?
>
> And also do I have to set at tomee.xml a resource
> type="ActiveMQResourceAdapter" ThreadPoolSize to X too?
>
> thanks
>
> K.