FileDocCategorySizeDatePackage
AdviceBean.javaAPI DocExample957Tue Nov 25 13:56:08 GMT 2003headfirst

AdviceBean

public class AdviceBean extends Object implements SessionBean

Fields Summary
private String[]
adviceStrings
Constructors Summary
Methods Summary
public voidejbActivate()

	
	   
		System.out.println("ejb activate");
	
public voidejbCreate()

		System.out.println("in ejb create");
	
public voidejbPassivate()

		System.out.println("ejb passivate");
	
public voidejbRemove()

		System.out.println("ejb remove");
	
public java.lang.StringgetMessage()

		System.out.println("in get advice");
		int random = (int) (Math.random() * adviceStrings.length);
		return adviceStrings[random];
	
public voidsetSessionContext(SessionContext ctx)

		System.out.println("session context");