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, 08:15:06 AM *
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: [5.0.3] [SOLVED] Task Notification - What I am doing wrong?  (Read 1833 times)

rzo

  • JPPF Padawan
  • *
  • Posts: 4

Hi there,

first of all: I am new to JPPF - maybe I did not find any necessary information or I simply understood something wrong. I use the current version of JPPF 5.0.3

What I like to achieve is, to send some custom notifications while executing tasks on some nodes (e.g. progress, ...) to my connected client.

I found, that there was a sample in an early version (http://www.jppf.org/samples-pack/TaskNotifications/Readme.php), which is not available for 5.0.3 - is there a new version for this available?

Next I looked at in the documentation: http://www.jppf.org/doc/v5/index.php?title=Receiving_notifications_from_the_tasks - thanks again for those detailed pages! :)

However I tried to build a working example, but I think, that I maybe missed something since I cannot see any kind of system out statements in my console windows.

If I understood it right, I only have to drop this .jar file in my drivers lib folder and it will automatically register the listener to the nodes. It is mainly based on the provided Template Application.
I attached the sources and the created .jar file.

Thanks in advance & Greetings
rzo

//EDIT: I finally solved my problem. It was just related to JMX Notifications and some kind of thinking error in my brain :D


« Last Edit: July 03, 2015, 10:55:42 PM by rzo »
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: [5.0.3] [SOLVED] Task Notification - What I am doing wrong?
« Reply #1 on: July 04, 2015, 08:24:15 AM »

Hello,

Thank you very much for sharing this issue and its solution.
The use of JMX notifications can be a difficullt exercise, but also a powerful tool once you get how it works. If you haven't already done so, I would like to invite you to read the documentation section on the JMX forwarding mechanism, which allows you to forward managment and monitoring requests to any number of selected nodes, as well as receive notifications from them, with 2 main benefits that inspired its development:
- it works even when the nodes are not directly reachable (e.g. not in the same network or subnet) from the JMX client
- it automatically takes care of topology changes, when existing nodes are removed from the grid or new nodes are added

Thanks again,
-Laurent
Logged

rzo

  • JPPF Padawan
  • *
  • Posts: 4
Re: [5.0.3] [SOLVED] Task Notification - What I am doing wrong?
« Reply #2 on: July 04, 2015, 12:34:00 PM »

Hi,

thanks for your answer.

I will definitely take a look at the specified documentation section on JMX forwarding - thanks for this hint!
Maybe I will need this at a certain point in my upcoming project / MSc thesis.

Greetings,
rzo
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