My develop environment:
client: winXP/JDK6/IP:192.168.1.74 [real machine]
host: windows2003 /JDK6 /JBoss5.0 /hostname:win2003/IP:192.168.1.82 [host is run in VMware6 at client's real machine] bridge
both of them are work well independently,
Host:
Client:
All the code is easy, I make host code to jar named 'test.jar' deploye jboss5-->default--->deploye, copy test.jar to client machine
set classPath to reference .
then running host
jboss AS,and Client 'main' method remote call
EJB.
All above I have try many times in my studio,There is no problem,and got the right result successfully.
(-b 0.0.0.0 has set to jboss)
Today , In order to run demo for client, I help my boss to build the distributed environment as the same as above in his
machine,but I meet the accident,
when running the client programe the exception shows:
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: win2003;
nested exception is:
java.net.ConnectException: Connection refused: win2003]
IP can ping pass, At Client I can browse
http://192.168.1.82:8080 to view the Remote Jboss console.
and The Exception can be solved if running client and host in the same machine.
what happend? windows2003 server config problem?JBoss config? but the same env config can run success in my studio.
Help!
Thanks!