Importing a Java class or interface in EAServer Manager
If necessary, create the EAServer package that will contain the component. See “Creating a new package” for details.
Specify the package to install the component in as follows:
Double-click the Packages folder to expand it.
Highlight the package to which the component will be added.
Choose File | New Component from the menu.
In the Component Wizard dialog box, select Import from Java File, and click Next.
Verify that the displayed importer CLASSPATH contains the JAR files and directories required to instantiate the bean’s classes, specifically:
Verify that the code base under which the class files are deployed is included.
If the classes are in a JAR file, verify that the full path to the JAR file is included.
If the class definitions require other JAR files or directories not listed, list them as well.
If necessary, use the Add, Modify, Delete, Move Up, and Move Down buttons in the Component Wizard to modify the CLASSPATH. The displayed CLASSPATH affects only this importer session, not the EAServer process.
Enter the component name in the Import Java Class File dialog box.
Choose the type of file to be imported:
Java Class See “Importing Java classes”.
Java Interface See “Importing Java interfaces”.
If importing a Java interface, choose the type of component to be defined in the drop-down list.
Browse for the Java class file that contains the class or interface that is being imported.
The importer will read the specified file, define an IDL interface as described below, and define a component that implements the IDL interface.
Copyright © 2005. Sybase Inc. All rights reserved. |