Tutorials
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
In this section, you learn how to set up your environment, configure your resources, and start BEA AquaLogic Service Bus so that you can create the solutions that implement the business cases presented in the tutorial. You must complete the steps in this section before you start the other 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 the 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 certain qualifying criteria, such as the requested interest rate and the requested principal amount. The applicant's credit rating information is required in one of the scenarios to complete the loan request.
The tutorials represent typical use case scenarios for AquaLogic Service Bus. You will learn how to configure and use AquaLogic Service Bus to resolve the business scenarios presented in the specified use cases.
Complete the first tutorial to become familiar with AquaLogic Service Bus. You can build on what you learn in the first tutorial by completing the subsequent tutorials. These tutorials explore the basic functionality of AquaLogic Service Bus, including message routing and enrichment.
The following tutorials are available:
The files (including pre-built business services) that support the building of the tutorial solutions are located in the following directory:
BEA_HOME
\weblogic91\samples\servicebus\examples
The tutorial files contain properties that you must set to run the tutorials. Each business service also has a set of files associated with it. In the tutorial, you use four different business services. 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 the following table. You can explore the other directories as an exercise.
Table 2-1 Sample Files Provided in Support of the Tutorials
You must execute the following steps to set up and run the tutorials:
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
\weblogic91\samples\servicebus\examples
There are two subdirectories: \build
and \src
. You make the configuration changes to the files in the \src
directory.
To deploy the business services to your running tutorial domain, you must modify the properties responsible for specifying the WebLogic Server behavior. You do so in the WebLogic configuration section in the following file:
BEA_HOME
\weblogic91\samples\servicebus\examples\src\examples.properties
Listing 2-1 Fragment of examples.properties File
### WebLogic configuration ###
-- Configure per your WLS installation.
wls.hostname=localhost
wls.port=7001
wls.username=weblogic
wls.password=weblogic
wls.server.name=AdminServer
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
\weblogic91\samples\servicebus\examples\src
BEA_HOME
\user_projects\domains\ServiceBusTutorial\bin\setDomainEnv.cmd
.
where BEA_HOME
\user_projects
represents the default directory in which you created your ServiceBusTutorial
domain. (Use setDomainEnv.cmd
or setDomainEnv.sh
, as appropriate for your operating system.)
% cd
BEA_HOME
/weblogic91/samples/servicebus/examples/src/examples
% ../setEnv
where
BEA_HOME
represents the directory in which you installed AquaLogic Service Bus.
This step is only for Windows 2000 users. On Windows 2000 machines, a classpath length problem prevents you from running ant tasks and executing the tutorial. The workaround 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
Start AquaLogic Service Bus using one of the following methods:
Start
Where domain_name
represents the name you assigned your AquaLogic Service Bus domain when you created it.
startWebLogic.cmd
from the root of the AquaLogic Service Bus domain.startWebLogic.sh
from the root of the AquaLogic Service Bus domain.Note: If you created a production mode domain, you are required to 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:
ant run
cd
BEA_HOME
\weblogic91\samples\servicebus\examples\src\examples\webservices\jws_basic
Four business service folders exist in this directory. The following steps describe how to build and run each of the business services.
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:7001/sbconsole
The AquaLogic Service Bus Console login page is displayed. Enter the username and password you specified when you created the AquaLogic Service Bus domain.
After you complete the steps required to set up the tutorials, you are ready to proceed to Tutorial 1. Routing a Loan Application, which describes how to configure BEA AquaLogic Service Bus with the resources required for the routing scenario.
Each of the tutorials include instructions for designing and configuring the AquaLogic Service Bus resources, followed by test sections that you can use to test the configurations you complete.
![]() ![]() |
![]() |
![]() |