users@glassfish.java.net

Re: EJB 3.1 Timer Service

From: <glassfish_at_javadesktop.org>
Date: Mon, 15 Dec 2008 11:33:41 PST

Unfortunately update center doesn't have current updates.

This is what you can do:
1. Download the following jars from the maven repo and place them under glassfish/modules/ejb:
http://download.java.net/maven/glassfish/org/glassfish/javax.ejb/3.0-SNAPSHOT/javax.ejb-3.0-SNAPSHOT.jar
http://download.java.net/maven/glassfish/org/glassfish/ejb/ejb-container/3.0-SNAPSHOT/ejb-container-3.0-SNAPSHOT.jar
http://download.java.net/maven/glassfish/org/glassfish/ejb/gf-ejb-connector/3.0-SNAPSHOT/gf-ejb-connector-3.0-SNAPSHOT.jar

If you have an ejb module from prelude installed, you need to replace the jars (they'll have different names).

2. Download the latest timer app war file that you can simply redeploy (in prior versions of Glassfish it wasn't possible to redeploy a timer app, but there is nothing special about it any more):
http://download.java.net/maven/glassfish/org/glassfish/ejb/ejb-timer-service-app/3.0-SNAPSHOT/ejb-timer-service-app-3.0-SNAPSHOT.war

3. Either
a) change jdbc/__TimerPool resource to use a non-xa pool (your own or the one used by jdbc/__default) but then your app will be able to use only 1 pool.

b) add jts for XA support:
Download the following jars and copy them to glassfish/modules:
http://download.java.net/maven/2/com/sun/corba/glassfish-corba-omgapi/3.0.0-b001/glassfish-corba-omgapi-3.0.0-b001.jar
http://download.java.net/maven/glassfish/org/glassfish/transaction/jts/3.0-SNAPSHOT/jts-3.0-SNAPSHOT.jar

The same rule apply: if you have prelude versions installed, you need to remove those or rename the new ones to have the version removed from the jar name.

Restart GF.

HTH,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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