public EJBLocalHome getLocalHome ( String jndiHomeName ) throws ServiceLocatorException { EJBLocalHome home = null ; try { home = ( EJBLocalHome ) ic . lookup ( jndiHomeName ) ; } catch ( NamingException ne ) { throw new ServiceLocatorException ( ne ) ; } catch ( Exception e ) { throw new ServiceLocatorException ( e ) ; } return home ; }
will get the ejb Local home factory . clients need to cast to the type of EJBHome they desire