0
votes

I am working on weblogic 12.1.3 and ejb 3.1. I have stateless session beans and message driven beans.

There initial bean pool size is declared in weblogic-ejb-jar.xml as

   <ejb-name>CalculatorSession</ejb-name>
    <stateless-session-descriptor>
        <pool>
            <initial-beans-in-free-pool>20</initial-beans-in-free-pool>
        </pool>
    </stateless-session-descriptor>
    <enable-call-by-reference>true</enable-call-by-reference>

I dont want to have them in xml. Instead trying to configure them in StatelessSessionBean Java classes using Annotations. What Annotations are used to substitute beans pool size and call by reference tags ? Please let me know.

1

1 Answers

0
votes

Ejb Pooling is a topic that is not cover by the ejb 3.1 specification, thus, every Java EE compliant server can implement Ejb Pooling using different strategies.

Therefore:

a) you won't find any standar annotation (provided by the specification) related to Pooling.

b) you need to find out if your server offers the needed annotation.

As this table shows, Weblogic only allows to configure this property in a deployment descriptor file.