I'm setting up an EJB client application that would support different EJB servers.  I've discovered that the clients could have different methods for obtaining a JNDI context for each server depending on the EJB vendor.  Doesn't this decrease the portability of EJB if I have to modify client code for each installation?  I was hoping that it would be as simple as coding Context.INITIAL_CONTEXT_FACTORY and Context.PROVIDER_URL properties for each vendor (which could be supplied as client startup properties) and then obtaining a InitialContext.
 
Am I missing something?  Has anyone gotten around this and developed a generic way for clients to obtain the server context?  Thanks.
 
Ron Yust
Director of Information Services
Empire District Electric Co.
(417) 625-5126 voice
(417) 625-5155 fax
 
 

Reply via email to