AccountEJBClient.jws Sample

A web service that demonstrates use of an EJB control AccountEJBControl.jcx, which represents the AccountEJB Entity Bean and exposes its business interface to web services.

Concepts Demonstrated by this Sample

Location of Sample Files

This sample is located in the ejbControl folder of the WebServices project in the SamplesApp sample application. In the file system the location is:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebServices\ejbControl\AccountEJBClient.jws

To Run the Sample

To run this web service:

  1. Start WebLogic Server in the appropriate domain.
  2. Launch the service either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/WebServices/ejbControl/AccountEJBClient.jws in the address bar of your browser. If WebLogic Server is running in the appropriate domain on this machine and you have deployed the SamplesApp sample application, you may click here to run the sample.
  3. Navigate to the Test Form tab of Test View, if necessary.
  4. Create one or more accounts by entering values for key, openingBalance and type and invoking the createNewAccount method.
  5. Click the Message Log title to return to the methods page. Experiment with the other methods in the interface.
  6. Examine the AccountEJBClient.jws and AccountEJBControl.jcx files to explore the relationship between the control and its client. The AccountEJBControl.jcx file was created using the Add EJB Control dialog.
  7. Select log entries in the Message Log to see the message traffic involved in each interaction.

Related Topics

Using WebLogic Built-In Controls

EJB Control

TraderEJBClient.jws Sample

Test View