|
WebLogic Server 6.1 Code Examples, BEA Systems, Inc. | |||||
See:
Description
| Class Summary | |
| Client | This class illustrates calling a Message-Driven bean and publishing quotes on a topic. |
| MessageTraderBean | |
This example is a package that demonstrates anEnterprise Java Message Bean written to the EJB 2.0 specification.
The example demonstrates:
The EJB 2.0 examples included in the WebLogic Server 6.1 distribution are not shipped pre-built. To run these examples, you must build the example following the specific examples instructions.
To get the most out of this example, first read through the sourcecode files.
These three sections cover what to do:
We provide a build script for you to build the example:
The build script is build.xml.
Run the build script using the following Java ant command:
$ant
The script will build the example and place the files in thecorrect locations in your WebLogic Server distribution:
Running the build script places the EJB in /config/examples/applications, where it automatically deploys once the server is started. If you are already running the server and build another EJB, it is automatically placed in this directory and instantly deployed.
Additional information on using the build scriptsis found in Building Enterprise JavaBean examples
A list of deployed EJBs displays.
$ java examples.ejb20.message.Client "t3://WebLogicURL:Port"
where:
In client shell:Beginning message.Client...End message.Client...In server.shell:setMessageDrivenContext calledejbCreate calledReceived new quote : BEAS 40 1/8Received new quote : BEAS 40 1/8Received new quote : SUNW 79 1/2Received new quote : SUNW 79 1/2Received new quote : IBM 82 1/4Received new quote : IBM 82 1/4End message.Client...
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||