EJB2在不同的JBoss版本上 [英] EJB2 on different JBoss versions

查看:122
本文介绍了EJB2在不同的JBoss版本上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用部署在JBoss版本4.x上的一些部署在JBoss 3.2.x上的另一个EJB上的EJB。这是可能吗?



我问,因为我有一个第三方应用程序,使用一些奇怪的桥梁来做到这一点,不知道为什么(虽然我没有尝试

解决方案

不幸的是,这是不可能的。远程EJB的主要缺点之一是规范中没有任何保证甚至提示不同供应商之间或同一供应商的不同EJB版本之间的任何类型的互操作性。



实际上,我发现至少与JBoss AS不一样。甚至小的升级完全破坏了二进制兼容性。有一些非常奇怪的尝试,特殊的类加载器只能访问目标JBoss AS的客户端库,但这是非常棘手的获得正确的。





看到这个主题我在JBoss社区论坛上开始了一些更多的细节: http://community.jboss.org/message/587180


I need to use some EJBs which are deployed on JBoss version 4.x from another EJB deployed on JBoss version 3.2.x. Is this possible?

I ask because I have a third party application which uses some strange bridge's to do that and don't know why (though I haven't try to do this on my own).

解决方案

This is unfortunately not possible. One of the major drawbacks of remote EJBs is that there is nothing in the specification that guarantees or even suggests any kind of interoperability between different vendors or between different EJB versions from the same vendor.

In practice I found that at least with JBoss AS it never works. Even minor upgrades break binary compatibility completely. There have been some very hacky attempts with special class loaders that are only been given access to the client libs of the target JBoss AS, but this is very tricky to get right.

I guess this "strange bridge" you are talking about is using such a trick. Kudos to whoever build that bridge for getting this to work at all.

See this topic I started on the JBoss community forum for some more details: http://community.jboss.org/message/587180

这篇关于EJB2在不同的JBoss版本上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆