Property | Description |
---|---|
Repository Home | Directory where all schema files are generated and stored. For every stored procedure that you select, the invoker generates a corresponding request and response schema file. These files are stored in the repository home. The value of the User ID property and a hard-coded "SP" directory are used to create a directory under Repository Home. If the User ID is not specified, then SP is created in a directory called No_UserId. Tip... If you do not know the path of your temporary directory, locate it by typing %tmp% at the command prompt. Example #1 Repository Home = %tmp% User Id = tester The request and response schemas are created in %tmp%\tester\sp. Example #2 Repository Home = %tmp% User Id = (blank) The request and response schemas are created in the %tmp%\NO_USERID\sp Note: The Repository Home directory has a generated subdirectory called spInvokerBaseSchemas, which contains the base schemas: invokerBase.xsd, invokerRequest.xsd, and invokerResponse.xsd. |
Recreate Schema | Indicates whether to recreate the request and response schema for every database session. By default, Recreate Schema is set to FALSE. This ensures that the JDBC Stored Procedure Invoker does not recreate the request and response schema for every database session. If the procedure has changes, set the value to TRUE. This indicated that the component must generate a new request and response for the procedure if the schemas already exist. |
Procedure Schema | (Optional) If a procedure is contained within a particular schema, specify the schema in which to search for the procedure. If this field is not specified, all schemas in the database are searched. |
Driver | JDBC driver to load and use. For example: oracle.jdbc.driver.OracleDriver |
Host URL | JDBC URL connection to the database. For example: jdbc:oracle:thin:@dbserver1:1521:mydbname |
User ID | Username for the database session. Note: Provide the user ID for the database session only if it is configured for your database. |
Password | The password for the database session. |
Jar Location | Directory that contains the JAR files that are required to load the JDBC driver. Note: You cannot append multiple paths to the value. All driver JAR files must be located in the same folder. Caution! Always use the latest JAR files for a particular database version. |
Global Transaction | Select this option to make it a global. |
Action | Description |
---|---|
Execute | Executes the selected stored procedure. Requires two DJMessage objects, one that contains the XML request and one to capture the XML response. The maximum size limit for DJMessage is 2 GB. |
Connect | Opens a persistent connection to the database |
Disconnect | Closes an existing database connection and performs any clean up actions required. |
BeginTransaction | Starts an implicit transaction for the session that can be committed or rolled back. |
CommitTransaction | Commits any insert, update, or delete operations made on the database. |
RollBackTransaction | Rolls back any SQL statements that have been sent to the database using the WebRowSet XML format. |
Action | Parameter | Description |
---|---|---|
Execute | SourceMessage | Request XML message used to execute the procedure. |
TargetMessage | Response XML message returned from executing the procedure. The target message is in WebRowSet XML format. |
Action | Property | Description |
Execute | Stored Procedure | Stored procedure that the JDBC Stored Procedure Invoker should invoke. For example: StoredProcedure=SP_RS. Select a stored procedure from the list. Based on your selection, the JDBC Stored Procedure Invoker automatically creates a request and response schema in the repository home folder. Note: The spInvokerBaseSchemas contains the base schemas invokerBase.xsd, invokerRequest.xsd, and invokerResponse.xsd. The user interface displays a reference to the request and response schemas. |
Execute | Source Schema | Name of the schema created based on metadata from the stored procedure. The source schema is used to define the structure of the request that is passed in at run time. The response schema file is located in the repository home folder. The JDBC Stored Procedure Invoker automatically maps the path to the request schema in the repository home. |
Execute | Target Schema | Name of the response schema file created by the JDBC Stored Procedure Invoker, based on the chosen stored procedure. The response schema file is located in the repository home folder. JDBC Stored Procedure Invoker automatically maps the path to the response schema based on your entry in the Repository Home instance property. |
Error Code | Error Name | Description | Reason |
19 | ERR_OPENERR | Error while connecting to the database | Returned when an exception occurs while connecting to the specified database |
27 | ERR_CLOSERR | Error while disconnecting from the database | Returned when an exception occurs while disconnecting from the specified database |
98 | ERR_TRANSACT | Error while using transaction method like commit, rollback. | Returned when an exception occurs while using transaction methods like commit and rollback |
89 | ERR_EXECUTE | Error while running the stored procedure | Returned when an exception occurs while running the stored procedure (Execute method) |