example.stateless.hello
Class HelloBean

example.stateless.hello.HelloBean

public class HelloBean

The trivial stateless session bean returns a greeting.


Constructor Summary
HelloBean()
           
 
Method Summary
 void ejbCreate()
          The ejbCreate method initializes the stateless bean instance.
 java.lang.String hello()
          This business method returns a trivial string.
 

Constructor Detail

HelloBean

public HelloBean()
Method Detail

ejbCreate

public void ejbCreate()
The ejbCreate method initializes the stateless bean instance. For example, the instance might look up any JNDI objects. Because stateless bean instances are reused, like servlets, the cached lookup can save time.

All stateless session beans need to implement ejbCreate.


hello

public java.lang.String hello()
This business method returns a trivial string. To be accessible, to the client, the method needs to be listed in the remote interface, Hello.