你好,banq,请教一个EJB

06-05-18 lvyg
你好,banq,你能不能把下面的代码给我讲讲是什么意思?

Properties properties = new Properties();

properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,

"weblogic.jndi.WLInitialContextFactory");

properties.setProperty(Context.PROVIDER_URL, "t3://localhost:7001");

Context context;

context = new InitialContext(properties);

HelloWorldHome hwh = (HelloWorldHome) context.lookup("ejb/HelloWorld");

HelloWorld hw = hwh.create();

猜你喜欢