Hi, I am new to Tomee / OpenEJB.

I am trying to create a pool of 100 stateless local session beans. I have
the following in tomee.xml:

<Container id="foo" type="STATELESS">
    minSize = 100
    maxSize = 100
</Container>

In ejb-jar.xml:

<enterprise-beans>
    <session>
      <ejb-name>TestBean</ejb-name>
      <local-bean/>
      <ejb-class>com.foo.test.TestFooBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>
    </session>
  </enterprise-beans>

It appears that all 100 beans are properly instantiated.

However, when I attempt to access them, only three bean instances are being
provided by the container, even when the invoking code must wait to gain
access to an instance.

I have looked through and searched the documentation but haven't been able
to resolve the problem. Any insights would be greatly appreciated !

Best,
Stuart

Reply via email to