Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction attribure For complete BEAN !!! help needed!  RSS feed

 
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 transactional 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.(Like if i want that the Home interface methode are also in the transaction
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...
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perry
(1) Yes, you can use the * wildcard. See the EJB Specification for details.
(2) Yes, that's called the "Session Facade" pattern. See here for code.
However, I want to re-emphasize a point that Lasse and other bartenders have made before. ALL of these questions are covered in detail in any of the introductory books on EJB (such as Richard Monson-Haefel's, or Ed Roman's). I would STRONGLY advise you to go read one of those books, which will help you immensely.
Kyle
[ October 22, 2003: Message edited by: Kyle Brown ]
 
perry arora
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
thxs for the reply. and i woud like to confirm one thing that i am aware of the wild card* which we can use to specify the attribute for all the methods of the bean but
I wanna confirm one thing that if we will use this wild card in that case
Will all the home interface and the remote interface methods will also have their transactio attribute set or this * denotes all the methods(including the callback methods) which are defined inside the bean class
I know that the actual home and interface objects are created by the container and they implement the home and remote interface provided by us
!

But plzz confirm me that will the above includes all the methods of home and the remote interface and if not!!
Then how can we specify the attrbutes for home and remote interface.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
* means all of the methods on the remote interface and the home interface as well.
Kyle
 
perry arora
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thxs a lot
Mr. Kyle Brown's
i visited your home page and it was GREAT!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!