How to run a Scheduled Method in a Cluster for one Node and for All?

kris.

New Member
I have a Glassfish 3.1.2 that runs in a cluster and a EJB 3.1 application. And I need two kind of Scheduled Methods in my application:
  • one kind that runs only once (on a single node) once a day
  • and other kind that runs on all nodes (every 1-2 Minutes) -- They do NOT need to run a syncron way! The requirement is just that this kind run on every node.
I have no clue how to start with this cluster - problem, is this possible with \[code\]@Schedule\[/code\] (and how) or do I need something else?
 
Top