FileDocCategorySizeDatePackage
Session1Bean.javaAPI DocJBoss 4.2.12493Fri Jul 13 20:55:10 BST 2007org.jboss.tutorial.ejb21_client_adaptors.bean

Session1Bean

public class Session1Bean extends Object
version
$Revision: 60233 $
author
William DeCoste

Fields Summary
private static final Logger
log
private String
initValue
Constructors Summary
Methods Summary
public voidejbCreate()

      initValue = "initialized";
   
public java.lang.StringgetInitValue()

   
     
   
      return initValue;
   
public java.lang.StringgetLocalSession2InitValue()

      InitialContext jndiContext = new InitialContext();
      Object s = jndiContext.lookup(Container.ENC_CTX_NAME + "/env/session2");
      Session2LocalHome home = (Session2LocalHome)jndiContext.lookup(Container.ENC_CTX_NAME + "/env/session2");
      Session2Local session2 = home.create("initialized");
      return session2.getInitValue();