4

这可能是一个非常基本的问题。但没有运气谷歌搜索。

我正在浏览这个网址。因为我在访问部署在 JBoss 上的 EJB 时遇到问题。在此之后,它起作用了。主要是这条线。

 jboss-ejb3-client.jar, jboss-aop-jdk50-client.jar, jboss-aspect-jdk50-client.jar and jbossall-client.jar - 
 all these .jar files are found in client folder of JBoss installation directory

但是对于像我这样的 EJB 新手来说,这是在不了解依赖关系的情况下遵循这些步骤。所以我的问题是,我们可以在某处找到这样的文档吗?我们如何知道需要复制到客户端应用程序类路径的 jar?

4

1 回答 1

4

jbossall-client.jar for JBoss 4.X is enough - it contains all needed libraries.

For JBoss 5.X the story is more difficult - you need to reference in your project only jbossall-client.jar, but inside this JAR there are no actual classes, only MANIFEST file, which lists needed dependencies.

So, on JBoss 5, you need to have jbossall-client.jar added to classpath of your client plus all listed JARs lying next to it. Crazy, isnt't it?

JBoss 7 has sane approach. There is bin\client\jboss-client.jar that contains all dependencies needed by clients.

于 2013-05-28T16:44:16.803 回答