Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

interview questions

 
kesava chaitanya
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi gurus,
1)If i want to do transactions which bean should i use I mean session or entity and why?
2)what is authorization and authentication?
with regds
chaitanya
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For managing transactions (multiple operations in one transaction),the preferred approach would be to use Session Facade pattern i.e., wrapping the entity bean layer in a layer of session beans. You can put the same code in entity bean also but that would make entity bean difficult to understand,maintain, and reuse.Merging application logic with persistence logic will result in poor application design.
thanks
[ June 17, 2002: Message edited by: snigs ]
 
Hari babu
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Authentication refers to valid user or not, the registered user or not.Authorization refers to whether the user is authorized to access a particular application/ module or not.
Hari
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"snigs"-
Welcome to the JavaRanch! Please adjust your displayed name to match the JavaRanch Naming Policy.
You can change it here.
Thanks! and again welcome to the JavaRanch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic