sas 9.3 integration correct bibliographic citation for this manual is as follows: sas institute...

Download SAS 9.3 Integration   correct bibliographic citation for this manual is as follows: SAS Institute Inc 2011. SAS 9.3 Integration Technologies: Java Client Developer’s Guide

Post on 09-Mar-2018

213 views

Category:

Documents

1 download

Embed Size (px)

TRANSCRIPT

  • SAS 9.3 Integration TechnologiesJava Client Developers Guide

    SAS Documentation

  • The correct bibliographic citation for this manual is as follows: SAS Institute Inc 2011. SAS 9.3 Integration Technologies: Java Client Developers Guide. Cary, NC: SAS Institute Inc.

    SAS 9.3 Integration Technologies: Java Client Developer's Guide

    Copyright 2011, SAS Institute Inc., Cary, NC, USA

    All rights reserved. Produced in the United States of America.

    For a hardcopy book: No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS Institute Inc.

    For a Web download or e-book:Your use of this publication shall be governed by the terms established by the vendor at the time you acquire this publication.

    The scanning, uploading, and distribution of this book via the Internet or any other means without the permission of the publisher is illegal and punishable by law. Please purchase only authorized electronic editions and do not participate in or encourage electronic piracy of copyrighted materials. Your support of others' rights is appreciated.

    U.S. Government Restricted Rights Notice: Use, duplication, or disclosure of this software and related documentation by the U.S. government is subject to the Agreement with SAS Institute and the restrictions set forth in FAR 52.22719 Commercial Computer Software-Restricted Rights (June 1987).

    SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513.

    1st electronic book, July 2011

    SAS Publishing provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. For more information about our e-books, e-learning products, CDs, and hard-copy books, visit the SAS Publishing Web site at support.sas.com/publishing or call 1-800-727-3228.

    SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration.

    Other brand and product names are registered trademarks or trademarks of their respective companies.

    http://support.sas.com/publishing

  • Contents

    Whats New in Integration Technologies Java Client Development . . . . . . . . . . . . . . . . v

    Chapter 1 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Developing Java Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Java Client Installation and JRE Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Java Client Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Using the IOM Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

    Chapter 2 Using the Java Connection Factory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Using the Java Connection Factory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Connecting with Directly Supplied Server Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Connecting with Server Attributes Read from a SAS Metadata Server . . . . . . . . . . . . . 10Connecting with Server Attributes Read from the Information Service . . . . . . . . . . . . 12Connecting to a Zero-Configuration Workspace Server . . . . . . . . . . . . . . . . . . . . . . . . 14Java Connection Factory Language Service Example . . . . . . . . . . . . . . . . . . . . . . . . . . 15Logging Java Connection Factory Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Using Failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Using Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Using Connection Pooling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Pooling with Directly Supplied Server Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Pooling with Server Attributes Read from a Metadata Server . . . . . . . . . . . . . . . . . . . . 22Pooling with Server Attributes Read from the Information Service . . . . . . . . . . . . . . . 22Returning Connections to the Java Connection Factory . . . . . . . . . . . . . . . . . . . . . . . . . 24

    Chapter 3 Using Java CORBA Stubs for IOM Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Using Java CORBA Stubs for IOM Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Null References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Exception Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Output Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Generic Object References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30IOM Objects That Support More than One Stub . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Events and Connection Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31Datetime Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

    Chapter 4 Using SAS Foundation Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Overview of SAS Foundation Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Connection Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Discovery Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Event Broker Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37Information Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37Logging Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38Publish Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38Security Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39Session Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39Stored Process Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39User Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

    Chapter 5 Using JDBC Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Getting a JDBC Connection Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

  • Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

    iv Contents

  • Whats New in Integration Technologies Java Client Development

    Overview

    SAS 9.3 Integration Technologies provides a new zero-configuration workspace server interface. In addition, the Logging service is deprecated.

    Zero-Configuration Workspace Servers

    The new zero-configuration workspace server interface enables you to launch a workspace server without specifying any connection information or configuring server metadata. Zero-configuration workspace servers require that SAS Foundation is installed on the same Windows machine where your client is running.

    Logging Service Deprecation

    The Logging service is deprecated in SAS 9.3. Custom SAS clients should use Log4j to perform logging tasks.

    v

  • vi Java Client Development

  • Chapter 1

    Concepts

    Developing Java Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

    Java Client Installation and JRE Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Client Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2JRE Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

    Java Client Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

    Using the IOM Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Overview of Using the IOM Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Using a Metadata Server with the Connection Service . . . . . . . . . . . . . . . . . . . . . . . 4Connecting a Java Client to an IOM Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

    Developing Java ClientsThe application programming interfaces that are provided with SAS Integration Technologies enable you to develop Java-based distributed applications that are integrated with the SAS platform. SAS Integration Technologies includes the following features for developing Java clients:

    The Connection Fac

Recommended

View more >