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: enter image description here

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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -