Download EJB Server User`s Guide
Transcript
Installing components The Component wizard displays. 3 In the Type of Component window, select Import an EJB Class File, and click Next. 4 Enter the component name and EJB class and interface names as follows: • • Component name The name of the component to be created in the Adaptive Server plug-in, for example, FinanceBean. Component type Choose one of the following to match your implementation: Type Description StatelessSessionBean StatefulSessionBean A stateless session Bean A stateful session Bean EntityBean An entity Bean with Bean-managed persistence. • Remote interface The full path to the Java class file that contains the Bean’s remote interface. • Home interface The full path to the Java class file that contains the Bean’s home interface. • Bean class name The full path to the Java class file that contains the Bean’s implementation class. • Primary key class If defining an entity Bean, enter the full path to the Java class file that contains the Bean’s remote interface. If defining a session Bean, leave blank. 5 Click Next. 6 The Adaptive Server plug-in displays the Component Properties dialog box. The Component’s type and Java classes have been filled in by the importer. Specify values for the remaining properties before running the Bean. Installing components Your component must be installed in a package before it can be run by applications. Components that have the same name but are installed in different packages are different components; modifying or deleting one does not effect the other. 74