Java Reference
In-Depth Information
• An EJB JAR file that contains the message-driven beans and the entity class,
along with the persistence.xml file
• An application EAR file that contains the two JAR files along with an ap-
plication.xml file
3. To create any needed resources, deploy the application, and run the client, use
the following command:
ant run
This command starts the database server if it is not already running, then deploys
and runs the application.
Ignore the message that states that the application is deployed at a URL.
The output in the terminal window looks something like this (preceded by applic-
ation client container output):
Click here to view code image
running application client container.
PUBLISHER: Setting hire ID to 50, name Bill Tudor, position Pro-
grammer
PUBLISHER: Setting hire ID to 51, name Carol Jones, position
Senior Programmer
PUBLISHER: Setting hire ID to 52, name Mark Wilson, position Man-
ager
PUBLISHER: Setting hire ID to 53, name Polly Wren, position Seni-
or Programmer
PUBLISHER: Setting hire ID to 54, name Joe Lawrence, position
Director
Waiting for 5 message(s)
New hire event processed:
Employee ID: 52
Name: Mark Wilson
Equipment: PDA
Office number: 294
Waiting for 4 message(s)
New hire event processed:
Employee ID: 53
Name: Polly Wren
Equipment: Laptop
Office number: 186
Waiting for 3 message(s)
New hire event processed:
Employee ID: 54
Name: Joe Lawrence
Search WWH ::




Custom Search