For example, as we configure the number of MDB instances listening to a JMS Queue in ejb 3 as given below,
@ActivationConfigProperty( propertyName = "maxSession", propertyValue = "someNumber")
I want to know how it can be done in EJB 2.1 Jboss 4.
Currently i use xDoclet for generating the ejb-jar.xml for the MDB and my current declaration is as follows.
* <!-- begin-xdoclet-definition -->
* @ejb.bean name="myEjb"
* acknowledge-mode="Auto-acknowledge"
* destination-type="javax.jms.Queue"
* what to use for max Session??
this results in activation configs in ejb-jar.xml as follows
<activation-config>
<activation-config-property>
<activation-config-property-name>destinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>acknowledgeMode</activation-config-property-name>
<activation-config-property-value>Auto-acknowledge</activation-config-property-value>
</activation-config-property>
</activation-config>