Skip to main content



      Home
Home » Newcomers » Newcomers » How to run two clients with parallel processes in Eclipse?
How to run two clients with parallel processes in Eclipse? [message #1556544] Sat, 10 January 2015 06:37 Go to next message
Eclipse UserFriend
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.
Re: How to run two clients with parallel processes in Eclipse? [message #1558751 is a reply to message #1556544] Sun, 11 January 2015 12:36 Go to previous message
Eclipse UserFriend
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.
Previous Topic:using HttpClient 4.3.6 from apache.org
Next Topic:Help for project
Goto Forum:
  


Current Time: Tue Jul 08 15:32:30 EDT 2025

Powered by FUDForum. Page generated in 0.31833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top