Hi Narik and welcome to JavaRanch!
Unfortunately your problem description is not detailed enough for anyone here to know what you are trying to achieve. As you posted the question to the 'Distribued
Java' forum I guess you want to make some kind of remote procedure call, right? There are many existing solutions and frameworks for this like Web Services, RMI,
EJB and many more. But without knowing more about your problem it's impossible to give you good advices.
You should try to explain it in a little bit more detail.
Marco