users@glassfish.java.net

Re: (nbjrcg) Is it possible to control the number of concurrent instances o

From: Jorge Campins <jrcampins_at_cantv.net>
Date: Fri, 27 Jun 2008 10:19:41 -0430

Abel,

This is how I solved my problem. I followed Ramesh Parthasarathy's advice
and I still use the @MessageDriven annotation at the bean but also added
this at
the sun-ejb-jar:

    <ejb>
      <ejb-name>RequestMessageBean</ejb-name>
        <bean-pool>
           <steady-pool-size>1</steady-pool-size>
           <resize-quantity>1</resize-quantity>
           <max-pool-size>1</max-pool-size>
           <pool-idle-timeout-in-seconds>600</pool-idle-timeout-in-seconds>
        </bean-pool>
    </ejb>

You should adjust the parameters according to your needs. I was trying to
"serialize" the processing of a particular kind of messages so I send those
messages to a special queue and set max-pool-size to 1.

I hope this can help.

----- Original Message -----
From: <glassfish_at_javadesktop.org>
To: <users_at_glassfish.dev.java.net>
Sent: Thursday, June 26, 2008 6:47 AM
Subject: Re: (nbjrcg) Is it possible to control the number of concurrent
instances o


> Hi, could somebody explain us how to configure pool size per MDB in EJB3,
> under Glassfish V2UR1?
> Is there any propietary annotation?
> sun-ejb-jar.xml is just for EJB 2.1, isn't it?
>
> Thanks,
> Abel.
> [Message sent by forum member 'abelmj' (abelmj)]
>
> http://forums.java.net/jive/thread.jspa?messageID=282737
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>