users@glassfish.java.net

Re: timerpool on cluster

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Sep 2008 08:44:05 PDT

In the cluster case the entire cluster must share the same database so you can't use the default embedded one. You'll first need to create the timer table in the database of your choosing. You can find the appropriate .sql scripts for each database in $GLASSFISH_HOME/lib/install/databases.

Then create a connection pool that points to your timer database. Then create a jdbc resource that points to your connection pool. Finally, set the Timer Datasource attribute via the admin console to point to your jbdc resource. There's no need to set mappedName on @Resource itself.

http://docs.sun.com/source/819-0215/containers.html#wp1023179
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=300160