对于通过 JNDI 查找注入的远程会话 bean,Jboss 6 eclipse 远程调试失败
我正在使用 JNDI 查找在我的 spring 3 控制器中注入远程 EJB3 会话 bean。由于我的 Web 模块将在 tomcat 中运行,而业务层应用程序将在远程 Jboss 6 中运行,因此决定了此配置。对于开发,我仍然只使用 jboss,我的 web 和ear 都部署在同一个 jobss 实例(jboss 6)中。一切对我来说都运行良好,但是当我尝试调试时,所有注入的 bean 都返回 null,因此在调试视图中,调用远程 ejb 会话 bean 时会引发空指针异常。在运行模式(非调试)下一切正常。
我正在使用 eclipse(Helios) 并尝试远程调试 我的 jboss/deploy 中有 jndi.properties 文件,其中包含这些设置 <代码> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
关于这个问题的任何帮助...
谢谢...
I am using JNDI lookups to inject a remote EJB3 session bean inside my spring 3 controller. Since my web module will run in tomcat and the business layer app in a remote Jboss 6, this configuration was decided. For the development I still use only jboss and my web and ear both are deployed in the same jobss instance (jboss 6). Everything works well for me, but when I tried to debug, all the beans injected returns null, so when in debug view, a null pointer exception is thrown when the remote ejb session bean is invoked. Everything works fine in the run mode (non-debug).
I am using eclipse(Helios) and trying remote debugging
I have the jndi.properties file in my jboss/deploy with these settingsjava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
any help on this issue...
thanks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于远程调试对我不起作用,我使用 eclipse 的 jboss 插件来使调试过程正常工作。
Since remote debugging did not work for me, I used the jboss plugin for eclipse to make the debug process work.