|
Hi All
The deploy tool that comes with the J2EE
sdk let's you create an application client that looks up home interfaces
like this:
Context context = new
InitialContext();
Object homeRef =
context.lookup("java:comp/env/ejb/TitanEJB");
but I'm used to getting the home interface by
creating a Properties object,
Context context = new
InitialContext(getProperties());
Object homeRef =
context.lookup("TitanEJB");
private Properties getProperties(){
Properties returnValue = new Properties();
// Add some properties.
...
return returnValue;
}
Does anyone know how to connect to Sun's reference J2EE server using
the second strategy (ie. the one that uses a Properties object to create the
InitialContext)?
Rob |
