Sample Program
The architecture of the restaurant example system now works as follows:
1. |
The Customer instantiates a Waiter object.
|
2. |
The Customer then gets the menu list and orders the items.
|
3. |
On calling the method to confirm the order, the Waiter loops through the vector of ordered items and allocates each item to a Chef from the Chef bean pool. The Waiter then calls a static method called getAllCookedItems()method of the ReceiveMessagesFromQueue class, which is described a little later.
|
4. |
The Chef creates the items after looking up the ingredients in the Item bean pool.
|
5. |
After creating the cooked items, the Chef puts the cooked items into the Message queue "ORDERED_ITEMS_QUEUE".
|
6. |
The ReceiveMessagesFromQueue class receives ... |
Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.