Components of a Stateless Session EJB

Now you will look at the different components that constitute a stateless session EJB.

Remote Interface

The remote interface, as you saw yesterday, contains a set of business methods that constitute the service that the stateless session bean provides. The remote interface of a stateless session bean is exactly the same as the remote interface for a stateful session bean and extends the javax.ejb.EJBObject interface.

The code snippet given here is exactly like the code snippet for the remote interface of a stateful session bean:

 public interface MyRemoteIF extends javax.ejb.EJBObject { public void businessMethod1() throws javax.rmi.RemoteException { } public String businessMethod2() throws javax.rmi.RemoteException ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.