I changed the IP addresses frequently when testing this and might have reported the 
wrong one in the previous email. Anyay, we are running JBoss on XP and W2K and same 
issue appears on both. We narrowed this problem down to where it appears when using 
JNDI properties in a new InitialContext. Supplying the host name form the system 
variable (jboss.bind.address) fails as does hard-coding that hostname. A "connection 
refused" appears as soon as you try to lookup a home interface on a session bean, for 
example. 
 
Creating the default InitialContext solved the problem as Bill Burke suggested. We did 
not want to assume the web container and the EJB container were in the same JVM which 
is why we were using the JNDI properties in the first place -- not everywhere of 
couse, just on things that could be remote.
 
I just setup an IP on my home system mapped to an alternate IP address. In this case 9 
is the new address so this looks correct. Problem is that if I create an 
InitialContext and pass in propreties that specify 9 (that is to say the hostname 
bound to that in my local hosts file) I will get connection refused. 
 
 
C:\>netstat -an | grep 1099
  TCP    68.140.254.9:1099      0.0.0.0:0              LISTENING
C:\>netstat -an | grep 1098
  TCP    68.140.254.9:1098      0.0.0.0:0              LISTENING
 
 

        -----Original Message----- 
        From: Scott M Stark [mailto:[EMAIL PROTECTED] 
        Sent: Sun 12/7/2003 11:14 AM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: Re: [JBoss-user] Multihome JBoss Issue
        
        

        Which says the rmi stub is bound to 1.1.1.21 (could be 1.2.11.21 and
        the mail is munging the address?). If this is not the sandbox host
        address, then it needs to be overriden using the java.rmi.server.hostname
        system property. This need to be looked into further as the --host
        value should be setting the bind address of the rmi stub as well. What
        does netstat -an | egrep '(1099|1098)' show on this box?
        
        xxxxxxxxxxxxxxxxxxxxxxxx
        Scott Stark
        Chief Technology Officer
        JBoss Group, LLC
        xxxxxxxxxxxxxxxxxxxxxxxx
        
        Rod Macpherson wrote:
        
        > Here's the gook.
        >
        > C:\ Telnet sandbox 1099
        >
        > 
¼fsr?java.rmi.MarshalledObject|+?ùfcn>??I?hashlocBytest?[BobjBytesq~?xpë?°Tur?[B¼=?°Ta?xp)¼fthttp://sandbox:8083/q~q
        > ~uq~?+¼fsr 
org.jnp.server.NamingServer_Stub??xrjava.rmi.server.RemoteStubT¦_+ïße?xr?java.rmi.server.RemoteObject+a¦æ
        >                                                                              
                                       a3??
        > xpw3
        >     UnicastRef1.1.1.21?J?¢v0·?üOÇx
        >
        > Connection to host lost.
        
        
        
        -------------------------------------------------------
        This SF.net email is sponsored by: IBM Linux Tutorials.
        Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
        Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
        Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
        _______________________________________________
        JBoss-user mailing list
        [EMAIL PROTECTED]
        https://lists.sourceforge.net/lists/listinfo/jboss-user
        

<<winmail.dat>>

Reply via email to