This content has been marked as final.
Show 1 reply
-
1. Re: Call start/stop-delivery using management API (ControllerClient) on MDB EJB in a jar packaged in a EAR
franfinance Oct 27, 2014 6:43 AM (in response to franfinance)I found the root cause : the call is made during the initialization of a servlet (init() method), and thus BEFORE the end of the deployment of the ear.
Delaying the call with something like the following fix the problem :
TimerTask _deferred = new TimerTask() { @Override public void run() { // call the function that use the client controller; } }; //here I wait 3 seconds as I'm working only on a local server. new Timer().schedule(_deferred, 3000);