protected Method mapControlBeanMethodToEJB ( Method m ) { Method ejbMethod = findEjbMethod ( m , _homeInterface ) ; if ( ejbMethod == null ) { if ( _beanInstance == null ) { _beanInstance = resolveBeanInstance ( ) ; if ( _beanInstance == null ) { throw new ControlException ( "Unable to resolve bean instance" ) ; } } ejbMethod = findEjbMethod ( m , _beanInstance . getClass ( ) ) ; if ( ejbMethod == null ) { throw new ControlException ( "Unable to map ejb control interface method to EJB method: " + m . getName ( ) ) ; } } return ejbMethod ; }
Map a control bean method to an EJB method .