Hello,
There is nothing like Macro in java. From your requirement, I understood that , you require one program, to kick off an particular action like macro.
With Java one can write:
1) Applications
2)
Applets 3) Server Side Listeners (
servlets)
4)
EJB ( runs in Ejb container with in App.Server).
5) Stand alone JMS clients
6) Custom Written Servers ( Using Sockets).
you require one bootstrap which will invoke a particular java program, which will act as macro.
More inputs are welcome.