2003
2006
2009
2013
OCCAS 5.x
JBoss EAP 6.x
JNDI
Cluster-wide timers
JMS
JDBC
Thread
EJB
WLST
a mechanism to bind an object to a name
a directory-lookup interface that allows general queries
LDAP
DNS
file system
Efficient naming conventions always form a tree (directory).
InitialContext ic = new InitialContext();
commonj.timers.TimerManager jobScheduler =(common.timers.TimerManager)ic.lookup
("weblogic.JobScheduler");
commonj.timers.TimerListener timerListener = new MySerializableTimerListener();
jobScheduler.schedule(timerListener, 0, 30*1000);
// execute this job every 30 seconds
loosely coupled, reliable, and asynchronous
Tightly coupled with synchronous RPC
loosely coupled, reliable, and asynchronous
Based on Jython 2.2.1