ejb3/src/main/java/org/jboss/as/ejb3/iiop/stub/IIOPStubCompiler.java
public static ClassFile compile(Class<?> intf, String stubClassName) {
        InterfaceAnalysis interfaceAnalysis = null;

        try {
            interfaceAnalysis = InterfaceAnalysis.getInterfaceAnalysis(intf);
        } catch (RMIIIOPViolationException e) {
            throw EjbLogger.ROOT_LOGGER.rmiIiopVoliation(e.getLocalizedMessage());
        }
        return makeCode(interfaceAnalysis, DynamicIIOPStub.class, stubClassName);
    }
public static ClassFile compile(Class<?> intf, String stubClassName) {
        InterfaceAnalysis interfaceAnalysis = null;

        try {
            interfaceAnalysis = InterfaceAnalysis.getInterfaceAnalysis(intf);
        } catch (RMIIIOPViolationException e) {
            throw EjbLogger.ROOT_LOGGER.rmiIiopVoliation(e.getLocalizedMessage());
        }
        return makeCode(interfaceAnalysis, DynamicIIOPStub.class, stubClassName);
    }
Generates the bytecodes of a stub class for a given interface.

@param intf          RMI/IIOP interface to be implemented by the
stub class
@param stubClassName the name of the stub class
@return a byte array with the generated bytecodes;