A Java control illustrating how you can package Java controls into a control project.
While this control is identical to a control in the localControls folder of the WebServices sample project, its placement in a control project illustrates how you can package a control in a control project for greater portability. You can build this control's project to generate a JavaControlProject.jar file. That file can be used in multiple other applications. The JAR file will be placed in the Libraries folder.
This control coordinates a purchase order transaction that requires a database update and an EJB query. In addition to the transaction semantics of this control's logic, keep in mind that the work of this control is itself part of a transaction that will be rolled back if something goes wrong while the control is executing.
Use the ControlTest.jws web service in the WebServices/controlProjectTest folder to run this control.
This sample is located in the verifyFunds folder of the JavaControlProject in the SamplesApp WebLogic Workshop application. In the file system the location is:
BEA_HOME\weblogic81\samples\workshop\SamplesApp\JavaControlProject\verifyFunds\VerifyFundsImpl.jcs
To Run the Sample
Note that you run this sample by running its test container.
BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.sh