ejb 3.0 - Why must EJB Timer share a database connection in a cluster? -


i have singleton ejb bean timed method saves statistics database once every minute. bean holds statistics individually on each cluster node, important saves on each node too.

my concern since ejb timer service sharing database, run save-method on 1 of cluster nodes , not of them. mean not of statistics saved database. docs, http://docs.oracle.com/cd/e18930_01/html/821-2418/beahw.html, not seem mention anything.

anyone know how works?

if declare timer @schedule(..., persistent=true), cluster timer stored in timer db (which can migrated), run in 1 node.

if declare timer @schedule(..., persistent=false), node timer not stored in timer db (which can't migrated), invoked on each node.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -