users@glassfish.java.net

Re: Control MDB's Thread Pool

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Jun 2009 23:26:09 PDT

Actually, it should work with setting the bean-pool in sun-ejb-jar.xml. At least, it works for us. ;)

E.g.:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
<sun-ejb-jar>
    <enterprise-beans>
        <ejb>
            <ejb-name>SomeBean</ejb-name>
            <jndi-name>queue/SomeBean</jndi-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>0</pool-idle-timeout-in-seconds>
                        </bean-pool>
        </ejb>
    </enterprise-beans>
</sun-ejb-jar>


Cheers
Chris.
[Message sent by forum member 'chrjohn' (chrjohn)]

http://forums.java.net/jive/thread.jspa?messageID=349243