You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by "Noel J. Bergman" <no...@devtech.com> on 2003/02/22 01:48:12 UTC

MX4JSystemManager and JNDI

Why does MX4JSystemManager.startRMIAdapter(MBeanServer) call:

  System.setProperty( "java.naming.factory.initial", m_namingFactory );

rather than following the example set in the MX4J documentation:

  mbean.putJNDIProperty(Context.INITIAL_CONTEXT_FACTORY,
                        "com.sun.jndi.rmi.registry.RegistryContextFactory");

See:
http://cvs.apache.org/viewcvs.cgi/avalon-phoenix/src/java/org/apache/avalon/
phoenix/components/manager/MX4JSystemManager.java?rev=1.19.2.1&content-type=
text/vnd.viewcvs-markup

and: http://mx4j.sourceforge.net/docs/bk01ch03s16.html

	--- Noel


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


Re: MX4JSystemManager and JNDI

Posted by Peter Donald <pe...@realityforge.org>.
On Sat, 22 Feb 2003 11:48, Noel J. Bergman wrote:
> Why does MX4JSystemManager.startRMIAdapter(MBeanServer) call:
>
>   System.setProperty( "java.naming.factory.initial", m_namingFactory );
>
> rather than following the example set in the MX4J documentation:
>
>   mbean.putJNDIProperty(Context.INITIAL_CONTEXT_FACTORY,
>                        
> "com.sun.jndi.rmi.registry.RegistryContextFactory");

> and: http://mx4j.sourceforge.net/docs/bk01ch03s16.html

I have a feeling that that approach was not available when the MX4j manager 
was originally written. I will have a look at adding it in (especially 
because it is reported as a bug against phoenix). Have you tried it - can you 
confirm it works fine? (I wont be able to test it till wendsday).


-- 
Cheers,

Peter Donald
----------------------------------------
Why does everyone always overgeneralize?
---------------------------------------- 


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


Re: MX4JSystemManager and JNDI

Posted by Peter Donald <pe...@realityforge.org>.
Actually - I just applied this change. It seems to work fine but I will test 
it more thouroughly on wendsday. If you could download and try it out then 
that would be great.

-- 
Cheers,

Peter Donald
*---------------------------------------------------------*
| Contrary to popular belief, UNIX is user-friendly. It   |
| just happens to be selective on who it makes friendship |
| with.                                                   |
|                       - Richard Cook                    |
*---------------------------------------------------------* 


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