Search in sources :

Example 1 with InvalidName

use of org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName in project wildfly by wildfly.

the class ElytronSASInitializer method pre_init.

@Override
public void pre_init(ORBInitInfo info) {
    try {
        // create and register the SASCurrent.
        SASCurrent sasCurrent = new SASCurrentImpl();
        info.register_initial_reference("SASCurrent", sasCurrent);
    // the SASCurrent still needs to be initialized. Its initialization is deferred to post_init, as it needs
    // to call resolve_initial_references.
    } catch (InvalidName e) {
        throw IIOPLogger.ROOT_LOGGER.errorRegisteringSASCurrentInitRef(e);
    }
}
Also used : SASCurrent(org.jboss.iiop.csiv2.SASCurrent) InvalidName(org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName)

Example 2 with InvalidName

use of org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName in project wildfly by wildfly.

the class SASClientInitializer method pre_init.

@Override
public void pre_init(ORBInitInfo info) {
    try {
        // create and register the SASCurrent.
        SASCurrent sasCurrent = new SASCurrentImpl();
        info.register_initial_reference("SASCurrent", sasCurrent);
    // the SASCurrent still needs to be initialized. Its initialization is deferred to post_init, as it needs
    // to call resolve_initial_references.
    } catch (InvalidName e) {
        throw IIOPLogger.ROOT_LOGGER.errorRegisteringSASCurrentInitRef(e);
    }
}
Also used : SASCurrent(org.jboss.iiop.csiv2.SASCurrent) InvalidName(org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName)

Aggregations

SASCurrent (org.jboss.iiop.csiv2.SASCurrent)2 InvalidName (org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName)2