你的session bean 都作好了为什么客户端不会写呢在代码里面JNDI直接调用就可以了
解决方案 »
- 开源CMS
- 问一个关于java zip压缩包问题
- jboss+oracle配置问题
- 怎样在自已的项目中设置session自动过期的时间?
- ServletInputStream!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 关于tomcat内存堆栈益处的问题?
- javax.faces.FacesException: Can't set managed bean property是如何产生的?
- 求教一个蛋疼的Hibernate问题,求各位大神指教
- 菜鸟的问题
- 高手请进——〉在tomcat4中怎么配置数据库连接池(sql server2000/Oracle)?
- B/S与WEB有何区别?
- 想从事j2ee方面,做个怎样的系统作品才能有点代表性,用来应聘的,新手
String user = null;
String password = null;
Properties properties;
try {
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, url);
if (user != null) {
properties.put(Context.SECURITY_PRINCIPAL, user);
properties.put(Context.SECURITY_CREDENTIALS,
password == null ? "" : password);
}
return new javax.naming.InitialContext(properties);