Will AVK solve my problem ?
Hi All,
I am writing a test client to unit test Business layer components (including EJBs) running on Sun Application Server version 7. For a test client to make external connection to App server I need values of following parameters in Sun App server: INITIAL_CONTEXT_FACTORY PROVIDER_URL
I have following code snippet which works for Weblogic, can someone please provide similar code example for Sun App server ? And also is there a concept called T3 connection in Sun App server ?
static String url = "t3://hostname:portnumber";
public static Context getContext() throws Exception
{
Properties props = new Properties(); props.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
props.put(Context.PROVIDER_URL, url);
Context ctx = new InitialContext(props);
The T3 protocol may be Weblogic specific and Sun App Server may call it by a different name.
Thanks in advance
Ram

