Sat, 01 Dec 2007 00:00:00 +0000
Initial load
duke@1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
duke@1 | 2 | <html> |
duke@1 | 3 | <head> |
duke@1 | 4 | <!-- |
duke@1 | 5 | |
duke@1 | 6 | Copyright 2001-2006 Sun Microsystems, Inc. All Rights Reserved. |
duke@1 | 7 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 8 | |
duke@1 | 9 | This code is free software; you can redistribute it and/or modify it |
duke@1 | 10 | under the terms of the GNU General Public License version 2 only, as |
duke@1 | 11 | published by the Free Software Foundation. Sun designates this |
duke@1 | 12 | particular file as subject to the "Classpath" exception as provided |
duke@1 | 13 | by Sun in the LICENSE file that accompanied this code. |
duke@1 | 14 | |
duke@1 | 15 | This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 16 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 17 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 18 | version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 19 | accompanied this code). |
duke@1 | 20 | |
duke@1 | 21 | You should have received a copy of the GNU General Public License version |
duke@1 | 22 | 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 23 | Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 24 | |
duke@1 | 25 | Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
duke@1 | 26 | CA 95054 USA or visit www.sun.com if you need additional information or |
duke@1 | 27 | have any questions. |
duke@1 | 28 | |
duke@1 | 29 | |
duke@1 | 30 | --> |
duke@1 | 31 | |
duke@1 | 32 | </head> |
duke@1 | 33 | <body bgcolor="white"> |
duke@1 | 34 | |
duke@1 | 35 | <P>Allows programmers to construct object implementations that are portable |
duke@1 | 36 | between different ORB products. |
duke@1 | 37 | |
duke@1 | 38 | <P>The Portable Object Adaptor (POA) is designed to meet the following goals: |
duke@1 | 39 | <P> |
duke@1 | 40 | <UL> |
duke@1 | 41 | <LI>Allow programmers to construct object implementations that are portable between different ORB products. |
duke@1 | 42 | <LI>Provide support for objects with persistent identities. |
duke@1 | 43 | <LI>Provide support for transparent activation of objects. |
duke@1 | 44 | <LI>Allow a single servant to support multiple object identities simultaneously. |
duke@1 | 45 | </UL> |
duke@1 | 46 | |
duke@1 | 47 | |
duke@1 | 48 | |
duke@1 | 49 | <P>Given an interface <tt>My</tt> defined in <tt>My.idl</tt>, the file <tt>MyPOA.java</tt> is generated by the <tt>idlj</tt> compiler. You must provide the implementation for <tt>My</tt> and it must inherit from <tt>MyPOA</tt>. |
duke@1 | 50 | |
duke@1 | 51 | <P><TT>MyPOA.java</TT> is a stream-based skeleton that extends <tt>org.omg.PortableServer.Servant</tt> and implements the <tt>InvokeHandler</tt> interface and the operations interface associated with the IDL interface the skeleton implements. |
duke@1 | 52 | |
duke@1 | 53 | <P>The <TT>PortableServer</TT> module for the Portable Object Adapter (POA) defines the native <tt>Servant</tt> type. In the Java programming language, the <tt>Servant</tt> type is mapped to the Java <TT>org.omg.PortableServer.Servant</TT> class. It serves as the base class for all POA servant implementations and provides a number of methods that may |
duke@1 | 54 | be invoked by the application programmer, as well as methods which are invoked by the POA itself and may be overridden by the user to control aspects of servant behavior. |
duke@1 | 55 | |
duke@1 | 56 | |
duke@1 | 57 | |
duke@1 | 58 | <P>All Mapping corresponds to the Chapter 11 of |
duke@1 | 59 | CORBA V2.3.1 specified by OMG document formal/99-10-07.pdf. |
duke@1 | 60 | The exception to this is the <code>id</code> attribute, which is added in ptc/00-08-06, |
duke@1 | 61 | section 11.3.8.26. |
duke@1 | 62 | |
duke@1 | 63 | <H3>Package Specification</H3> |
duke@1 | 64 | |
duke@1 | 65 | <P>For a precise list of supported sections of official specifications with which |
duke@1 | 66 | the Java[tm] Platform, Standard Edition 6, ORB complies, see <A |
duke@1 | 67 | HREF="../../CORBA/doc-files/compliance.html">Official Specifications for CORBA |
duke@1 | 68 | support in Java[tm] SE 6</A>. |
duke@1 | 69 | <p> |
duke@1 | 70 | @since 1.4 |
duke@1 | 71 | <br> |
duke@1 | 72 | @serial exclude |
duke@1 | 73 | </body> |
duke@1 | 74 | </html> |