prohibited method

G

gk

what does it mean when we say ,
in EJB session bean
"The bean instance calls a prohibited method of its session context."

what does it mean by prohibited method ? who prohibits ? how can we
set this prohibition ?

thanks
 
J

JanTheKing

Hope this helps..

http://docs.sun.com/source/817-2175/detrans.html#17654

Methods Not Allowed in Container-Managed Transactions

For container-managed transactions, you should not invoke any method
that might interfere with the transaction boundaries set by the
container. Prohibited methods are:

* The commit, setAutoCommit, and rollback methods of
java.sql.Connection

* The getUserTransaction method of javax.ejb.EJBContext

* Any method of javax.transaction.UserTransaction

You may, however, use these methods to set boundaries in bean-managed
transactions.
 
G

gk

JanTheKing said:
Hope this helps..

http://docs.sun.com/source/817-2175/detrans.html#17654

Methods Not Allowed in Container-Managed Transactions

For container-managed transactions, you should not invoke any method
that might interfere with the transaction boundaries set by the
container. Prohibited methods are:

* The commit, setAutoCommit, and rollback methods of
java.sql.Connection

* The getUserTransaction method of javax.ejb.EJBContext

* Any method of javax.transaction.UserTransaction

You may, however, use these methods to set boundaries in bean-managed
transactions.

thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top