cancel
Showing results for 
Search instead for 
Did you mean: 

code for system-defined JCO destination

Former Member
0 Kudos

I am trying to establish a JCo conn from a stand alone java application running on NW7.4 J2EE server to an SAP backend.

The JCO destination has been successfully been defined and tested using the web dympro administration (NW7.4).

The issue is that I am not able to get to this destination from the java application. (I am using sapjco3.jar). An exception is raised:

com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination <myJCoDestinationName> does not exist.

try{

     JCoDestination dest = JCoDestinationManager.getDestination("<myJCoDestinationName>");

}catch(Exception e){

}

         

Does anyone have a sample code for calling system-defined JCo connections?

Creating JCo destinations using the web dympro admin, is this the right way? any other way to system define a Jco provider?

Stand alone JCo connection is NOT an option for me and yet mos to the SAP provided sample code is for stand alone direct connections with credentials defined in the code.

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

i think in nw7.4 you should use /nwa/destinations to create RFC destination. not web dynpro admin

Former Member
0 Kudos

Thanks a lot. it worked!

Answers (0)