CVS log for carol/carol/src/org/objectweb/carol/util/configuration/ProtocolConfiguration.java |
|
Help |
Request diff between arbitrary revisions / Display revisions graphically
JSR77 Mbean for JNDIResource are created by Carol. (JMX jars are optionals at runtime if Carol is not initialized with an MBeanServer).
Change the configuration process of Carol as discussed here: http://www.objectweb.org/wws/arc/carol/2005-03/msg00047.html http://www.objectweb.org/wws/arc/carol/2005-03/msg00050.html etc. The configuration model is the following : Instead of RmiConfiguration CarolConfiguration and CarolCurrentConfiguration. There is only one entry named : ConfigurationRepository. On this class, we can set a current configuration (ProtocolConfiguration) ConfigurationRepository is also a factory of ProtocolConfiguration object (default imp = ProtocolConfigurationImpl). ConfigurationRepository.newConfiguration(protocolName, configName) Protocol class is used by ProtocolConfiguration classes. ie : jrmp is a Protocol class with its nameservice, PROdelegate, etc the configuration "jrmp" use jrmp protocol but specify the PROVIDER_URL for example So we can have jrmp1 with a PROVIDER_URL dummy:2001 and jrmp2 with PROVIDER_URL:dummy:2002 To retrieve the current protocol : ConfigurationRepository.getCurrentConfiguration().getProtocol().getName(); We can also initialize carol with an URL file : (#303299 feature reques) ConfigurationRepository.init(URL object). Also we can use : Properties p = protocolConfiguration.getProperties(); p.put(key,value) protocolConfiguration.configure(p); for feature request : #303300
| webmaster@ow2.org |
Powered by ViewCVS 0.9.4 |
Back to OW2 Forge