客户端如何再次得到已经存在的有状态的Session Bean? 你保留上次那个远程接口变量啊,这个Remote接口就是用来标记这个客户端的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 通过EJB Object Handlejavax.ejb.Handle handle = yourEJBObject.getHandle();//Serialize this handle to permanent storageObjectOutStream stream = ...;stream.writeObject(handle);//the other timeObjectInputStream stream = ...;Handle handle = (Handle)stream.readObject();//重新得到ejb objectYourRemoteInterface yourEjbObject = (YourRemoteInterface)handle.getEJBObject();handle.doSomething(); 谢谢上面两位。 ChDw(米) ,如何保留上次那个远程接口变量呢,是保存在session属性中吗? 感谢楼上两位。请问:ChDw(米),那个远程接口变量一般保留在哪里呢? 关于struts2的映射问题 求一Mybatis一对一映射例子 Sitemesh 装饰问题 dom4j解析xml文档时的字符引用(数字实体)问题及初步分析。 JSP从数据库下载的文件内容改变 启动Tomcat找不到我新建的工程! 用j2ee设计一个通信系统 java实现支付宝接口 spring-mybatis 自动包扫描的问题 学习struts j2ee的问题。 struts简单一问
ObjectOutStream stream = ...;
stream.writeObject(handle);
//the other time
ObjectInputStream stream = ...;
Handle handle = (Handle)stream.readObject();//重新得到ejb object
YourRemoteInterface yourEjbObject = (YourRemoteInterface)handle.getEJBObject();handle.doSomething();
ChDw(米) ,如何保留上次那个远程接口变量呢,是保存在session属性中吗?