• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction Attributes at EJB Level

 
perry arora
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI FRIENDS!

Need you expert help. on two issues..
(1)First about transaction,
In case ENtity beans while specifying the trabsactional attributes we can specify them either for each and every method for we can specify them for the entire bean'
Can any helpme with the code for specifying the transactional attributes for the entire EJB.
for a specific method we do that with the <method> </method > elements but i dont know how to do that for the entire bean.
(2) Is is advisable to acesss the ENtity beans remotely from a Session bean ,. as far as i have seen the session bean are only coded to reduce the complex data base transactions,
which are among different entity beans.
Plz i will be waiting for your suggestion! and cOde ALso..
Regards...
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...for a specific method we do that with the <method> </method > elements but i dont know how to do that for the entire bean.
You use the same <method> element but give a "*" for the method name.
Is is advisable to acesss the ENtity beans remotely from a Session bean
These days the recommendation is to access entity beans through local interfaces.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!