In this section: |
iBSP requires a repository in which to store transactions and metadata needed for the delivery of Web services. Using a JDBC-compliant database for repositories is recommended, but file system repositories are available and configured by default.
Setting up the repository requires you complete the following tasks:
Follow the steps for your type of repository:
If you do not have access to a database for the repository, you can store repository information in an XML file on your local machine. However, a file system repository is less secure and efficient than a database repository. File system repositories can be used for development, but are not supported in production environments. When iBSP is first installed, it is automatically configured to use a file system repository.
The default location for a file-based repository depends on whether you are using Service Manager iBSP or Servlet iBSP.
C:\Program Files\iWay60\config\base\ibserepo.xml
C:\Program Files\Apache Group\Tomcat 4.1\webapps\ibse\ibserepo.xml
or
C:\Program Files\iWay60\config\base\ibserepo.xml
If you are using a file system repository, you are not required to configure any additional iBSP components.
To configure a Microsoft SQL Server 2005 and 2008 repository:
You can do this from the SQL Server Enterprise Manager by right-clicking your SQL Server, choosing Properties, and clicking the Security tab. If Authentication is set to Windows only, change it to SQL Server and Windows, then restart SQL Server.
Note: SQL Server has two authentication modes, Windows and SQL Server. Windows Authentication uses the same IDs as the Windows operating system. SQL Server Authentication uses IDs defined within SQL Server. iBSP uses the Microsoft SQL Server 2000 JDBC driver which requires SQL Server authentication.
C:\Program Files\iWay60\etc\setup
This directory contains SQL to create the repository tables in the following file:
iwse.sql
Once the database exists, you can use iwse.sql to create the database tables.
Note: If SQL Server is not on the same machine as iBSP, copy the iwse.sql file to the SQL Server machine. From a command prompt on the SQL Server machine, navigate to the directory containing the iwse.sql file.
osql -S hostname -d databasename -U loginID -P password -i iwse.sql
where:
Is the name of the machine where SQL Server is running.
Is the database you created in Step 1.
Is the SQL Server ID with db_owner rights from Step 3.
Is the password for the SQL Server ID.
The tables should be created in your database.
To configure an Oracle repository:
This user ID should have rights to create and modify tables as well as, the ability to create and execute stored procedures.
C:\Program Files\iWay60\etc\setup
For other platforms, see the corresponding location.
This directory should contains SQL to create the repository tables.
Note: If Oracle is not on the same machine as iBSP copy iwse.ora or iwse.ora9 to the Oracle machine. Then, from a command prompt on the Oracle machine, navigate to the directory containing the iwse.ora or iwse.ora9 file.
sqlplus userid/password @database @ iwse.ora
or
sqlplus userid/password
@database @ iwse.ora9
The SQL needed to create the repository is installed in the following file on Windows:
C:\Program Files\iWay60\etc\setup\sybase-iwse.sql
For other platforms, see the corresponding location.
A Sybase DBA should submit this SQL to create the repository tables and structure.
The SQL needed to create the repository is installed in the following file on Windows:
C:\Program Files\iWay60\etc\setup\db2-iwse.sql
For other platforms, see the corresponding location.
A DB2 DBA should submit this SQL to create the repository tables and structure.
After creating the repository, you must tell iBSP how to access it.
drive:\Program Files\iWay60\lib
The driver files depend on your database and driver. For more information about third-party driver files, see Required Database Driver Files.
http://hostname:9999
where:
Is the name of the host on which iWay is installed.
Repository Name |
Specify the type of repository that you are using. |
Driver Name |
Provide the JDBC Class to connect to the database. For SQL Server 2000: com.microsoft.jdbc.sqlserver.SQLServerDriver For SQL Server 2005: com.microsoft.jdbc.sqlserver.SQLServerDriver For SQL Server 2008: com.microsoft.jdbc.sqlserver.SQLServerDriver For Oracle: oracle.jdbc.driver.OracleDriver For Sybase: com.sybase.jdbc2.jdbc.SybDriver For DB2 Type 4 Universal JDBC driver: com.ibm.db2.jcc.DB2Driver For DB2 Type2 App driver: COM.ibm.db2.app.DB2Driver See your driver documentation for more information. If both iBSP and DB2 are on z/OS or OS/400, refer to your IBM driver documentation. |
Repository URL |
Provide the JDBC URL to connect to the database. For information on repository URL formats, see Repository URL Formats. |
User |
Provide the user ID to access the repository database. |
Password |
Provide the password to access the repository database. |
When Service Manager restarts, you should reverify iBSP using the sample Web service at:
http://hostname:9000
To enter connection information for Servlet iBSP:
The required driver files depend on your database and driver type. For more information on required third-party driver files, see Required Database Driver Files.
Refer to your application server documentation for information on setting CLASSPATH.
For example, if you deployed an expanded directory, you can copy the driver directly into the expanded WEB-INF\lib directory, for example:
C:\Program Files\iWay60\webapps\ibse\WEB-INF\lib
For Tomcat, if you deployed ibsp.war, Tomcat expanded it and you can copy the driver into this expanded directory, for example:
C:\Program Files\Apache Group\Tomcat 4.1\webapps\ibse\WEB-INF\lib
http://hostname:port/ibse
The following table lists and describes the fields.
Field |
Description |
---|---|
Repository Type |
Specify the type of repository you are using. |
Repository URL |
Provide a JDBC URL to connect to the database. For information on repository URL formats, see Repository URL Formats. |
Repository Driver |
Provide the JDBC Class to connect to the database. For SQL Server 2000: com.microsoft.jdbc.sqlserver.SQLServerDriver For SQL Server 2005: com.microsoft.jdbc.sqlserver.SQLServerDriver For SQL Server 2008: com.microsoft.jdbc.sqlserver.SQLServerDriver For Oracle: oracle.jdbc.driver.OracleDriver For Sybase: com.sybase.jdbc2.jdbc.SybDriver For DB2 Type 4 Universal JDBC driver: com.ibm.db2.jcc.DB2Driver For DB2 Type2 App driver: COM.ibm.db2.app.DB2Driver See your driver documentation for more information. If both iBSP and DB2 are on z/OS or OS/400, refer to your IBM driver documentation. |
Repository User |
Provide the user ID to access the repository database. |
Repository Password |
Provide the password to access the repository database. |
You should be redirected to the Servlet iBSP home page where you can test the sample Web service. However, until you redeploy or restart the server, your repository is not actually used.
After the server restarts or the application is redeployed, test it by going to the Servlet iBSP home page at:
http://hostname:port/ibse/IBSEServlet
If you receive an error, confirm the settings in:
http://hostname:port/ibse/IBSEConfig
The repository URLs have the forms listed in the following table.
Database |
JDBC URL |
---|---|
SQL Server |
jdbc:microsoft:sqlserver://hostname:port;DatabaseName=dbname;SelectMethod=cursor where:
|
Oracle |
jdbc:oracle:thin:@ hostname:port;SID where:
|
Sybase |
jdbc:sybase:Tds:hostname:port where:
|
DB2 |
For DB2 Type 4 Universal JDBC driver: jdbc:db2://hostname:port/dbname For DB2 Type2 App driver: jdbc:db2:dbname See your driver documentation for more information. If both iBSP and DB2 are on z/OS or OS/400, refer to your IBM driver documentation. where:
|
After you create the database repository, you must add the required driver files to the CLASSPATH of your application server. The required driver files depend on your database and driver.
For information on how to add the driver files to the CLASSPATH of your application server, see the documentation for your application server.
The following table below lists the driver files for common versions of the databases for which iWay provides database setup scripts.
Database Driver |
Required Driver Files |
SQL Server 2000 |
msbase.jar mssqlserver.jar msutil.jar |
SQL Server 2005 |
sqljdbc.jar |
SQL Server 2008 |
sqljdbc4.jar |
Oracle 8i |
classes12.jar |
Oracle 9i and higher |
ojdbc14.jar |
MaxDB |
sapdbc-7_5_0_5.jar |
Sybase |
jconn2.jar |
DB2 Type 4 Universal JDBC |
db2jcc.jar db2jcc_license_cisuz.jar |
DB2 Type 2 Legacy App |
db2java.zip See your driver documentation for more information. If both iBSP and DB2 are on z/OS or OS/400, refer to the IBM driver documentation. |
iWay Software |