Skip to Content
0
Former Member
Sep 27, 2005 at 04:11 AM

The lookup of Destination Service returns null

174 Views

Hi

I am calling the Destination Service from a Standalone Java Application.

The following is the code:

param.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");

param.put(Context.PROVIDER_URL,"localhost:50004");

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

param.put(Context.SECURITY_CREDENTIALS,"sap123");

Context initialContext = new InitialContext(param);

Object dstService = initialContext.lookup(DestinationService.JNDI_KEY);

dstService returns null?????

I have ejb20.jar, logging.jar and sapj2eeclient.jar in the classpath.

Pls, provide me an answer.

Thanks