Using the BTTStartup component

The BTTStartup component is provided as bttstartup.jar in the toolkit. To take advantage of the BTTStartup component, you need to add it to the .ear file of your toolkit components. For example, to use the BTTStartup component to load the dse.ini file and the CHA Formatter Service external definition files into the memory, do the following:
  1. Import bttstartup.jar to BTTFormatter.ear, which is the .ear file of the CHA Formatter Service, as an EJB module.
  2. Change the JNDI name of com.ibm.btt.misc.LoadMetaDataStartupBean that is in the .ear file of the formatter service.
    Note: You can change it to any name you prefer, but the JNDI name must not be the same with any other startup beans existing on the same WebSphere Application Server.
  3. Add bttbase.jar to the Java Build Path of this EJB module.
  4. Add startupbean.jar to the Java Build Path of this EJB module. To do this:
    1. Right click the EJB module.
    2. Select Properties in the pop up menu.
    3. Click Libraries in the pop-up window to show the Libraries page.
    4. Click the Add variable button on right side of the page. A window pops up.
    5. Select WAS_EE_V5 in the list in the window.
    6. Click the Extend button at the bottom of the window. A window pops up.
    7. Select startupbean.jar under the lib directory and click OK.
  5. Use the WebSphere Application Server Application Assembly Tool to open BTTFormatter.ear.
  6. In the EJB hierarchy view of the tool, select Session Beans > LoadMetaDataStartupBean > Environment Entries.
  7. In the Environment Entries, add a variable named dseIniPath, and input the path of the dse.ini as its value. In the Type text field, input String.
    Note: In Microsoft Windows platform, use double back slash instead single back slash in the file path. For example, type c:\\dse\\dse.ini instead of c:\dse\dse.ini.
  8. Deploy BTTFormatter.ear on WebSphere Application Server.