![]() ![]() ![]() ![]() ![]() ![]() |
In this chapter, you learn to:
Complete the steps in this section before you start the tutorials.
The AquaLogic Service Bus tutorials guide you through designing and configuring AquaLogic Service Bus resources and deploying a configuration. These tutorials use the AquaLogic Service Bus example suite as a basis for instruction. (See BEA AquaLogic Service Bus Examples Guide)
The tutorials describe a typical mortgage broker scenario for a loan application request. A primary mortgage company uses AquaLogic Service Bus to route loan applications to appropriate business services. The loan applications are routed to different business services depending on qualifying criteria, such as the requested interest rate and the requested principal amount. The applicant's credit rating information is required to complete the loan request when the principal amount is greater than US$ 25 million.
Complete the first tutorial to become familiar with AquaLogic Service Bus. The subsequent tutorials build on what you learn in the first tutorial. These tutorials explore the basic functionality of AquaLogic Service Bus, including message routing and enrichment.
The files (including pre-built business services) that support the building of the tutorial solutions are located in the following directory:
BEA_HOME
\weblogic92\samples\servicebus\examples
The tutorial files contain properties that you must set to run the tutorials. In the tutorial, you can use four different business services. Each business service also has a set of files associated with it. The files structure for each of the business services is the same—the directory structure for one of the business services, the normal service, is described in Table 2-1. You can explore the other directories as an exercise.
You must execute the following steps to set up and run the tutorials:
For this tutorial, in the Configuration Wizard, ensure that you:
ServiceBusTutorial.
For instructions on how to use the configuration wizard, see Creating WebLogic Domains Using the Configuration Wizard.
To develop and run the AquaLogic Service Bus tutorials you must modify some of the configuration properties. The associated files are located in the following directory:
BEA_HOME
\weblogic92\samples\servicebus\examples
There are two subdirectories: \build
and \src
. Make the configuration changes to the files in the \src
directory.
To deploy the business services on your running tutorial domain, you must modify the properties that specify the WebLogic Server behavior. You can modify the properties in the WebLogic configuration section of the following file:
BEA_HOME
\weblogic92\samples\servicebus\examples\src\examples.properties
ServiceBusTutorial
domain is running.AdminServer
) assigned by the Configuration Wizard). ### WebLogic configuration ###
-- Configure per your WLS installation.
wls.hostname=localhost
wls.port=7021
wls.username=weblogic
wls.password=weblogic
wls.server.name=xbusServer
Edit the setEnv
script (setEnv.cmd
on Windows or setEnv.sh
on UNIX systems)
in the following directory to replace the default path with the path to your tutorial domain's setDomainEnv
script.
BEA_HOME
\weblogic92\samples\servicebus\examples\src
BEA_HOME
\user_projects\domains\ServiceBusTutorial\bin\setDomainEnv.cmd
.
where BEA_HOME
\user_projects
is the default directory in which you created your ServiceBusTutorial
domain. (Use setDomainEnv.cmd
or setDomainEnv.sh
, as appropriate for your operating system.)
% cdBEA_HOME
/weblogic92/samples/servicebus/examples/src/examples
% ../setEnv
Where:
This step is only for Windows 2000 users. On Windows 2000 machines, a class path length problem prevents you from running ant tasks and executing the tutorial. This work around uses the subst
command to shorten the classpath passed by ant. Follow these steps to shorten the classpath:
setDomainEnv.cmd
file located in the Service Bus domain installation location, BEA_HOME
\user_projects\domains\ServiceBusTutorial\bin\
setDomainEnv.cmd
file search for the instruction that sets the PRE_CLASSPATH
. The instruction looks like:set PRE_CLASSPATH=%PRE_CLASSPATH%;%WL_HOME%\servicebus\lib\sb-public.jar;%
subst X: %WL_HOME%\servicebus\lib
subst Y: %WL_HOME%\integration\common\lib
subst Z: %WL_HOME%\server\lib
PRE_CLASSPATH
entry, replacing the path with the appropriate drive letter. For the example:set PRE_CLASSPATH=%PRE_CLASSPATH%;X:\sb-public.jar;X:\sb-internal.jar;Y:\wlicommon.jar;Y:\qs_p13n_system.jar;X:\xbus-core.jar;Z:\wlxbean.jar;Z:\xquery.jar;Z:\apache_xbean.jar;Z:\binxml.jar
setDomainEnv.cmd
file.setDomainEnv.cmd
script by entering the following commands:
Start AquaLogic Service Bus using one of the following methods:
Start ProgramsBEA Products
User Projects
domain_name
Start Server for AquaLogic Service Bus Domain
startWebLogic.cmd
from the root of the AquaLogic Service Bus domain.startWebLogic.sh
from the root of the AquaLogic Service Bus domain.A server command console window, displays status information about Weblogic Server.
Note: | If you created a production mode domain, enter a valid username and password to start the server. For more information about domains, see Creating WebLogic Domains Using the Configuration Wizard. |
You must start the server before building the Web Services. See Step 3: Start BEA AquaLogic Service Bus. After the server is started, you must run a build script to:
setEnv
script, as described in To Run the setEnv Script.webservices\jws_basic
directory.cd
BEA_HOME
\weblogic92\samples\servicebus\examples\src\examples\webservices\jws_basic
The directory contains four business service folders. Complete step 3 to step 5 to build and run each of the business services.
cd normal
Note: | To build the other business services (credit, large, and manager), change to the appropriate business service folder. |
ant
, then press Enter. A message indicating whether the command was successfully executed is displayed on the console.
ant
run
, then press Enter.A message from the business service is displayed at the command line. The message indicates whether the Web Service was run successfully.
\jws_basic
directory.To log in to the AquaLogic Service Bus Console, open a browser window and enter the following URL in your browser:
http://
host:port
/sbconsole
where host:port
represents the name and port number of the machine on which WebLogic Server is running. For example, if WebLogic Server is running on your local machine using the default port configuration, enter the following URL in your browser:
http://localhost:7021/sbconsole
The AquaLogic Service Bus Console login page is displayed. Enter the username and password that you specified when you created the AquaLogic Service Bus domain.
After you complete the steps required to set up the tutorials, you can proceed to Tutorial 1. Routing a Loan Application, which describes how you can configure BEA AquaLogic Service Bus with the resources required for the routing scenario.
Each of the tutorials include instructions to design and configure the AquaLogic Service Bus resources, followed by test sections that you can use to test the completed configurations.
![]() ![]() ![]() |