12 |
import javax.ejb.TimerService; |
import javax.ejb.TimerService; |
13 |
|
|
14 |
/* GFv3: before using a timed bean make sure the ejb timer service is correctly configured with a datasource and the timer table is created |
/* GFv3: before using a timed bean make sure the ejb timer service is correctly configured with a datasource and the timer table is created |
15 |
* cd /inst/glassfishv3/glassfish/domains/domain1/lib/databases/ejbtimer |
* cd <glassfishv3>/glassfish/domains/domain1/lib/databases/ejbtimer |
16 |
* /usr/lib/jvm/java-6-sun/db/bin/ij |
* /usr/lib/jvm/java-6-sun/db/bin/ij |
17 |
* connect 'jdbc:derby:.'; |
* connect 'jdbc:derby:.'; |
18 |
* paste content from /home/torben/inst/glassfishv3/glassfish/lib/install/databases/ejbtimer_derby.sql |
* paste content from <glassfishv3>/glassfish/lib/install/databases/ejbtimer_derby.sql |
19 |
* |
* and content from <glassfishv3>/glassfish/lib/install/databases/upgrade/ejbtimer_upgrade_derby.sql (need the applicationID column) |
20 |
|
* after this make sure that all the files are owned by the user your GFv3 instance is running as |
21 |
* */ |
* */ |
22 |
|
|
23 |
//@Stateless |
@Stateless |
24 |
public class TimedEjb implements TimedObject { |
public class TimedEjb implements TimedObject { |
25 |
|
|
26 |
@Resource |
@Resource |