// create realms rather than creating RemoteObject RealmManager
// which will init ORB prematurely
RealmConfig.createRealms();
// start the audit mechanism
AuditManagerFactory amf = AuditManagerFactory.getInstance();
amf.getAuditManagerInstance().loadAuditModules();
// initRoleMapperFactory is in J2EEServer.java and not moved to here
// this is because a DummyRoleMapperFactory is register due
// to invocation of ConnectorRuntime.createActiveResourceAdapter
// initRoleMapperFactory is called after it