Except for the differences below, the EJB 1.1 client model is identical to the EJB 1.0 model:
Finder method return types Finder methods in EJB 1.1 clients can return java.util.Collection or java.util.Enumeration. Finder methods in EJB 1.0 must return java.util.Enumeration. The use of java.util.Collection is recommended for new development.
Configuring Java finder method return types You can specify the return type for finder methods that return multiple keys with an IDL directive, as described in “Specifying Java package mappings for IDL modules”. If you import interfaces from an EJB-JAR file or EJB class files, these directives are created automatically.
When generating EJB stubs, choose the Java version to specify the default return type for IDL finder methods that lack an EJB package directive. See “Generating EJB stubs” for more information.
Home interface serialization You can call the Home.getHandle method to serialize a home interface proxy in an EJB 1.1 client.
EJBMetaData enhancements The EJBMetaData interface, used by development tools to dynamically inspect EJB components, provides an isStatelessSession method that returns true if the component is a stateless session bean.
Copyright © 2005. Sybase Inc. All rights reserved. |