-
1. Re: RMI question.
ko5tik Sep 27, 2001 2:44 AM (in response to osw)If oyu look at the souce:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jboss/src/main/org/jboss/ejb/plugins/jrmp/interfaces/GenericProxy.java?rev=1.14&content-type=text/vnd.viewcvs-markup
You will notice that this proxy pulls principal and credential out of SecurityAssotiation
( look in the invokeContainer() method ) -
2. Re: RMI question.
osw Sep 27, 2001 8:14 AM (in response to osw)Right, and there would be no question if both client and server were running the same java machine. In my case they are not.
So I can rephrase my question: how remote client SecurityAssociation class shares its static data with SecurityAssociation class on the server side ? -
3. Re: RMI question.
ko5tik Sep 27, 2001 8:39 AM (in response to osw)If yo look in the same file:
------
protected MarshalledObject createMarshalledObject(final Object id,
final Method method,
final Object[] args)
throws SystemException, IOException
{
RemoteMethodInvocation rmi =
new RemoteMethodInvocation(id, method, args);
// Set the transaction propagation context
rmi.setTransactionPropagationContext(getTransactionPropagationContext());
// Set the security stuff
// MF fixme this will need to use "thread local" and therefore same construct as above
// rmi.setPrincipal(sm != null? sm.getPrincipal() : null);
// rmi.setCredential(sm != null? sm.getCredential() : null);
// is the credential thread local? (don't think so... but...)
rmi.setPrincipal(getPrincipal());
rmi.setCredential(getCredential());
return new MarshalledObject(rmi);
}
------
Your questions would suddently dissapear. I assume
principal & credential are serialized and transported to server. -
4. Re: RMI question.
osw Sep 27, 2001 10:35 AM (in response to osw)Thank you very much.
Regards,
Andrew.