JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net

The open source
grid computing

 Home   About   Features   Download   Documentation   On Github   Forums 
June 03, 2023, 09:24:30 AM *
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Problem when creating one JPPFClient for four threads  (Read 1954 times)


  • Guest
Problem when creating one JPPFClient for four threads
« on: September 07, 2012, 11:49:20 AM »

Hi Laurent,

In our application there are four threads, each of which using seperate JPPFCLIENT instance. I need to make it only one instance and pass it to four threads. Is it possible? Currently I tried it but it is not precessing the job submitted to client. Could you please clarify about this?



  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Problem when creating one JPPFClient for four threads
« Reply #1 on: September 08, 2012, 11:20:39 AM »

Hi Jaydatta,

To have the ability to submit multiple jobs concurrently with a single JPPF client, you need to define a pool of connections to the server with that client.
This is defined in the client's configuration file, as illustrated in the following examples:

With server discovery enabled:
Code: [Select]
jppf.discovery.enabled = true
#define a pool of 4 connections for discovered drivers

With server discovery disabled:
Code: [Select]
jppf.discovery.enabled = false
# configure connections explicitely
jppf.drivers = myDriver
#define a pool of 4 connections for the configured drivers

When there is a single server connection, only one job at a time can be submmitted. The other jobs will be waiting in the client's queue and be sent only when the previous job has finished executing.

I hope this clarifies.

Pages: [1]   Go Up
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at Fast, secure and Free Open Source software downloads