启动时从另一个 ejb 调用 Web 服务
使用 jboss-esb 5.1.0.GA
我有一个 Web 服务,我的 EJB 在启动时会调用该服务。该 EJB 可以安装在与 Web 服务相同的 JBoss 实例中。如果我启动 JBoss,让它完全启动,然后将我的 EJB 部署到同一个实例中,一切都很好。但是,如果我让它部署并重新启动 JBoss,那么当 EJB 到达对 Web 服务进行调用的位置时,应用程序服务器启动进程就会挂起。现在根据日志,WebService 是在 EJB 之前部署的。它的行为就像为 WS 调用提供服务的 Web 服务器也尚未启动。我可以尝试通过 Web 浏览器访问 WSDL,但直到 JBoss 实例完全启动后才会失败。我可以看到我的依赖项是否错误,并且在部署时会出错,但我没有收到错误,它只是无限期地挂起。任何想法从这里去哪里。您还需要更多信息吗?
谢谢, -抢
Using jboss-esb 5.1.0.GA
I have a web service that an EJB that I have makes calls on when it is started. This EJB may be installed in the same JBoss instance as the web service. If I start JBoss, let it come up completely, then deploy my EJB into the same instance, all is well. However, if I leave it deployed and restart JBoss, when the EJB gets to the point where it makes a call on the web service, the Application Server start-up process hangs. Now the WebService was deployed prior to the EJB according to the logs. It acts like the web server that is serving the WS calls is not yet up either. I can try to access the WSDL via a web browser and that fails until the JBoss instance is fully started. i can see if I have my dependencies wrong and it would error out on deployment, but I get no error, it just hangs indefinitely. Any ideas where to go from here. Any more information you need?
Thanks,
-Rob
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果将 webservice war 和 ejb jar 捆绑到一个 Ear 文件中,则可以确保部署顺序。在这种情况下,ejb jar 总是首先部署。
You can ensure the order of deployment if you bundle your webservice war and ejb jar into one single ear file. In this case the ejb jar is always deployed first.
我们正在使用的 JBoss 版本似乎存在错误。我们需要注册一个事件,以便在 JBoss 启动时通知我们,然后我们进行 WS 调用,现在一切正常。
Appears there is a bug in the version of JBoss that we are using. We were required to register for an event to notify us when JBoss was up, then we made our WS calls and things work fine now.