Initializing Thin Beans

When you create a BI Beans thin bean in a servlet application, and when you load a thin presentation bean from the BI Beans Catalog, you should complete the following initialization tasks:

  1. Ensure that you have connections to data and to the BI Beans Catalog.

  2. Ensure that you have configured the BI Beans Catalog for HTML-client applications.

  3. Instantiate the ThinBeanUI or load it from the Catalog.

  4. If you load a presentation from the Catalog, then store its data source in a Query object. Call the getDataSource method of the presentation to get its Query object.

  5. Set the ThinBeanName of the thin bean. If you have a thin presentation, then also set the ThinBeanName of the Query object.

  6. Set the locale and the error handler for the thin bean.

  7. If you have standard initialization code that you perform on all thin beans, then perform standard initialization.

  8. Call the setBaseState method on the thin bean to initialize state management. If you have a thin presentation bean, then call the setBaseState method of the presentation and of the Query object.

  9. Perform any custom initialization on the thin bean.

  10. Store the thin bean in the HTTP session, or register it with the ServletRequestHandler. If you have a thin presentation bean, then also store or register the Query object.

Before you render the page, get the state of the thin bean (and of its query, if there is one) and store it.

BI Beans Request-Handling Sequence
Rendering Thin Beans
Managing State in an HTML-Client Application