@ EventHandler ( field = "_resourceContext" , eventSet = ResourceEvents . class , eventName = "onAcquire" ) public void onAquire ( ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Enter: onAquire()" ) ; } try { getConnection ( ) ; } catch ( SQLException se ) { throw new ControlException ( "SQL Exception while attempting to connect to database." , se ) ; } }
Invoked by the controls runtime when a new instance of this class is aquired by the runtime