wood burning stoves
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: http://aspose.com/file-tools
subject: Access modifiers in EJB's
It's not a secret anymore!