<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <%@ page import="java.util.Properties, javax.naming.*, javax.rmi.*, test.*" %> HelloWorldClient <% Context ctx = null; String t3url = "t3://192.168.0.10:7001"; Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); p.put(Context.PROVIDER_URL, t3url); ctx = new InitialContext(p); Object h = ctx.lookup("ejb.HelloWorldRemoteHome"); HelloWorldRemoteHome home = (HelloWorldRemoteHome)PortableRemoteObject.narrow(h, HelloWorldRemoteHome.class); HelloWorldRemote helloWorld = (HelloWorldRemote)home.create(); out.print(helloWorld.helloWorld()); ctx.close(); %>