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

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 and J2EE
SAP CTO Sikka: SAP's innovation gets overlooked
SAP CTO expects today's SAP applications to be running in 2020
Tips on SAP ABAP
How to provide an SAP R/3 4.5B application server with a Web service interface
Consuming a Web service from an SAP 4.6c R/3 application server
SAP NetWeaver Configuration and Customization
Is C, C++ and Java knowledge required when learning SAP?
How to be a self-taught NetWeaver and ABAP expert
Getting started with a NetWeaver career
An ABAP user wants to learn XI

SAP interface technologies
SAP CTO expects today's SAP applications to be running in 2020
SAP TechEd 09 keynoters: Managing change today like trying to board a speeding train
SAP's Web 2.0 strategy makes way for social networking in business apps
Error when clicking the SAP GUI logon button
SAP applications demo: BP's key mapping
Viewing a list of SAP interfaces
Interface a locally developed application with SAP
Will there always be an implicit commit in an RFC?
Is there a way to search within IDocs using a purchase order number?
Configuring the JDBC Connector Service to perform database lookups

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
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, 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