yes,what i need is the solutions which can solve the problem like this,not the solution to solve this problem.so, i can get a lot of solutions,then make a choice by myself.
If there are not other design constraints(technology,environment,specification,business and the like), a sea of solutions can choose,such as,HTTP,RMI,EJB,WebService,MQ,Java API Invoke(jar dependency).
To be honest,the description for your question is not clear.