FileDocCategorySizeDatePackage
Stateless2Bean.javaAPI DocJBoss 4.2.12038Fri Jul 13 20:55:18 BST 2007org.jboss.tutorial.reference21_30.bean

Stateless2Bean

public class Stateless2Bean extends Object implements javax.ejb.SessionBean
author
William DeCoste
version
$Revision: 60233 $

Fields Summary
private static final Logger
log
Constructors Summary
Methods Summary
public voidejbActivate()

   
   
public voidejbCreate()

    
   
public voidejbPassivate()

      
   
public voidejbRemove()

      
   
public voidsetSessionContext(javax.ejb.SessionContext context)

      
   
public voidtestAccess()

    
     
   
      try
      {
         InitialContext jndiContext = new InitialContext();
         Stateless3 session = (Stateless3)jndiContext.lookup("java:comp/env/ejb/Stateless3");
         session.testAccess();
      }
      catch (Exception e)
      {
         e.printStackTrace();
      }