Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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

 
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.
 
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.
 
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic