How to call other EAR's bean method

僤鯓⒐⒋嵵緔 提交于 2019-12-13 02:26:57

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/11841488/how-to-call-other-ears-bean-method

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!