http://www.coreservlets.com
Message-Driven Beans
1. Make an MDB that accepts simple text messages. Have it print out the t...
Upcoming SlideShare
Loading in...5
×

Ejb3 5-Exercises message-driven-beans

42

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
42
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Ejb3 5-Exercises message-driven-beans"

  1. 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.

×