cancel
Showing results for 
Search instead for 
Did you mean: 

JCo RFC Provider Service

Former Member
0 Kudos

Hello

This topic may be not relevant to this forum but has anyone used JCo RFC Provider service for maintaining RFC Destinations?

What I am trying to do is to store the RFC Destinations over here and have a lookup on JCo RFC Provider service (or on its program id) from mapping tool.My code looks like

javax.naming.Context ctx = new InitialContext();

ctx.lookup("JCo RFC Service"); or

ctx.loopup("Program id name");

But while testing it gives Object Not Found exception.

I am expecting it to return JCO object which I can use to connect to SAP for executing RFCs.

Thanks in advance.

Regards

Rajeev

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi rajeev,

Did u check if the Prog Id mentioned in JCo RFC provider is running (started in visual admin).

Did u perform ur lookup properly

Properties p = new Properties();

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

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

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

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

javax.naming.Context ctx = new InitialContext();

ctx.lookup("JCo RFC Service");

Hope this helps you.

Cheers,

Siva Maranani.