EAR中的Seam EJB3可以被另一个应用程序使用吗?

时间:2022-09-30 20:02:37

Seam 2.1 and JBoss 4.2.2

Seam 2.1和JBoss 4.2.2

I have set up the first App to have the EJB in the EAR with a local interface.

我已经设置了第一个应用程序,用于在EAR中使用本地接口构建EJB。

the 2nd app can look up JDNI name "ear-name/ejbname/local" but fails with "NoClassDefFound".

第二个应用程序可以查找JDNI名称“ear-name / ejbname / local”,但失败并显示“NoClassDefFound”。

Does the EJB .jar need to be outside of the EAR?

EJB .jar是否需要在EAR之外?

Is this a classloader visibility issue or Is this a JBoss version issue? or something else?

这是一个类加载器可见性问题还是这是一个JBoss版本问题?或者是其他东西?

Thank you for your thoughts..

谢谢你的想法..

1 个解决方案

#1


0  

I cannot answer if it will work or not. However, I can tell you how we do this. We have created a @Webservice component that uses this EJB. And then we connect to the Webservice from our other application.

我不能回答它是否有效。但是,我可以告诉你我们是如何做到这一点的。我们创建了一个使用此EJB的@Webservice组件。然后我们从其他应用程序连接到Webservice。

I blogged about this a while back. You can have a read if you are interested.

我有一段时间在博客上写这篇文章。如果您有兴趣,可以阅读。

#1


0  

I cannot answer if it will work or not. However, I can tell you how we do this. We have created a @Webservice component that uses this EJB. And then we connect to the Webservice from our other application.

我不能回答它是否有效。但是,我可以告诉你我们是如何做到这一点的。我们创建了一个使用此EJB的@Webservice组件。然后我们从其他应用程序连接到Webservice。

I blogged about this a while back. You can have a read if you are interested.

我有一段时间在博客上写这篇文章。如果您有兴趣,可以阅读。