public Object createLocalBusinessObject(String interfaceName, boolean useSupporting)
                    throws RemoteException,
                    CreateException,
                    ClassNotFoundException,
                    EJBConfigurationException
    {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isEntryEnabled())
            Tr.entry(tc, "createLocalBusinessObject: " + interfaceName); // d367572.7

        int interfaceIndex;
        if (useSupporting)
        {
            interfaceIndex = beanMetaData.getSupportingLocalBusinessInterfaceIndex(interfaceName);
        }
        else
        {
            interfaceIndex = beanMetaData.getRequiredLocalBusinessInterfaceIndex(interfaceName);
        }

        Object result = createLocalBusinessObject(interfaceIndex, null);

        if (isTraceOn && tc.isEntryEnabled())
            Tr.exit(tc,
                    "createLocalBusinessObject returning: " + Util.identity(result)); // d367572.7

        return result;
    }
public Object createLocalBusinessObject ( String interfaceName , boolean useSupporting ) throws RemoteException , CreateException , ClassNotFoundException , EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createLocalBusinessObject: " + interfaceName ) ; int interfaceIndex ; if ( useSupporting ) { interfaceIndex = beanMetaData . getSupportingLocalBusinessInterfaceIndex ( interfaceName ) ; } else { interfaceIndex = beanMetaData . getRequiredLocalBusinessInterfaceIndex ( interfaceName ) ; } Object result = createLocalBusinessObject ( interfaceIndex , null ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "createLocalBusinessObject returning: " + Util . identity ( result ) ) ; return result ; }
Returns an Object (wrapper) representing the specified EJB 3.0
Business Local Interface, managed by this home. <p>

This method provides a Business Object (wrapper) factory capability,
for use during business interface injection or lookup. It is
called directly for Stateless Session beans, or through the
basic wrapper for Stateful Session beans. <p>

For Stateless Session beans, a 'singleton' (per home) wrapper instance
is returned, since all Stateless Session beans are interchangeable.
Since no customer code is invoked, no pre or postInvoke calls are
required. <p>

For Stateful Session beans, a new instance of a Stateful Session bean
is created, and the corresponding new wrapper instance is returned.
Since a new instance will be constructed, this method must be wrapped
with pre and postInvoke calls. <p>

@param interfaceName One of the local business interfaces for this
session bean
@param useSupporting whether or not to try to match the passed in interface
to a known sublcass (ejb-link / beanName situation)
@return The business object (wrapper) corresponding to the given
business interface.

@throws RemoteException
@throws CreateException
@throws ClassNotFoundException
@throws EJBConfigurationException