Databases Reference
In-Depth Information
6. This code has to be added before the super.beforeCommit(transactionEvent)
code statement.
What just happened?
Before commiing the transacion:
We are providing a handle to the EMPVO3 view object, which is the view instance
of the child view object for DeptVO1
The second line clears the cache for the view object and the last line will execute
the query.
Have a go hero - more on programming using APIs
Take a look at all the classes that were generated and see how they are different from
the others.
Override some of the framework methods and then write some logic to operate on the
objects differently.
Managing transactions
An applicaion module is the business service component that encapsulates the logical unit
of work. We can have diferent applicaion modules represening diferent units of work.
An applicaion module deines database sessions and provides transacion boundaries.
It also controls concurrent data accesses. An applicaion module is also responsible for
maintaining the connecion-pooling mechanism for the available connecions.
Configuring transactions
When we create business components, we are asked to create a database connecion.
We have created HRSchema as our connecion, and the applicaion module component
will use this connecion to create the transacion and session. If needed, the applicaion
module can also share the transacion.
We will use the Coniguraions tab in the applicaion module to create a coniguraion
for the client to interact with the applicaion modules. Using JDBC Datasource is
recommended for the WebLogic server to handle connecion pooling.
 
Search WWH ::




Custom Search