简体   繁体   English

如何使用生成的WebService向JBoss EJB添加依赖项?

[英]How do you add a dependency to a JBoss EJB with a generated WebService?

I'm trying to deploy an EJB in JBoss that uses the @WebService annotation. 我正在尝试在JBoss中部署使用@WebService注释的EJB。 However, the EJB has a dependency on an EJB in another ear. 但是,EJB在另一个领域依赖于EJB。 By adding the @Depends annotation, the EJB start is delayed until after the ear is loaded, but it appears the WebService generator is still trying to start up the generated WAR as soon as it sees the annotation. 通过添加@Depends批注,EJB开始被延迟,直到加载了ear之后,但是看起来WebService生成器在看到注释时仍然试图启动生成的WAR。

Is there anything similar to @Depends for the generated JBossWS that I can add? 对于生成的JBossWS,我可以添加类似于@Depends吗?

I think what you may need to do is configure the deployment order that JBoss is using. 我认为您可能需要做的是配置JBoss正在使用的部署顺序。 I know this is possible and I think it is what people I work with have done for dependencies like this. 我知道这是可能的,我认为这是我与之合作的人为这样的依赖做了什么。 If this link doesn't help, you will want to search for something dealing with JBoss deployment order and how to set the order. 如果此链接没有帮助,您将需要搜索处理JBoss部署顺序以及如何设置顺序的内容。 I had JBoss training a while back and I know this is a solution that is taught. 我暂时接受了JBoss培训,我知道这是一个教授的解决方案。

JBoss Deployment Order JBoss部署顺序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM