I am trying to create a class than can be used to access the home of a
particular bean. For example, if I have an EJB called UserEntity, I would
create a special class called UserEntityHomeFinder which can be used to
easily obtain a home:
public class UserEntityHomeFinder {
private static final HomeFinder
homeFinder =
new HomeFinder("com.indnet.model.User", UserEntityHome.class);
public static UserEntityHome getHome() throws NamingException {
return
(UserEntityHome) homeFinder.getHome();
}
};
As you can see, this class defines the name of the home interface. I used
to use java:comp/env, however, the exception I got was that java:comp/env
was not available from a standalone client application.
So my question is this, is there a way to setup the naming conventions, so
that the CLIENT and SERVER can use uniform naming conventions to access the
homes of the bean?
Thanks.
-AP_