Joe Gittings wrote:

Bruno,

Thanks for the helpful advice. However in the end all I had to do was
change jndi.properties from e.g.
java.naming.provider.url        jrmi://localhost:4444
to
java.naming.provider.url        jrmi://123.456.789.123:4444

This did the trick and the server now runs ok. Actually, I remember seeing
this in the archives before:
http://www.objectweb.org/messages/JonasUsers/2000/04/msg00046.html

It seems strange that specifying "localhost" should cause so many problems
(I was also intermittently getting a "Cannot rebind TM" error on starting
the registry/server). According to this posting by Kathleen Milsted you
were intending to fix this some time ago:
http://www.objectweb.org/messages/JonasUsers/2000/04/msg00062.html
It would be nice to use localhost as it's one less thing for the sysadmin
to change if the server is moved between machines.

We will have a look. We already corrected the handling of localhost and 127.0.0.1 in the connection management part of Jonathan (in Jonathan 2.0 beta 5). But maybe we skipped something about the registry.
One other question on the topic of socket resources. I notice that
InitialContext has a close method which frees up resources associated with
it. Would calling this on a JRMI InitialContext help free up sockets?
Actually, there are problems with socket management in Jonathan, which I am correcting now : the connection pool didn't work as expected, and connections were not always closed properly. This will be fixed soon.

A problem with socket management is that servers currently don't have the possibility to close connections, if they feel they have too many opened connections. Doing so requires that they send a message to the client using a connection to tell it to close the connection. Only the client can close the connection if we want to make sure no messages are lost. This can be done through the MessageClose GIOP message, although this is an interpretation of the semantics of this message that may not be shared by all implementors... This should be available early in 2001.

Best regards,

Bruno

 
--
*******************************************************************
Bruno Dumant
DTL/ASR
france telecom R&D
38-40 rue du général Leclerc
92794 Issy Moulineaux Cedex 9
FRANCE

mailto:[EMAIL PROTECTED]
tel: +33 1 45 29 46 03
fax: +33 1 45 29 66 04
*******************************************************************
 

Reply via email to