0

In the J2EE tutorial from sum site, it is often mentioned this term. For example, the timersession example:

"Because it's a business method, setTimer is exposed to the local, no-interface view of TimerSessionBean and can be invoked by the client."

Thanks.

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by swosh
0

http://download.oracle.com/javaee/6/tutorial/doc/gipjf.html

Accessing Local Enterprise Beans Using the No-Interface View

Client access to an enterprise bean that exposes a local, no-interface view is accomplished through either dependency injection or JNDI lookup.

*

To obtain a reference to the no-interface view of an enterprise bean through dependency injection, use the javax.ejb.EJB annotation and specify the enterprise bean’s implementation class:

@EJB
ExampleBean exampleBean;

*

To obtain a reference to the no-interface view of an enterprise bean through JNDI lookup, use the javax.naming.InitialContext interface’s lookup method:

ExampleBean exampleBean = (ExampleBean)
InitialContext.lookup("java:module/ExampleBean");

Clients do not use the new operator to obtain a new instance of an enterprise bean that uses a no-interface view.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.