±Û¾´ÀÌ :±èÇÊÈ£ 1998³â 12¿ù 07ÀÏ 12:48:30
In Reply to: ±×·¡µµ °è¼Ó Port Error°¡..... -_-; posted by ±èÁ¤Çý on 1998³â 12¿ù 07ÀÏ 11:45:09:
Æ÷Æ® 1099 ´Â ¼Ò½º¿¡¼ ÁöÁ¤À» ÇÏÁö ¾Ê¾Ò±â ¶§¹®¿¡
rmi µðÆúÆ® Æ÷Æ®°¡ ÀâÈù °Í °°½À´Ï´Ù.
±×·±µ¥ ÀÌ µðÆúÆ® Æ÷Æ®°¡ ÀÌ¹Ì »ç¿ë ÁßÀ̱⠶§¹®¿¡
±×·¯ÇÑ ¿¡·¯ ¸Þ¼¼Áö°¡ ³ª¿À °Å±¸¿ä...
º¸¿©ÁֽŠ¼Ò½º¿¡¼
//Naming.rebind("//:" + SERVER_PORT + "/" + SERVER_NAME, dbs);
java.rmi.Naming.rebind("DBServer",dbs);
·Î µÈ ºÎºÐ ÀÖÁö¿ä? ¿©±â¼ ÁÖ¼® ó¸®µÈ ºÎºÐÀ» »ì·Á¾ß ÇÕ´Ï´Ù. Áï,
Naming.rebind("//:" + SERVER_PORT + "/" + SERVER_NAME, dbs);
// java.rmi.Naming.rebind("DBServer",dbs);
¿ä·¸°Ô µÇ°Ô °íÃÄ º¸¼¼¿ä.
SERVER_NAME ÀÌ "RemoteServer" ÀÌ°í, SERVER_PORT °¡ 7942 ·Î µÇ¾î ÀÖÀ¸´Ï±î
³ªÁß¿¡ Ŭ¶óÀ̾ðÆ®¿¡¼ Naming.lookup() ÇÒ ¶§´Â
Naming.lookup("//" +
getCodeBase().getHost() + ":7942/RemoteServer");
¶Ç´Â
Naming.lookup("//" +
getCodeBase().getHost() + ":" + SERVER_PORT +
"/" + SERVER_NAME);
·Î Çϼ¼¿ä.