> At 03:30 PM 5/25/01 -0700, Rana Bhattacharyya wrote:
> >My problems are:
> >
> >1. I am not able to use default RMI port (1099). So I
> >am using some other port.
>
> Yup - currently Avalon is building it's management interface on
> the default
> port though in future we should make this configurable.
The current code sucks (I'm allowed to say that because I wrote
it :-). I basically hard-wired in an RMI server to be able to test our
JMX alpha code. Biggest TODO on my list (which is not getting any
shorter atm).
> >2. I am not able to export. The stack trace:
> >java.rmi.server.ExportException: internal error: ObjID
>
> The problem is that Avalon also exports the object via RMI. Real Soon Now
> (when I finish fixing up my box) I plan to rework some of this stuff and
> integrate changes Leo made. I also plan to make it configurable so you can
> turn off management. Hopefully Tuesday I will have some time to hack and
> make it easier for you then.
the offending code is in PhoenixManager:
final int port =
_parameters.getParameterAsInteger( "manager-registry-port", 1111 );
m_name = m_parameters.getParameter( "manager-name",
"Phoenix.JMXAdaptor" );
m_rmiRegistry = LocateRegistry.createRegistry( port );
//This next line is soooooo insecure - should use some form
//of secure exporting mechanism
final Remote exported =
nicastRemoteObject.exportObject( m_rmiAdaptor );
final Remote stub = RemoteObject.toStub( exported );
//TODO: should this do a lookup and refuse to lauch if existing
server registered???
m_rmiRegistry.bind( m_name, stub );
Rana - You should be able to simply comment out the entire block and your
code
should work.
>
> BTW Leo did you ever get around to working with "only reflect based on
> passed in interfaces" feature?
The one thing I need to do besides bug removal is to fix where I make use
of the equals() method on various jmx objects - they don't override equals()
so that doesn't work. Other than that...it *should* work.
cheers!
LSD
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]