You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@river.apache.org by Niclas Hedhman <ni...@hedhman.org> on 2008/10/12 22:59:06 UTC
Transient starts for testing...
Another (maybe related) question;
I start Reggie with the following code;
// Start Reggie
Configuration serviceDescConfig = EmptyConfiguration.INSTANCE;
String httpURLtext = my.configuration().reggieDlJarLocation().get();
if( httpURLtext == null )
{
// If Http Service not running in this JVM, we need the
Download URL from configuration.
if( httpService != null )
{
// use local http service.
httpURLtext = constructDownloadURL();
}
}
String reggieJarLocation = createReggieJars( temp );
File reggieJarFile = new File( reggieJarLocation );
String securityPolicyLocation = createSecurityPolicy( temp,
reggieJarFile );
String reggieConfig = createReggieConfig( temp );
NonActivatableServiceDescriptor serviceDescriptor = new
NonActivatableServiceDescriptor(
httpURLtext,
securityPolicyLocation,
reggieJarLocation,
"com.sun.jini.reggie.TransientRegistrarImpl",
new String[]{ reggieConfig } );
lookupCreated = (NonActivatableServiceDescriptor.Created)
serviceDescriptor.create( serviceDescConfig );
And my question is; What is the difference between the Configuration
provided programmatically (serviceDescConfig in my code above), and
the Configuration provided as a file in the
NonActivatableServiceDescriptor constructor (reggieConfig in my
code)??
Cheers
Niclas