[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Specify container configuration in EJB3 annotation

Asked by lizzzard in Jboss Application Server

Tags: EJB3, EJB3 Annotation

Hi,

In our ejb2.1 deployment descriptor we specified a container to enforce callbyvalue (see code). Now, we want to step up to EJB3, but I cannot find an annotation alternative for this.
If I still try to use the deployment descriptor, the deployer just seems to ignore the tag.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
ejb2.1 jboss.xml snippet:
...    
<session>
      <ejb-name>SDefinitionManager</ejb-name>
      <jndi-name>SDefinitionManager</jndi-name>
	  <configuration-name>CallByValue Stateless SessionBean</configuration-name>      
    </session>
...
 
I tried this for ejb3 (jndi name is specified through annotation)
...    
<session>
      <ejb-name>SDefinitionManager</ejb-name>
	  <configuration-name>CallByValue Stateless SessionBean</configuration-name>      
    </session>
...
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625