tomcat能作为ejb的容器服务器吗?
很少有这样用的,一般用的是weblogic的!
很少有这样用的,一般用的是weblogic的!
解决方案 »
- 关于urlrewrite 3.2的报错问题。。
- 什么是软件实施工程师
- 请问struts html:options不要自动设置默认option如何实现。
- Spring+Hibernate+Dwr里出错:Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL):
- 谁有可以兼职的jsp项目????
- 有关Hibernate的Lazy加载问题,请求支援!
- struts的问题大家帮帮忙忙谢谢了
- tomcat怎么进去后台管理啊
- struts.测试数据库出错.信息如下:Initializing application data .....
- 有谁了解高阳金信
- BLOG怎么用?
- 为什么使用ejb
jsp怎么掉ejb...............最好自己去看看这方面的书起
<%!
private Context getInitialContext() {
String url = "t3://192.168.100.60:7001";
String user = null;
String password = null;
Properties properties = null;
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, url);
return new InitialContext(properties);
}
%>
<%
out.println("Are you ok??");
Context itc = getInitialContext();
Object ref = itc.lookup("Test");
Testhome tshome = (Testhome)PortableRemoteObject.narrow(ref, Testhome.class);
TestRemote remote = tshome.creat();
out.println(remote.helloWorld());
%>但是总是报错,告诉我找不到Testhome
这是什么原因呢???