avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: cvs commit: avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager MX4JSystemManager.java
Date Wed, 04 Jun 2003 12:59:16 GMT
Peter Donald wrote:
> On Tue, 3 Jun 2003 11:03 pm, bloritsch@apache.org wrote:
> 
>>           // Set the JNDI name with which will be registered
>>           mbean.setJNDIName( "jrmp" );
>>  -        mbean.putJNDIProperty(
>>javax.naming.Context.INITIAL_CONTEXT_FACTORY, -                            
>>  m_namingFactory );
>>  +
>>  +        mbean.putNamingProperty(
>>javax.naming.Context.INITIAL_CONTEXT_FACTORY, +                            
>>    m_namingFactory);
>>  +        //mbean.putJNDIProperty(
>>javax.naming.Context.INITIAL_CONTEXT_FACTORY, +        //                  
>>    m_namingFactory );
>>           //mbean.putJNDIProperty( javax.naming.Context.PROVIDER_URL,
>>"rmi://localhost:1099" ); // Register the JRMP adaptor in JNDI and start it
>>           mbean.start();
> 
> 
> Why are you doing this?


Phoenix wouldn't compile with the .putJNDIProperty, because the method
was missing from the version of MX4J downloaded by the build script.
The proper substitution from what I saw was the putNamingProperty.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message