|
Re: How to run two clients with parallel processes in Eclipse? [message #1558751 is a reply to message #1556544] |
Sun, 11 January 2015 17:36 |
David Wegener Messages: 1445 Registered: July 2009 |
Senior Member |
|
|
On 01/11/2015 11:06 AM, Alexey Lekomtsev wrote:
> Good day.
>
> I googled, but could not find the exact answer.
>
> I created a simple EJB project in eclipse. I created a session full
> bean, added a business method, then created a simple java console
> client, deployed EJB project and started the server.
>
> Then I run the client.
>
> Is it possibly to run the second instance(process) to the same client in
> eclipse?
>
> I would like to start running two processes for a single client app
> simultaneously.
>
> I guess it must be something simple, but I can't figure it out.
Simply select the client launch from the Run menu while the first client
is running. This will start a new Java process. You can kick off as
many instances of a process as your system will allow.
Note that if the processes use a common resource, you will need to
change values between instances you launch. For example, if the process
opens a listen socket, you will have to use a different port number for
each process. This isn't an Eclipse limitation, it is a system
limitation. Only one process is allowed to listen on a port at one time.
|
|
|
Powered by
FUDForum. Page generated in 0.08152 seconds