users@glassfish.java.net

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

From: Jorge Campins <jrcampins_at_cantv.net>
Date: Thu, 12 Jun 2008 08:09:16 -0430

That leads me to another question.

It is my current understanding that Glassfish V2 implements EJB3 and
therefore Message Driven Beans are now controlled by the @MessageDriven
annotation at the bean, not by the sun-ejb-jar.xml.

I haven't been able to find a complete explanation of all possible
properties that can be configured using the @MessageDriven annotation . This
task seems to be closely related to the Application Server. I've tried
looking at Glassfish documentation and also at Sun Application Server 9
documentation. (I did found the mention to the sun-ejb-jar.xml but that was
at Sun Application Server 8 documentation and, as I said, I understand that
is EJB2).

Could you please point me to a good resource for @MessageDriven and/or
sun-ejb-jar.xml.documentation?

Thanks again.

Jorge

----- Original Message -----
From: "Ramesh Parthasarathy" <Ramesh.Parthasarathy_at_Sun.COM>
To: <users_at_glassfish.dev.java.net>
Sent: Thursday, June 12, 2008 7:47 AM
Subject: Re: (nbjrcg) Is it possible to control the number of concurrent
instances of a Message-Driven-Bean?


> 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
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>