type=page
status=published
title=Overview of the JMS Examples
next=jms-examples003.html
prev=jms-examples001.html
~~~~~~
= Overview of the JMS Examples


[[BABEFBHJ]]

[[overview-of-the-jms-examples]]
Overview of the JMS Examples
----------------------------

The following tables list the examples used in this chapter, describe
what they do, and link to the section that describes them fully. The
example directory for each example is relative to the
`_tut-install_/examples/jms/` directory.

[[sthref200]]
[[sthref201]]

*Table 49-1 JMS Examples That Show the Use of Java EE Application Clients*

[width="80%",cols="20%,60%s"]
|=======================================================================
|*Example Directory* |*Description*
|`simple/producer` |Using an application client to send messages; see
link:jms-examples003.html#BABIHCAE[Sending Messages]

|`simple/synchconsumer` |Using an application client to receive messages
synchronously; see link:jms-examples003.html#BNCFB[Receiving Messages
Synchronously]

|`simple/asynchconsumer` |Using an application client to receive
messages asynchronously; see link:jms-examples003.html#BNCFH[Using a
Message Listener for Asynchronous Message Delivery]

|`simple/messagebrowser` |Using an application client to use a
`QueueBrowser` to browse a queue; see
link:jms-examples003.html#BNCFL[Browsing Messages on a Queue]

|`simple/clientackconsumer` |Using an application client to acknowledge
messages received synchronously; see
link:jms-examples003.html#BNCFX[Acknowledging Messages]

|`durablesubscriptionexample` |Using an application client to create a
durable subscription on a topic; see
link:jms-examples004.html#BNCGG[Using Durable Subscriptions]

|`transactedexample` |Using an application client to send and receive
messages in local transactions (also uses request-reply messaging); see
link:jms-examples004.html#BNCGJ[Using Local Transactions]

|`shared/sharedconsumer` |Using an application client to create shared
nondurable topic subscriptions; see
link:jms-examples005.html#BABIBEAC[Using Shared Nondurable Subscriptions]

|`shared/shareddurableconsumer` |Using an application client to create
shared durable topic subscriptions; see
link:jms-examples005.html#BABEJBHA[Using Shared Durable Subscriptions]
|=======================================================================


[[sthref202]][[sthref203]]

*Table 49-2 JMS Examples That Show the Use of Java EE Web and EJB
Components*

[width="80%",cols="20%,60%s"]
|=======================================================================
|*Example Directory* |*Description*
|`websimplemessage` |Using managed beans to send messages and to receive
messages synchronously; see link:jms-examples006.html#BABBABFC[Sending
and Receiving Messages Using a Simple Web Application]

|`simplemessage` |Using an application client to send messages, and
using a message-driven bean to receive messages asynchronously; see
link:jms-examples007.html#BNBPK[Receiving Messages Asynchronously Using a
Message-Driven Bean]

|`clientsessionmdb` |Using a session bean to send messages, and using a
message-driven bean to receive messages; see
link:jms-examples008.html#BNCGW[Sending Messages from a Session Bean to
an MDB]

|`clientmdbentity` |Using an application client, two message-driven
beans, and JPA persistence to create a simple HR application; see
link:jms-examples009.html#BNCHF[Using an Entity to Join Messages from Two
MDBs]
|=======================================================================
