Hallo !
In the book "java persistence..." there is an example of integration test by means of the class EJB3IntegrationTest. This class has a method: @SuppressWarnings({"unchecked"}) protected <T> T lookupLocalBean(Class<T> beanInterface, String beanImpl) { try { System.out.println("look up: "+ beanImpl + "/local"); return (T)jndi.lookup(beanImpl + "/local"); } catch (NamingException ex) { throw new RuntimeException(ex); } }
In the case of DAOs this method returns UserDAOBean and ItemDAOBean instances But I don't understand where the string beanImpl + "/local" is looked up! Properties files do not contain this string. The constructor of InitialContet has no parameters. So, who can help to solve the riddle????
|