Os B Cookbook Installation Guide
Os B Cookbook Installation Guide
Os B Cookbook Installation Guide
These instructions are for an Oracle Service Bus 11g/SOA Suite 11g installation using version
11gR1 PS3 (11.1.1.4). We have used this version to write all the chapters of the book. If you
plan to use the latest 11gR1 PS4 (11.1.1.5) version expect to find some small differences in
some of the screenshots in this document as well as in the recipes of the book.
To minimize the resources needed for the environment; these installation instructions guide
you to configure both the Oracle Service Bus as well as the Oracle SOA Suite components in a
single Admin Server, using a development-only setup. Never use such a setup for production!
These instructions are Windows-based. Adjust for Linux accordingly. The document is an
adaption of the document written by Antony Reynolds and Matt Wright for their book Oracle
SOA Suite 11g R1 Developers Guide also available from Packt Publishing.
ff Install soapUI
ff Configure WebLogic Domain
ff Starting the server
ff Setup the OSB Cookbook standard environment
Memory requirements
This install requires 2.5 GB or more available memory. If you have less, try separating the
installation of the database onto a different machine.
Download files
1. Create c:\stageSOA and save there all files downloaded in the next steps. This
document assumes that path. If you save them somewhere else, then make sure
there are no spaces in your path and adjust accordingly when c:\stageSOA is
referenced in this document.
2. Go to: http://www.oracle.com/technetwork/middleware/service-bus/
downloads/index.html, expand Prerequisites & Recommended Install Process
for Release 11gR1 (11.1.1.4.0) and download the following to c:\stageSOA:
Oracle WebLogic Server 11gR1 (10.3.4) + Coherence + OEPE Package
Installer
Oracle Service Bus
2
OSB Cookbook Installation Guide
3. Go to: http://www.oracle.com/technetwork/middleware/soasuite/
downloads/index.html, expand Prerequisites & Recommended Install Process
for Release 11gR1 (11.1.1.4.0) and download the following to c:\stageSOA:
Repository Creation Utility 11.1.1.4.0
JDeveloper 11.1.1.4.0
SOA Suite 11.1.1.4.0 Part 1 of 2
3
Installation Instructions for Oracle Service Bus 11g Development Cookbook
4
OSB Cookbook Installation Guide
6. The c:\stageSOA folder should contain the files shown by the following screenshot:
5
Installation Instructions for Oracle Service Bus 11g Development Cookbook
5. Click Next.
6. Enter oracle into the Enter Password field and into the Confirm Password field.
7. Click Next.
8. Click Install.
9. Review the summary and make sure the database has been successfully installed
and click Finish.
Now the database is installed and we can configure it for Oracle Service Bus and SOA
Suite usage.
6
OSB Cookbook Installation Guide
The shutdown command can take a few minutes. Sometimes the shutdown/startup
command fails. In that case, simply restart the XE services in the Control Panel |
Administrative Tools | Services window after setting your parameters.
1. Run SQL Plus by clicking on the windows Start menu and selecting Programs |
Oracle Database 10g Express Edition | Run SQL Command Line.
2. Enter the following commands:
SQL> connect sys/oracle@xe as sysdba
SQL> show parameter session
SQL> show parameter processes
SQL> ALTER SYSTEM RESET SESSIONS SCOPE=spfile SID=*;
SQL> ALTER SYSTEM SET PROCESSES=200 SCOPE=spfile;
SQL> shutdown immediate
SQL> startup
SQL> show parameter session
SQL> show parameter processes
7
Installation Instructions for Oracle Service Bus 11g Development Cookbook
8
OSB Cookbook Installation Guide
18. Review the Checking Prerequisites pop up window and click OK.
19. Select the Use same passwords for all schemas option and enter oracle into the
Password and Confirm Password field.
20. Click Next.
21. On the Step 5 of 7 : Map Tablespaces page and click Next.
22. Click OK to create the tablespaces. This will take a while.
23. Click OK.
24. Review the Step 6 of 7 : Summary page and click OK.
25. Click Create to start creating the schemas. This will take a minute or two.
26. Review the Step 7 of 7 : Completion Summary page and click Close.
9
Installation Instructions for Oracle Service Bus 11g Development Cookbook
9. Select the All Users Start Menu folder and click Next.
10
OSB Cookbook Installation Guide
11. The installation process is started. The installation will take several minutes. Time for
a coffee ;-).
12. When the install is complete, deselect the Run Quickstart checkbox and click Done.
11
Installation Instructions for Oracle Service Bus 11g Development Cookbook
5. Click Next.
12
OSB Cookbook Installation Guide
8. On the Product Home Location page leave the default values for both the WebLogic
Server Location and the OEPE Location and click Next.
13
Installation Instructions for Oracle Service Bus 11g Development Cookbook
10. Wait for the installation to completewill take a few minutes. Time for a Tea ;-)
11. When install reaches 100 percent, click Next and then click Finish.
The Oracle Service Bus binaries are now installed. Next lets install Oracle SOA Suite binaries.
14
OSB Cookbook Installation Guide
7. On the Application Server page, select the WebLogic Server option and click Next.
8. Review the Installation Summary page and click Install. This will take a few minutes.
Time for a walk ;-)
9. When install reaches 100 percent, click Next and then click Finish.
The Oracle SOA Suite binaries are now installed. Next, lets install the JDeveloper IDE with the
SOA extension.
2. The installation wizard will open. This takes a few minutes. How about some Yoga?
15
Installation Instructions for Oracle Service Bus 11g Development Cookbook
16
OSB Cookbook Installation Guide
10. Select the All Users Start Menu folder option and click Next.
11. Review the Installation Summary page and click Next.
17
Installation Instructions for Oracle Service Bus 11g Development Cookbook
12. The installation starts and will take a few minutes to finish. Time to read the preface
of the Oracle Service Bus 11g Development Cookbook ;-).
13. When the installation completes, deselect Run Quickstart and click Done.
By now we have a standard JDeveloper installation, which we will next extend by the SOA
extension.
1. Start JDeveloper by clicking on the Start menu and selecting Programs | Oracle
Fusion Middleware 11.1.1.4.0 | JDeveloper Studio 11.1.1.4.0.
2. On the Select Role window, select the Default Role option and click OK.
3. If the Confirm Import Preferences dialog will show up, confirm it with Yes.
4. On the Configure File Type Associations dialog, select the JDeveloper Application and
JDeveloper Project option and click OK.
5. Close the Tip of the Day window.
6. From the Help menu, select Check for Updates.
7. On the welcome page, click Next.
8. Select the Fusion Middleware Products and Official Extensions option and
click Next.
18
OSB Cookbook Installation Guide
9. In the Available Updates list, scroll down to SOA Composite Editor and select the
checkbox for the SOA Composite Editor.
10. Click Next.
11. Wait for the update to finish downloading successfully. This is rather quick, depending
on the network bandwidth you will get, time for a short break..... ;-)
19
Installation Instructions for Oracle Service Bus 11g Development Cookbook
JDeveloper is ready to be used. Now lets create a runable server by running the
configuration wizard.
Install soapUI
SoapUI is a third-party program we use for testing the services developed in the recipes. To
install it, perform the following steps:
20
OSB Cookbook Installation Guide
21
Installation Instructions for Oracle Service Bus 11g Development Cookbook
This finishes the installation of soapUI and a desktop icon should have been created.
22
OSB Cookbook Installation Guide
3. On the Welcome screen, select the Create a new WebLogic domain option and
click Next.
5. Click Next.
23
Installation Instructions for Oracle Service Bus 11g Development Cookbook
9. On the Configure Administrator User Name and Password screen, enter welcome1
into the User password and Confirm user password field and click Next.
24
OSB Cookbook Installation Guide
10. Select the Sun JDK 1.6.0_21 and leave the Development Mode selected.
11. Click Next.
12. On the Configure JDBC Component Schema screen, first select all of the
components by selecting the checkboxes in the list on the left and then enter
oracle into the Schema Password field.
13. Select Oracle from the Vendor drop-down listbox; enter xe into the DBMS/Service
field, localhost into the Host Name field, and 1521 into the Port field.
25
Installation Instructions for Oracle Service Bus 11g Development Cookbook
15. The data source connections are all tested. Review the confirmation dialog and make
sure all are successful. Click Next.
26
OSB Cookbook Installation Guide
16. On the Select Optional Configuration screen, leave all the checkboxes unchecked
and click Next.
17. Review the Configuration Summary and click Create. The domain is created with one
single Admin Server.
18. Wait for the domain creation to finish and then click Done.
We have created a development-only installation, where Oracle Service Bus and Oracle
SOA Suite are both installed on the Admin Server. This is a setup which uses much less
resources than a full-fledged installation with an Admin Sever and two Managed Servers,
one for SOA Suite and one for Oracle Service Bus. Do not use such an installation for a
production environment!
2. Wait for the Admin Server to finish starting up. It takes a few minutes definitely time
for another coffee! ;-) Watch for the status RUNNING in log console window:
27
Installation Instructions for Oracle Service Bus 11g Development Cookbook
Now lets see if the WebLogic Server Administration Console is up and running. In a browser
window, perform the following steps:
Next, lets see whether the Oracle Service Bus Console is up and running. In a browser
window, perform the following steps:
28
OSB Cookbook Installation Guide
3. After a short while, the Oracle Service Bus Console should be shown as follows:
In the next section, we configure all the artifacts which are part of the OSB Cookbook
standard environment.
29
Installation Instructions for Oracle Service Bus 11g Development Cookbook
Do install the files necessary for following the recipes in the book, perform the following steps:
1. Create a c:\osb-cb folder to hold all the code files used in the OSB Cookbook.
2. Get the Oracle Service Bus 11g Development Cookbook Code Download from the
Packt website. You probably already downloaded it to get this document.
3. Unzip the 4446EN_Code.zip file to c:\osb-cb.
4. In Windows Explorer navigate to c:\osb-cb. The following subfolders should exist as
shown in the following screenshot:
There is one subfolder for each chapter inside the book (chapter-1 to chapter-12).
Each of these chapter folders holds two subfolders: getting-ready and solution. The
getting-ready folder contains the artifacts necessary upfront, before starting a certain
recipe and their usage is mentioned in the Getting Ready section of a given recipe. The
solution folder holds the finished solution of a recipe.
The setup folder contains the setup scripts for the database and the WebLogic server
environment.
30
OSB Cookbook Installation Guide
1. Open a command line window and enter (you have to change the install.cmd, if
you are not using the database installed in this document) the following command:
cd C:\osb-cb\setup\database
install.cmd
2. Review the SQL log window for errors and quit SQL Plus by entering the
following command:
SQL> exit
Now lets install the necessary artifacts, such as Data Sources, Connection Factories, and
JMS objects into WebLogic server. This is done through a WLST script by performing the
following steps (change the middleware home in the wlst-build.properties if needed):
1. Open a command line window and enter (you have to change the install.cmd, if
you are not using the database installed in this document) the following command:
cd C:\Oracle\Middleware\user_projects\domains\
osb_cookbook_domain\bin
setDomainEnv.cmd
cd C:\osb-cb\wlst
ant configureServerResources
31
Installation Instructions for Oracle Service Bus 11g Development Cookbook
2. Review the WLST log window for errors. Watch for the status script returns SUCCESS
showing successful creation of the various artifacts.
This finishes the set up of the Oracle Service Bus Development Cookbook environment.
We have installed both the database and the WebLogic environment and we are all set to
start using the recipes of the book.
Guido Schmutz, Edwin Biemond, Jan van Zoggel, Mischa Klliker, and Eric Elzinga
32