Home > IT checklist: Getting connected with SAP's Java Connector
Checklist:
EMAIL THIS LICENSING & REPRINTS

IT checklist: Getting connected with SAP's Java Connector

15 Jul 2005

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

The JCo API offers eight distinct JCO.createClient() methods to establish a connection to the SAP application server. Eight uses of the same connection method may seem to be a bit overwhelming at first. In actuality, there are really only three mechanisms used by the JCo API to pass values to the createClient() method. This article reviews these mechanisms and offers some recommendations on the best way to pass system parameters to an SAP JCo connection.

The most basic use of createClient() is to simply call this method by passing the required parameters as String values. These are relatively quick and dirty connections to SAP, and are mainly useful in a development effort that requires a basic connection to the SAP application server.

The second mechanism for calling createClient() entails the use of a multi-dimensional String array where parameters are passed as name/value pairs. This technique is more robust than the first and allows you to pass more system parameters to SAP.

The third mechanism allows you to pass an external properties file with name/value pairs as a single value to the createClient() method. This is useful when a centralized configuration is required.

In addition to the first method mentioned above, the JCo API provides 5 other versions of the createClient() method that allow you to pass String parameters directly. The differences between each version illustrate the different connection mechanisms available in the SAP server landscape. These range from connecting to a single SAP application server with no load balancing, to calling a message server that supports logon load balancing across an SAP system, to executing a registered RFC server program on a remote system. This article focuses on the transport mechanisms rather than on the varied system landscape connections. However, each example can be tailored to the specific configuration of your SAP systems.


GETTING CONNECTED WITH JCO

 Home: Introduction
 Part 1: Specifying parameters as single String values
 Part 2: Specifying parameters using a String array
 Part 3: Specifying parameters using an external properties file
 Part 4: Specifying parameters with a custom properties file
 Review: Conclusion and more resources
ABOUT THE AUTHOR:
Austin Sincock, technical author and SAP/Java evangelist
Austin Sincock is a freelance SAP integration architect, specializing in high performance Java development for SAP. He is also the author of Enterprise Java for SAP.
Copyright 2005 TechTarget


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
SAP Java / J2EE
The difference between an SAP system and a non-SAP system
Is C, C++ and Java knowledge required when learning SAP?
Getting started with a NetWeaver career
How to be a self-taught NetWeaver and ABAP expert
An ABAP user wants to learn XI
Select Text fields: Case-insensitive
Finding BADIs you can use
SAP ABAP development quiz
Is this the quickest way to find a BADI?
Easily debug error messages in SAP processes

SAP Interface Technologies
Is C, C++ and Java knowledge required when learning SAP?
An ABAP user wants to learn XI
Select Text fields: Case-insensitive
Finding BADIs you can use
SAP ABAP development quiz
SAP exec discusses Imagineering, the future of development
Tools for enabling SAP screens on a BlackBerry
Is there a 'load of program' option in report generation?
Deleting entries from a dynamic table
Defining a structure in a report

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Application Link Enabling  (SearchSAP.com)
IDoc  (SearchSAP.com)
Remote Function Call  (SearchSAP.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary




SAP Exchange Infrastructure (XI) Research Papers
HomeNewsTopicsBlogsTipsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts