BEA Logo BEA WLCS Release 2.0

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WLCS Doc Home   |   WLCS Components Tour   |   Previous Topic   |   Next Topic   |   Contents   |   Index   |  

Deploy

 

This section contains the following topics:

Overview of Deployment

Prerequisites for Deployment

Directions for Deploying

Step 1. Compile the BeanieHat and BeanieHatPricePolicy Components.

Step 2. Create all stubs and skeletons for the BeanieHat Component.

Step 3. Configure the target application server (BEA WebLogic Application Server).

Step 4. Create instances of the BeanieHat Component based on Marketing beanie hat data.

 


Overview of Deployment

After a short implementation phase, your team has now finished coding the My BuyBeans site solution. It is now time to finally deploy the new customized BEA WebLogic Commerce Server. You once again assemble your team.

You explain to the team members that deploying BEA WebLogic Commerce Server requires a few easy steps. First, you must compile the newly created components. Next, you must create a EJB deployment descriptor (DD) for the generated EJB implementation of the BeanieHat Component. This serialized object describes declarative information (i.e. information that is not included directly in the EJB code) that an Application Server uses to deploy the EJB. The Application Server in which the new WebLogic Commerce Server are to deployed then needs to be configured. Finally, BeanieHat Component instances must be created using beanie hat data given to your team by Marketing. With these four easy steps now in mind, your team proceeds.

 


Prerequisites for Deployment

In order to fully understand this section of the tour, it is recommended that you have a general understanding of the BEA WebLogic Application Server and its property file settings. For more information on this topic, please see the WebLogic Server (WLS) documentation at http://www.weblogic.com/docs51/resources.html. You must also have successfully completed all steps of the Implement section of the tour.

Also, before starting the deployment steps below, be sure to remove the custom "Finder Methods" manually from the source files (.java) that are generated from the model by the Smart Generator.

 


Directions for Deploying

Step 1. Compile the BeanieHat and BeanieHatPricePolicy Components.

Note: Ensure the BuyBeans server is shut down prior to compiling the tour.

  1. Open a command prompt.

  2. Navigate to the bin\win32 directory under the WebLogic Commerce Server installation directory.

  3. Type tour-build at the command line and hit Enter.

  4. The tour-build file contains a javac command to compile and install both Components. For more information, you might want to look at the contents of this file.

Step 2. Create all stubs and skeletons for the BeanieHat Component.

  1. Open a command prompt (if one is not already open).

  2. Navigate to the bin\win32 directory under the WebLogic Commerce Server installation directory.

  3. Type tour-deploy at the command line and hit Enter.

  4. The tour-deploy file contains the weblogic.ejbc commands to create all stubs and skeletons for the BeanieHat Component. For more information, you might want to look at the contents of this file.

Step 3. Configure the target application server (BEA WebLogic Application Server).

  1. If the MyBuyBeans.com WebLogic Application Server is running, shut it down.

  2. Using your favorite editor, open the file weblogic.properties located in the WebLogic Commerce Server installation directory.

  3. Locate the following line in the file (where WL_Commerce_Home is the WebLogic Commerce Server installation directory):

    WL_Commerce_Home\lib

  4. Add the following line (again, where WL_Commerce_Home is the WebLogic Commerce Server installation directory):

    WL_Commerce_Home\lib\Tour.jar

  5. This statement tells the WebLogic Application Server the location of the deployment descriptor for the BeanieHat Component so that it can deploy the Component.

Step 4. Create instances of the BeanieHat Component based on Marketing beanie hat data.

  1. The beanie hat data is stored in a Microsoft Excel worksheet named BeanieHats.xls. It can be found in the WL_Commerce_Home\db directory. Please feel free to add or remove any beanie hat data in this file. Just be sure to export the worksheet as a tab delimited file named BeanieHats.txt. This file must be saved in the same directory as the BeanieHats.xls file. If you do add any new beanie hat data, you must include all data declared as required in the Microsoft Excel worksheet.

  2. From the Windows Start menu, select Start --> Programs --> BEA WebLogic Commerce Server --> Examples --> My BuyBeans.com Server (CMP) to start the My BuyBeans.com WebLogic application server, and wait for it to initialize.

  3. Open a command prompt (if one is not already open).

  4. Navigate to the bin\win32 directory under the WebLogic Commerce Server installation directory.

  5. Type tour-loader at the command line and hit Enter.