This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Access modifiers in EJB's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Access modifiers in EJB Watch "Access modifiers in EJB New topic

Access modifiers in EJB's

Tejpal Singh

Joined: Aug 08, 2003
Posts: 26
I want to know wat access modifiers can be used at different levels in an EJB class(Session/Entity or Message Driven) in:
1. Class declaration
2. Method definition
3. Global and Local variables
Which of the access modifiers are not allowed by EJB specification and why?
Any help is appreciated...

"When work, commitment and pleasure all become one and you reach that deep well where passion lives, nothing is impossible."
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Take a look at the following sections of the EJB specification (v2.1):
7.11 - The Responsibilities of the Bean Provider (SB)
10.3.1 - The Entity Bean Provider's Programming Contract
10.6 - Responsibilities of the Enterprise Bean Provider (EB)
15.7 - The Responsibilities of the Bean Provider (MDB)

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: Access modifiers in EJB's
jQuery in Action, 3rd edition