Do I have to use RMI

Hi

In my application I need to expose a class which needs to continously run in the background(in a seperate thread). I need to access methods in the constantly running class from other classes in the same application. The application is a single box application and not distributed. What is the best way of implementing this? Is RMI a good way of doing this?

[372 byte] By [dan_aravinda] at [2007-10-3 4:28:16]
# 1
The R in RMI stands for Remote. If you're on a single box, you have no remote app. Thus, you just need to spawn a thread. RMI is for distributed programming.
SoulTech2012a at 2007-7-14 22:31:13 > top of Java-index,Core,Core APIs...