com.ibm.websphere.samples.webservices.addr
Class AddressBookBeanImpl

java.lang.Object
  extended by com.ibm.websphere.samples.webservices.addr.AddressBookBeanImpl
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class AddressBookBeanImpl
extends java.lang.Object
implements javax.ejb.SessionBean

See Also:
Serialized Form

Constructor Summary
AddressBookBeanImpl()
          Construct a new AddressBookBeanImpl entry for the bottom up EJB.
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 Address getAddressFromName(java.lang.String name)
          Retrieve an entry from the AddressBook.
 javax.ejb.SessionContext getSessionContext()
           
 void setSessionContext(javax.ejb.SessionContext sessioncontext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressBookBeanImpl

public AddressBookBeanImpl()
Construct a new AddressBookBeanImpl entry for the bottom up EJB. It's members are hardcoded to some standard values, except streetNum is 2.

Method Detail

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
Specified by:
ejbActivate in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
Specified by:
ejbPassivate in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws java.rmi.RemoteException
Specified by:
ejbRemove in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException

getSessionContext

public javax.ejb.SessionContext getSessionContext()

setSessionContext

public void setSessionContext(javax.ejb.SessionContext sessioncontext)
                       throws java.rmi.RemoteException
Specified by:
setSessionContext in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException

getAddressFromName

public Address getAddressFromName(java.lang.String name)
Retrieve an entry from the AddressBook.

Parameters:
name - the name of the entry to look up.
Returns:
the AddressBook entry matching name or null if none.