Event, Message based communication
Friends,
There are 2-3 modules in my java project. UI module creates some events which I need to propagate to Logic module where "what to do next" is decided.
Logic module has a thread running and can take care of multiple such Events/Messages that come from other modules.
I want to use Message (i.e. ID, object) based communication between these modules.
Is there any pattern-based or standard method I can follow?
I know JMS (Java message servicing) is very bulky - for P2P communication - and not for this small program. So that is not the solution.
Regards,
PG