EJB是什么东西啊?JAVABEAN又是什么呢?是微软的产品吗?怎么好象没听过?导师好象也讲过什么BEAN的,还有什么JAVA的,是不是微软的东西啊?
解决方案 »
- SSH整合问题,HinernateUserDAO里的方法没有执行?
- 已知某点的经纬度如何判断另外一个点是否在此点的方圆50米范围内
- ========Acegi 问题。。跪求高手=========================
- ssh怎么才能学的精通啊?
- 有人懂日语 做过对日开发的没 ,能帮忙翻译个文档不
- 风靡当今网络的老技术Ajax开发教程--抢先免费下载了!!!
- 初学,请指点!关于weblogic 的配置
- 关于JVM出错的问题?大家来帮忙看看!来者有分!!!
- 初学者,想看三大框架,求一本好书 ,
- Exception occurred during processing request 异常问题
- 请教:jboss 奇慢无比!
- struts的<html:radio>tag问题~~~!
Enterprise1Home otherhome = null;
Enterprise1 otherRemo = null;
try
{
Context ctx = new InitialContext();
Object obj = ctx.lookup("t3://localhost:80/Enterprise1");
otherhome = (Enterprise1Home) javax.rmi.PortableRemoteObject.narrow(obj,
Enterprise1Home.class);
try
{
otherRemo = otherhome.create();
return otherRemo.getName()+otherRemo.getSex();
}
catch (RemoteException e1) {
e1.printStackTrace();
return "remoteerror";
}
catch (CreateException e) {
e.printStackTrace();
return "createerror";
}
}
catch(NamingException e)
{
System.out.println("error");
return "error";
} }
另在一个服务器中不需要这样Object obj = ctx.lookup("t3://localhost:80/Enterprise1");
只需Object obj = ctx.lookup("Enterprise1");