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 
March 24, 2023, 07:23:30 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: Custom Class loader conflict with JPPF class loader  (Read 1645 times)

acanalini

  • JPPF Master
  • ***
  • Posts: 30
Custom Class loader conflict with JPPF class loader
« on: February 21, 2013, 12:06:38 PM »

We are developing with JPPF a solution for real time PDF production, based on FOP.
Basically a node receive a task to produce a PDF.
The task only contains as parameter the input XML byte stream and a string CODE to decide which document to produce.
With the CODE the node load a "package" saved on a file system folder with the same code. the package contains the FOP engine and some settings to generate a specific PDF (an invoice or a letter for example). After the first call the node take in memory the package so that subsequent calls will be executed very quickly.
A node can load multiple package according to the available memory. Each package must be isolated each other.
To solve this problem we didn't use the JPPF class loader but we have developed a custom one.

it's seems that our custom class loader conflict with the one of JPPF because now the node is not able to see any changes in the client. I mean, if i change something in the client i have to switch off and on the driver and the node to make available all the modification.
Also we are able to execute the first task, but after the first the node seems to be idle.

thanks in advance for any advice
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Custom Class loader conflict with JPPF class loader
« Reply #1 on: February 22, 2013, 07:06:52 AM »

Hello,

It would help if you could post a minimal code sample that shows how you use your custom class loader in the node.
There are some things I would check:
- how do you initialize the custom class loader? Are you setting it as a child of the JPPF class loader?
- is your task class in the node's classpath, or is it only in the client classpath? if it is in the node classpath, it would explain why you need to restart the node to take modifications into account.

Thanks for your help,
-Laurent
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