Scheduling in Java EE without any database -
i'm trying schedule tasks in java ee application without use of database, including in-memory-databases derby. reason why i'm trying this, have deploy application on cluster no database available.
to reproduce problem i'm having, here minimal java example:
package testpackage; import javax.ejb.schedule; import javax.ejb.singleton; import javax.ejb.startup; @startup @singleton public class scheduler { @schedule(second="*", persistent=false) public void hello() { system.out.println("hello"); } }
when disabling jdbc/__timerpool
locally, same error when i'm trying deploy on cluster:
this results in exception: javax.naming.namingexception: lookup failed 'jdbc/__timerpool' in serialcontext
. exception disappears if remove @schedule annotation, means application not need timerpool.
is possible use non-persistent scheduling without database in java ee?
Comments
Post a Comment