users@glassfish.java.net

Re: (nbjrcg) Is it possible to control the number of concurrent instances of a Message-Driven-Bean?

From: Ramesh Parthasarathy <Ramesh.Parthasarathy_at_Sun.COM>
Date: Thu, 12 Jun 2008 12:17:36 +0000

Hi,
        Please configure it in sun-ejb-jar.xml (under <ejb>). Yes, the
information is per MDB and will not affect other MDBs in your application

Thanks
-Ramesh

Jorge Campins wrote:
> Hi Ramesh,
>
> I'm really new to JMS. I'm trying to implement a fork-and-join pattern.
> I thought the easiest way to join the answers was to store them as they
> arrive and process them all when the last one arrives. I also thought
> the easiest way to do this was to have a special queue for those
> messages and make sure they were retrieved one by one.
>
> Where do I set the pool size for an MDB and just for that MDB? I have
> other MDBs in the same project and I don't want them to have a single
> thread pool.
>
> Regards,
>
> Jorge
>
> ----- Original Message ----- From: "Ramesh Parthasarathy"
> <Ramesh.Parthasarathy_at_Sun.COM>
> To: <users_at_glassfish.dev.java.net>
> Sent: Thursday, June 12, 2008 7:19 AM
> Subject: Re: (nbjrcg) Is it possible to control the number of concurrent
> instances of a Message-Driven-Bean?
>
>
>> Hi Jorge,
>> Do you want only one MDB instance to consume from a queue at any
>> point. And your MDB is deployed on a standalone instance (or DAS).
>> Have you tried setting the max-pool-size to 1.
>>
>> <bean-pool>
>> <steady-pool-size>1</steady-pool-size>
>> <resize-quantity>1</resize-quantity>
>> <max-pool-size>1</max-pool-size>
>> </bean-pool>
>>
>> Please let me know if i have mis-understood your question.
>>
>> Thanks
>> -Ramesh
>>
>> Jorge Campins wrote:
>>> *From:* Jorge Campins <mailto:jrcampins_at_cantv.net>
>>> *To:* users_at_glassfish.dev.java.net <mailto:users_at_glassfish.dev.java.net>
>>> *Sent:* Thursday, June 12, 2008 6:55 AM
>>> *Subject:* (nbjrcg) Is it possible to control the number of
>>> concurrent instances of a Message-Driven-Bean?
>>>
>>> Is it possible to control the number of concurrent instances of a
>>> Message-Driven-Bean?
>>>
>>> In particular I would like to avoid messages from a specific queue
>>> to be retrieved in parallel by 2 or more instances of the
>>> corresponding MDB.
>>>
>>> Thanks.
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>