I would like to do the following.
client connects to EJB through iiop and adds itself as a listener to an event i.e. onHourlyTimerEvent. When this event occurs the client application (bean) should be called.
How do I setup and implement this?
client :
init()
{
create remote object.
object.addHourlyTimerEventListenter(this, myTimerEventHandler).
}
void myTimerEventHandler()
{
System.out.println("event occured");
}
server (stateless session bean.):
void notifyListeners();
{
locates registered (added) listeners and calls the listenerobjects event.
}