env-entry -- doubts ???

1) Is env-entry is declared for a specific ejb or it is accessible to all ejbs.

2) What are the legal values for env-entry-value.

Your responses are appreciated.

SCJP,SCWCD,SCBCD,SCEA Part I

Suman Sarker

Ranch Hand

Posts: 68

posted 12 years ago

Hi Sujatha,

Following are the answers to your questions

1. Is env-entry is declared for a specific ejb or it is accessible to all ejbs.

Answer: An environment entry is scoped to the enterprise bean whose declaration contains the env-entry element. This means that the environment entry is INACCESSIBLE from other enterprise beans at runtime, and that other enterprise beans may define env-entry elements with the same env-entry-name without causing a name conflict.

2) What are the legal values for env-entry-value.

Answer: The environment entry values may be one of the following Java types: