java - EJB Timer runs to often in case of Exception -


in java ee application i'm using singleton bean @schedule worker method. calls statless bean pings server via soap. in case server down ejbexception gets thrown. shown in example service should run every 6 minutes, perfeclty works. pinged server down , exceptions occure service runs 1-2 times per minute. not statistiks , monitoring... can help?

@startup @singleton(name="pingtimerejb") public class pingtimerejb {      @ejb     private iservice service;      @schedule(hour = "*", minute = "*/6", persistent = false)     public void dowork() {         try {             service.ping();         } catch (final exception e) {// nopmd             //         }     } } 

setup: java 6, weblogic 12c, jre 170_71, ejb 3.1

before call service.ping() can try make low level tcp ip connection. example use clientsocket class. in way need store anywhere host , port.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -