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:
where context is your ear name the
Bean_Nameis the remote interface.Hope this help you