Step 3. Configure the Servlet in WebLogic Server
Configuration of the Jolt connection pool and startup class MBeans for WebLogic Server 6.0 or later is done through Administration Console.
- Copy the
simpapp.html
page into your WebLogic document root directory.By default, this is the
\config\mydomain\applications\simpapp
directory in your WebLogic Server distribution. The HTTP server built into WebLogic looks in this directory for HTML pages and other MIME types. - Start the WebLogic Server Administration Console by typing the following address in your browser:
http://hostname:listenport#/console
- Open the Services folder in the left frame of the console, and then click the Jolt folder. The Jolt Connection Pools table displays in the right frame showing all the Jolt connection pools defined in the domain.
- Click the Create a New Jolt Connection Pool link. A tabbed dialog box displays in the right frame for configuring a new connection pool.
- On the General tab, complete the following information:
- Enter values in the Name, Minimum Pool Size, Maximum Pool Size, and the Recv Timeout attribute fields.
- Select the Security Context Enabled check box to enable security context (to propagate the security information from the WebLogic Server environment to the Tuxedo environment).
- Click Create to create a connection pool instance with the name that you specified in the Name field. The new instance is added under the Jolt node in the left frame.
- Click the Config-Addresses and the Config-User tabs individually to change the attribute fields or accept the default values as assigned, and then click Apply to save your changes.
- Click the Targets tab and select an available server where you want the Jolt connection pool started.
- Under the Deployments folder in the left frame, click the Startup & Shutdown folder. The Startup and Shutdown table displays in the right frame showing all the startup classes defined for your domain.
- Click the Create a New Startup Class link. In the tabbed dialog box that displays in the right frame, configure a new startup class, as follows.
- Enter values in the Name, Class Name, and Arguments attribute fields.
- Select the Abort Startup on Failure check box to prevent starting the WebLogic Server whenever a failure occurs.
- For the Class Name, enter the following name:
bea.jolt.pool.servlet.weblogic.PoolManagerStartUp
There are no arguments for this startup class.
- Click Create to create a startup-class instance with the name that you specified in the Name field. The new instance is added under the Startup & Shutdown folder in the left frame.
- Register the
simpapp
servlet as a Web application, as follows:- Open the Deployments folder in the left frame of the console, and then click the Web Applications icon.
- On the Install or Update an Application dialog box, click the Install a New Web Application link.
- For Step 1, either accept the default a destination directory for the
simpapp
servlet or select a different one. - For Step 2, enter the path to the
simpapp
servlet (or use the Browse feature), and then click the Upload button.
The
simpapp
servlet is registered as a Web application in WebLogic and appears as an icon under the Deployments\Web Applications folder.
Parent topic: Using the Example