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

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
June 04, 2023, 07:36:14 PM *
Welcome,
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: Task calling tasks?  (Read 5091 times)

bd

  • Guest
Task calling tasks?
« on: April 01, 2009, 07:53:29 PM »

Is there any reason why a JPPFTask cannot|should not act as a client and submit its own JPPFTasks?  I'm going to start experimenting with this arrangement, but if there's something obviously wrong with doing this, I'd appreciated hearing about it.

thanks

bd
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Task calling tasks?
« Reply #1 on: April 02, 2009, 05:11:43 AM »

Hello bd,

The biggest problem you will have is about class loading.
In effect, the application classes that you are executing in your tasks are physically deployed on the client side, and downloaded by the node when needed.

However, if you submit some of these tasks from a node, which is a client from this point of view, then the 2nd node, executing these new tasks, will be unable to find your classes in the 1st node's class path, unless your application classes are also deployed to the first node's class path.

So basically, you will need to add the following to the first node's class path:

  • jppf-common.jar
  • jppf-client.jar
  • your application classes and jar files

Another thing you should be careful about is where you submit these new tasks, and that nodes will effectively be available to execute them.

I hope this helps,
-Laurent
Logged

bd

  • Guest
Re: Task calling tasks?
« Reply #2 on: April 02, 2009, 11:55:53 PM »

Thanks, that helps a great deal.  I'd completely forgotten about the class server.
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads