如何调用其他EAR的bean方法 [英] How to call other EAR's bean method
本文介绍了如何调用其他EAR的bean方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在JBOSS应用服务器中有两个EAR(EAR-1 , EAR-2 )。
在EAR-2中,我有一个无状态会话bean:
TestTimerBean
$ c $在这个bean中,我有一个方法:
startTimer()
现在我想访问/调用这个方法: c code code code code code code $ b
任何人都可以建议我如何实现这一点?
解决方案你要做的第一步是查找EJB。
在JBoss中,您可以使用以下命令访问:
context / Bean_Name / remote
其中上下文是您的耳朵名称 Bean_Name
是远程接口。
希望这个帮助你
I have two EARs (EAR-1, EAR-2) in JBOSS application server.
In EAR-2, I have a stateless session bean:
TestTimerBean
In this bean, I have a method:
startTimer()
Now I would like to access/call this method: startTimer()
from EAR-1.
Could any one suggest me on how can I achieve this?
解决方案 The first step you have to do is to make a lookup of EJB.
In JBoss you can access using following:
context/Bean_Name/remote
where context is your ear name the Bean_Name
is the remote interface.
Hope this help you
这篇关于如何调用其他EAR的bean方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文