String jmxName = (String)config.getEntry(configComponent, "jmxName", String.class, null);
if(jmxName!=null)
configParms.put(ServiceBeanConfig.JMX_NAME, jmxName);
ServiceBeanConfig sbConfig = new ServiceBeanConfig(configParms, configArgs);
sbConfig.addInitParameter(BOOT_CONFIG_COMPONENT, configComponent);
ClassLoader cl = Thread.currentThread().getContextClassLoader();
if(cl instanceof ServiceClassLoader) {
Properties p = new Properties();
p.setProperty("opStringName", sbConfig.getOperationalStringName());
p.setProperty("serviceName", sbConfig.getName());
((ServiceClassLoader)cl).addMetaData(p);
}
/* Add a boot-cookie, indicating that the JSB was booted by this utility */
sbConfig.addInitParameter("org.rioproject.boot", BOOT_COOKIE);
ServiceLevelAgreements sla = new ServiceLevelAgreements();
/* Get the export codebase from the ClassLoader which loaded us. The
* export codebase will be returned by the getURLs() method since
* getURLs() is overridden to return configured export codebase
*/