FileDocCategorySizeDatePackage
AdviceClient.javaAPI DocExample798Mon Dec 01 19:21:20 GMT 2003None

AdviceClient

public class AdviceClient extends Object

Fields Summary
Constructors Summary
Methods Summary
public voidgo()

		try {
			Context ic = new InitialContext();
                        

			Object o = ic.lookup("Test1");  // replace with YOUR JNDI name for the bean

			AdviceHome home = (AdviceHome) PortableRemoteObject.narrow(o, AdviceHome.class);

			Advice advisor = home.create();

			System.out.println(advisor.getMessage());

		} catch (Exception ex) {
				ex.printStackTrace();
		}
	
public static voidmain(java.lang.String[] args)

		new AdviceClient().go();