Oracle Internet Application Server 8I
Total Page:16
File Type:pdf, Size:1020Kb
Oracle Internet Application Server 8i Migrating from Oracle Application Server Release 1.0 June, 2000 Part No. A83709-01 Oracle Internet Application Server Migrating from Oracle Application Server, Release 1.0 Part No. A83709-01 Copyright © 2000, Oracle Corporation. All rights reserved. The Programs (which include both the software and documentation) contain proprietary information of Oracle Corporation; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this document is error free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation. If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on behalf of the U.S. Government, the following notice is applicable: Restricted Rights Notice Programs delivered subject to the DOD FAR Supplement are "commercial computer software" and use, duplication, and disclosure of the Programs, including documentation, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement. Otherwise, Programs delivered subject to the Federal Acquisition Regulations are "restricted computer software" and use, duplication, and disclosure of the Programs shall be subject to the restrictions in FAR 52.227-19, Commercial Computer Software - Restricted Rights (June, 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065. The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and Oracle Corporation disclaims liability for any damages caused by such use of the Programs. Oracle is a registered trademark, and the Oracle Logo, Internet Application Server, Oracle8i, Oracle Enterprise Manager, Oracle Internet Directory, and PL/SQL are trademarks or registered trademarks of Oracle Corporation. All other company or product names mentioned are used for identification purposes only and may be trademarks of their respective owners. This product includes software developed by the Apache Group for use in the Apache HTTP server project (http://www.apache.org/). Contents Preface............................................................................................................................................................ ix Audience ................................................................................................................................................. ix Conventions............................................................................................................................................ ix Oracle Services and Support ................................................................................................................. x 1 Introduction to Oracle Internet Application Server What is Oracle Internet Application Server? ................................................................................ 1-2 OAS and Oracle Internet Application Server Components....................................................... 1-2 Enterprise Services Migration.......................................................................................................... 1-2 Overview........................................................................................................................................ 1-3 Scalability....................................................................................................................................... 1-3 Availability and Fault Tolerance................................................................................................ 1-4 Load Balancing.............................................................................................................................. 1-4 Administration.............................................................................................................................. 1-5 Security........................................................................................................................................... 1-5 2 Migrating JWeb Applications to Apache JServ What is Apache JServ? ....................................................................................................................... 2-1 Migrating OAS JServlets to Apache........................................................................................... 2-1 JWEB and Apache JServ 1.1 Differences........................................................................................ 2-2 Architecture................................................................................................................................... 2-2 Life cycle ........................................................................................................................................ 2-5 Threading....................................................................................................................................... 2-6 Sessions .......................................................................................................................................... 2-6 iii Dynamic Content Generation in HTML Pages ........................................................................ 2-6 Code Modifications for JWEB Applications .................................................................................. 2-7 Session Control.............................................................................................................................. 2-7 Application Threads..................................................................................................................... 2-8 Logging........................................................................................................................................... 2-8 3 Migrating OAS Cartridges to Apache Modules Cartridge Types and Corresponding Apache Modules............................................................... 3-1 PL/SQL Migration............................................................................................................................... 3-2 File Upload/Download ............................................................................................................... 3-2 Uploaded File Document Format............................................................................................... 3-3 Using the oas2ias Tool.................................................................................................................. 3-4 Custom Authentication................................................................................................................ 3-6 Positional Parameter Passing Scheme ....................................................................................... 3-6 Executing SQL Files...................................................................................................................... 3-6 Perl Migration...................................................................................................................................... 3-7 Perl Applications under OAS ..................................................................................................... 3-7 Migrating Perl Cartridge Scripts from OAS to Oracle Internet Application Server........... 3-8 Variations from OAS Perl Cartridge.......................................................................................... 3-9 LiveHTML Migration....................................................................................................................... 3-10 SSI.................................................................................................................................................. 3-10 Scripts ........................................................................................................................................... 3-11 4 Migrating EJB, ECO/Java and JCORBA Applications Migrating EJBs..................................................................................................................................... 4-1 Deployment Descriptors.............................................................................................................. 4-1 Client Code .................................................................................................................................... 4-3 Logging (Server Code) ................................................................................................................. 4-3 Migrating ECO/Java ........................................................................................................................... 4-4 Remote Interface ........................................................................................................................... 4-4 Home