Ejb3 5-Exercises message-driven-beans

  • 26 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
26
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. http://www.coreservlets.com Message-Driven Beans 1. Make an MDB that accepts simple text messages. Have it print out the text that it gets. Search for “server.log” under the JBoss installation directory to find the file that will show the print statements. 2. Copy the file from my “messages” project that defines the JMS queue. All you need to change is the queue name. 3. Make a client that sends 15 messages with no pause in between. Check server.log to see the order that the messages arrived. 4. Experiment with a pause (Thread.sleep) in between the sending of each message. How long do you have to pause to be relatively confident that the messages will arrive in the order you sent them? 5. Try making an MDB that accepts ObjectMessages. Define a Circle class (radius property and getArea method), and make it Seralizable. Send a few Circle instances to the MDB.