Search in sources :

Example 1 with EjbInvocationFactory

use of com.sun.ejb.EjbInvocationFactory in project Payara by payara.

the class SafeProperties method setupEnvironment.

private void setupEnvironment() throws javax.naming.NamingException {
    // call the NamingManager to setup the java:comp/env namespace
    // for this EJB.
    ComponentEnvManager envManager = ejbContainerUtilImpl.getComponentEnvManager();
    componentId = envManager.bindToComponentNamespace(ejbDescriptor);
    invFactory = new EjbInvocationFactory(componentId, this);
    ejbContainerUtilImpl.registerContainer(this);
    // create envProps object to be returned from EJBContext.getEnvironment
    Set env = ejbDescriptor.getEnvironmentProperties();
    SafeProperties safeProps = new SafeProperties();
    safeProps.copy(env);
    envProps = safeProps;
}
Also used : EjbInvocationFactory(com.sun.ejb.EjbInvocationFactory) ComponentEnvManager(com.sun.enterprise.container.common.spi.util.ComponentEnvManager)

Aggregations

EjbInvocationFactory (com.sun.ejb.EjbInvocationFactory)1 ComponentEnvManager (com.sun.enterprise.container.common.spi.util.ComponentEnvManager)1