@ Override protected Future < ActivityData > submit ( ActivityCallable callable ) { try { if ( getEjb ( ) == null ) { logger . info ( "locating AsynchronousBean EJB through service locator" ) ; setEjb ( ServiceLocator . getService ( asynchBeanName , AsynchronousBean . class ) ) ; } else { logger . info ( "asynchronousBean EJB correctly initialized through dependency injection" ) ; } return getEjb ( ) . submit ( callable ) ; } catch ( Exception e ) { logger . error ( "error in the AsynchronousBean service locator lookup" , e ) ; } return null ; }
Assigns the given activity to a worker thread in the JavaEE application server returning the task s Future object .