FileDocCategorySizeDatePackage
NiceThingsBeanEJB.javaAPI DocApache Axis 1.41181Sat Apr 22 18:56:52 BST 2006samples.ejb

NiceThingsBeanEJB

public class NiceThingsBeanEJB extends Object implements SessionBean

Fields Summary
Constructors Summary
Methods Summary
public voidejbActivate()

public voidejbCreate()

public voidejbPassivate()

public voidejbRemove()

public NiceThingsfindNiceThingsFor(java.lang.String name)

        // In reality our bean would probably be looking up these nice
        // things from an entity bean. In our case we'll just cheat :)
        
        NiceThings niceThings = new NiceThings("cake",
                                               23,
                                               "black as night");
        return niceThings;
    
public java.lang.StringsayHello(java.lang.String name)

        return ( "Hiya " + name + ", how are you?");

    
public voidsetSessionContext(SessionContext sc)

public booleanupdateNiceThingsFor(java.lang.String name, NiceThings niceThings)

        // In reality this bean would probably try and update nice things 
        // in the relevant entity bean(s) and return a boolean to indicate 
        // whether the update was successful or not. Again, we'll cheat.
        return true;