[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EJB Question




Our programs build the URL for EJB as follows:

static public Context getInitialContext() throws NamingException
  {
      Properties h = new Properties();
      h.put(Context.INITIAL_CONTEXT_FACTORY, 
"weblogic.jndi.WLInitialContextFactory");
      h.put(Context.PROVIDER_URL, "t3://localhost:7001");
      h.put(Context.SECURITY_PRINCIPAL, "system");
      h.put(Context.SECURITY_CREDENTIALS, 
ConfigMgr.getInstance().getWeblogicPassword());
      return new InitialContext(h);
  }


The customer that is trying to install this code is complaining that the URL 
should not be hardcoded in the program.  What is the industry standard for 
the URL for EJB?  Also the customer is trying to install this on UNIX.  
Would this make a difference??

Thank you,
Vanessa

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp