Class OpenEjbFactory

java.lang.Object
org.apache.naming.factory.OpenEjbFactory
All Implemented Interfaces:
ObjectFactory

public class OpenEjbFactory extends Object implements ObjectFactory
Object factory for EJBs.
Author:
Jacek Laskowski, Remy Maucherat
  • Field Details

  • Constructor Details

    • OpenEjbFactory

      public OpenEjbFactory()
  • Method Details

    • getObjectInstance

      public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
      Create a new EJB instance using OpenEJB.
      Specified by:
      getObjectInstance in interface ObjectFactory
      Parameters:
      obj - The reference object describing the DataSource
      name - the bound name
      nameCtx - unused
      environment - unused
      Returns:
      the object instance
      Throws:
      Exception - if an error occur creating the instance