高手 高分请教 (300分) (解决另外开贴给分)

sendee 2003-10-21 12:34:22
我现在做的一个项目是把weblogic 7(sp1) 移植到Jboss 3.0.7中。系统包含Session bean, MDB, BMP.到现在所有的都基本上成功了。但是我发现了一个非常奇怪的问题,想请教一下:
MobileRingsRemote mbRemote =
(MobileRingsRemote)
mbRingsHome.findByMobileidandDefaultringsid(mobileId,
defRingsId);
if (mbRemote != null)
{
ringsId = mbRemote.getRingId();
ringsPath = mbRemote.getRingsPath();
ringfmtName = mbRemote.getRingfmtName();
}
这是作为client端,对BMP的调用,在weblogic中,mbRemote.getRingID()等get方法;是能够得到数据的。但是jboss中,却不能得到数据
同时在BMP中,数据已经从数据库中得到。(jboss和weblogic中都是)
(注明:在jboss和weblogic中部署的是同一个包)
...全文
44 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
liad 2003-10-22
  • 打赏
  • 举报
回复
看看这个
http://www.cjsdn.com/post/view?bid=2&id=53912&sty=1&tpg=1&age=0
sendee 2003-10-22
  • 打赏
  • 举报
回复
谁有jboss下部署bmp的实例,我的EMAIl : shichengli@yahoo.com
贴出下载地址也可以
双杯献酒 2003-10-21
  • 打赏
  • 举报
回复
GZ
liad 2003-10-21
  • 打赏
  • 举报
回复
有没有尝试过以下方法
private static Context getInitialContext() throws Exception {
String url = "localhost:1099";
String user = null;
String password = null;
Properties properties = null;
try {
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
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 InitialContext(properties);
}
catch(Exception e) {
throw e;
}
}
......
public static void main(String[] args)
{
Context initial = getInitialContext();
sendee 2003-10-21
  • 打赏
  • 举报
回复
liad:
thank you very much!
the code that you give me only is to gain the remote interface. in fact,i have get the remote interface and call the remote interface bussiness function successfully.
sendee 2003-10-21
  • 打赏
  • 举报
回复
其实这个问题比较简单:就是session bean作为BMP的client,来调用和获取数据中数据,在weblogic中,通过remote interface去获取数据(Remote.getPicsPath),但是同样的代码,在
BMP已经得到数据的情况之下,通过Remote interface 去获取数据总是放回null

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧