3.12.2 Procedure for starting the JavaBeans resources

You can start multiple JavaBeans resources on a J2EE server. The following figure shows the procedure for starting the JavaBeans resources when the server management commands are used.

Figure 3-28 Procedure for starting the JavaBeans resources

[Figure]

  1. Import and start the JavaBeans resource.
    Use the server management commands to import and start the JavaBeans resource on the J2EE server.
  2. Register the JavaBeans resource references to the Naming Service.
    When you start the JavaBeans resource, register the JavaBeans resource references in the J2EE resource Namespace of the Naming Service.
  3. Look up from the J2EE application to the Naming Service.
    Perform a look up from the J2EE application using the JavaBeans resource into the Naming Service. The set method of the JavaBeans resource is invoked by extending the lookup processing, and the property values specified in the JavaBeans resource property file are set up.
  4. Use the obtained references to invoke the get method of the JavaBeans resource.
    Use the references obtained by lookup to invoke the get method of the JavaBeans resource, and use the get method to obtain the values specified with the set method.

If a single class configures the implementation class of the JavaBeans resource, the class is available in the class file format, and if multiple classes configure the implementation class, like the classes related to the JavaBeans resource class, the classes are available in the JAR file format.