-
1. Re: User Transaction not allowed for EJBs
jaikiran Jun 17, 2014 1:15 AM (in response to gantony)G Antony wrote:
"only session and message driven beans with bean-managed transaction demarcation are allowed to access UserTransaction"
That error message is clear enough, isn't it?
-
2. Re: User Transaction not allowed for EJBs
gantony Jun 17, 2014 1:26 AM (in response to jaikiran)Hi Jaikiran,
Thanks for the quick reply. Can you please give me some source where I can find how to make my EJBs session and/or message driven beans?
Thanks.
-
3. Re: User Transaction not allowed for EJBs
jaikiran Jun 17, 2014 1:40 AM (in response to gantony)G Antony wrote:
Can you please give me some source where I can find how to make my EJBs session and/or message driven beans?
The Java EE tutorial might be a good start http://docs.oracle.com/javaee/7/tutorial/doc/ejb-intro.htm#GIJSZ
-
4. Re: User Transaction not allowed for EJBs
gantony Jun 17, 2014 4:45 AM (in response to jaikiran)Jaikiran, I am using EJBs with the below configuration in ejb-jar.xml.
<session>
<ejb-name>ViewBean</ejb-name>
<home>ViewHome</home>
<remote>View</remote>
<session-type>Stateless</session-type>
<ejb-class>ViewBean</ejb-class>
</session>
and in jboss.xml
<session>
<ejb-name>ViewBean</ejb-name>
<jndi-name>ViewBean</jndi-name>
</session>
Can you please guide me if my bean can use UserTransaction methods?