• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What's true about client's view of security?

 
Devender Thareja
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFEJB: Final mock exam q 18, page 664

Transactional requests within a single transaction can not arrive from multiple clients

According to book it is not right. I think it is.
I would appriciate any quick comments on this.
 
Sankar Subbiramaniam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why do you think it is not right ?

See EJB2.0 specs 21.5 (last bullet), page 450
 
Devender Thareja
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Transactional requests within a single transaction can not arrive from multiple clients.

May be I am not able to think straight. The above sentence sounds right to me. A single transaction can involve only one client. Isn't that right?
The book says it's wrong.
[ December 29, 2005: Message edited by: Devender Thareja ]
 
Devender Thareja
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sankar. I read the bullet you mentioned:

If transactional requests within a single transaction arrive from multiple clients (this could happen if there are intermediary objects or programs in the transaction call-chain), all requests within the same transaction must be associated with the same security context.

I could not completely understand what it means though.
 
Sankar Subbiramaniam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider the scenario:
Servlet A calls two stateless beans SEJB1 and SEJB2. Both the stateless beans in turn call an entity bean EEJB1.

Lets say servlet A starts transaction TX1 and then calls simultaneously (using thread) SEJB1 and SEJB2.

Both SEJB1 and SEJB2 will call EEJB1 with the same transaction TX1.

To entity bean EEJB1, SEJB1 and SEJB2 are two different clients.

Hope this helps.
 
Devender Thareja
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clear now. Thank you so much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic