Skip to Content
0
Former Member
Dec 01, 2006 at 12:55 AM

Lookup of RFC Destinations

33 Views

Hello Everybody,

I wanted to use Destinations API in webdynpro api.

I have written following line of code:

Context ctx = new InitialContext();

wdComponentAPI.getMessageManager().reportWarning("JNDI: "+DestinationService.JNDI_KEY);

DestinationService dstService = (DestinationService) ctx.lookup(DestinationService.JNDI_KEY);

if (dstService == null)

throw new NamingException("Destination Service not available");

RFCDestination dst =

(RFCDestination) dstService.getDestination("RFC", "CDMEXTN");

int maxPoolSize = dst.getMaxPoolSize();

long maxWaitTime = dst.getMaxWaitTime();

Properties jcoProperties = dst.getJCoProperties();

But at the time of look up it is giving me error:

java.lang.NoClassDefFoundError: com/sap/security/core/server/destinations/api/DestinationService

Why application cannot find this class on the server runtime?

what should be the problem?

Thanks in advance,

Bhavik