It's not a secret anymore!
The moose likes EJB and other Java EE Technologies and the fly likes interview questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "interview questions" Watch "interview questions" New topic

interview questions

kesava chaitanya

Joined: Aug 20, 2001
Posts: 28
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
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
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.
[ June 17, 2002: Message edited by: snigs ]

Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Hari babu
Ranch Hand

Joined: Jun 25, 2001
Posts: 208
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.
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

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!
I agree. Here's the link:
subject: interview questions
It's not a secret anymore!