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

[995 byte] By [rrr123] at [2007-12-25]
# 1
I dont know it is very complicateddanny http://scriptsearch.blogspot.com/
almean2000 at 2007-7-6 > top of java,Enterprise & Remote Computing,AVK Portability...
# 2
Every J2EE app servers allow EJBs to be accessed using IIOP. So use iiop://host:port as value of your your url string and that will work for Sun's app server as well.Sahoo
sahoo_s_k at 2007-7-6 > top of java,Enterprise & Remote Computing,AVK Portability...