FileDocCategorySizeDatePackage
ProfileManagerBean.javaAPI DocExample3472Thu Dec 15 22:38:34 GMT 2005com.oreilly.jent.annotation.xdoclet.ejb

ProfileManagerBean

public class ProfileManagerBean extends Object implements javax.ejb.SessionBean
ProfileManagerBean: Stateless session implementation of the ProfileManager EJB.
ejb.bean
name="ProfileManager" type="Stateless"

Fields Summary
private javax.ejb.SessionContext
mContext
Constructors Summary
public ProfileManagerBean()


    
Methods Summary
public voidejbActivate()

    System.out.println("ProfileManagerBean activated.");
  
public voidejbCreate()
No-argument create() -- nothing to initialize in this case.

ejb.create-method

    System.out.println("ProfileManagerBean created.");
  
public voidejbPassivate()

    System.out.println("ProfileManagerBean passivated.");
  
public voidejbRemove()

    System.out.println("ProfileManagerBean removed.");
  
public com.oreilly.jent.annotation.ejb.stateless.ProfileBeangetProfile(java.lang.String name)
Get a profile for a named person. Throws NoSuchPersonException if the named person cannot be found in the persistent storage used to store profile information.

ejb.interface-method
view-type=both

    // Here, we just create one of our serializable Profile objects and return
    // it (i.e., no persistence of profile data is provided).
    ProfileBean profile = new com.oreilly.jent.annotation.ejb.stateless.ProfileBean(name);
    return profile;
  
public voidsetSessionContext(javax.ejb.SessionContext context)

    System.out.println("ProfileManagerBean context set.");
    mContext = context;