Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction levels

 
Walter Vetrivel
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Transaction isolation levels in EJBs are:
a) set by the bean developer for bean-managed transactions.

b) set by the deployer for container-managed transactions.

c) specified to the method level.

d) specified to the class level only.

Multiple Select - Please select all of the correct answers (this question has 3 correct choices).

I think a,b,c are right answers
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Walter,
I think there is a problem with the question.
a) set by the bean developer for bean-managed transactions.
correct (actually it should be "can be set" and not "set")

b) set by the deployer for container-managed transactions.
correct (Same as above)
c) specified to the method level.
d) specified to the class level only.
Now for c or d check out the following :
In page 160 of the EJB spec 1.1 it states

In the last line and the point above it says "you can set the desirable isolation level programmatically in the enterprise beans methods using the resource manager specific api.
The point above this states
"The bean provider must take care when setting isolation level ...."

So in the end is it c or d ??
Question remains in my mind


[This message has been edited by Rahul Mahindrakar (edited April 24, 2001).]
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm pretty sure that you set isolation levels by method (or groups of methods) and not only at the class level. I would think c is correct.
John
 
Danl Thompson
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I recall the IBM mock exam covered EJB 1.0, as WebSphere only recently (3/01) got released for EJB 1.1 - In EJB 1.0 you could describe the transaction isolation level to the method level, so answers A,B and C would have been correct.
However, this ability was removed in the 1.1 spec and now they (Sun) say that the EJB spec does not provide and API for managing isolation level. For Entity Beans using container managed transactions the isolation level is managed by the container provider's tools. So it is a bad question, given the newer spec.
dan'l
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic