客户端代码:
Hashtable ht = new Hashtable();
ht.put(ctx.PROVIDER_URL, "t3://ip:port");//服务器
ht.put(ctx.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ctx = new InitialContext(ht);
anEJBHome = (EJBHome) javax.rmi.PortableRemoteObject.narrow (ctx.lookup (homeClass.getName()), homeClass); //取得ejb 的home接口
Hashtable ht = new Hashtable();
ht.put(ctx.PROVIDER_URL, "t3://ip:port");//服务器
ht.put(ctx.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ctx = new InitialContext(ht);
anEJBHome = (EJBHome) javax.rmi.PortableRemoteObject.narrow (ctx.lookup (homeClass.getName()), homeClass); //取得ejb 的home接口
解决方案 »
- java实现上传,并显示的问题
- xlsx格式转换成csv格式
- 有人看过<<Hiberbate项目开发宝典>>这本书没?
- hibernate里使用Extensions产生pojo的问题
- 如何用JAVA读取EXCEL文件里面的数据
- 关于tapestry失效连接的问题
- tomcat问题:怎样在首页上不显示index.jsp
- 请问:为什么tomcat可以正常启动,但在eclipse3里启动不了?
- 用axis写webservice,但是soap中没有header,怎么添加呢????
- 请教学习 Web Services 的好方法
- 如何使用eclipse,请各位大哥指教
- 请问JBoss的 Could not map transaction isolation ' l to a valid JDBC level 是什么问题?
JBOSS的:
java.naming.factory.initial
"org.jnp.interfaces.NamingContextFactory"
java.naming.provider.url
"localhost:1099"
javax.naming.NameNotFoundException: PostgresDS not bound at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)