Skip to Content
0
Former Member
Nov 10, 2006 at 02:15 PM

Checling the exception for Java code

24 Views

Hi,

I am using SAP EP 6.0 WAS 6.20

I have a java code which tries to get initial context

try

{

//try{

Properties p = new Properties();

p.put(Context.INITIAL_CONTEXT_FACTORY, "com.inqmy.services.jndi.InitialContextFactoryImpl");

//p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.InitialContextFactoryImpl");

p.put(Context.PROVIDER_URL, "137.72.229.238:50004");

p.put(Context.SECURITY_PRINCIPAL, "Administrator");

p.put(Context.SECURITY_CREDENTIALS, "password");

Context ctx = (Context) new InitialContext(p);

Object objRef = ctx.lookup("SAPEPUMEBean");

UMEEJBHome ejbHome = (UMEEJBHome)objRef ;

objUMEBean = ejbHome.create();

}

}catch(NamingException namingEx)

{

{

}

This code throws a naming exception.

I wanted to know in which file this exception stacktrace will be present .

Regards

Manoj