Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Development Infrastructure (NWDI)
Viewing all articles
Browse latest Browse all 1412

code for system-defined JCO destination

$
0
0

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.


Viewing all articles
Browse latest Browse all 1412

Trending Articles