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

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

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

See Also:
Serialized Form

Constructor Summary
AddressBookSoapBindingImpl()
          Construct a new AddressBookSoapBindingImpl entry for the top down 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 sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressBookSoapBindingImpl

public AddressBookSoapBindingImpl()
Construct a new AddressBookSoapBindingImpl entry for the top down EJB. It's members are hardcoded to some standard values, except streetNum is 1.

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 sc)
                       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.