Part I Development Tasks and Tools
1. Setting Up a Development Environment
3. Using Ant with Enterprise Server
Part II Developing Applications and Application Components
7. Using the Java Persistence API
8. Developing Web Applications
9. Using Enterprise JavaBeans Technology
10. Using Container-Managed Persistence
13. Developing Lifecycle Listeners
Part III Using Services and APIs
14. Using the JDBC API for Database Access
15. Using the Transaction Service
16. Using the Java Naming and Directory Interface
17. Using the Java Message Service
Message Queue Resource Adapter
Administration of the JMS Service
Checking Whether the JMS Provider Is Running
Creating Physical Destinations
Creating JMS Resources: Destinations and Connection Factories
Restarting the JMS Client After JMS Configuration
Transactions and Non-Persistent Messages
Using the ConfigurableTransactionSupport Interface
Authentication With ConnectionFactory
Message Queue varhome Directory
Delivering SOAP Messages Using the JMS API
To Send SOAP Messages Using the JMS API
The Enterprise Server support for JMS messaging, in general, and for message-driven beans, in particular, requires messaging middleware that implements the JMS specification: a JMS provider. The Enterprise Server uses the Sun GlassFish Message Queue software as its native JMS provider. The Message Queue software is tightly integrated into theEnterprise Server, providing transparent JMS messaging support. This support is known within Enterprise Server as the JMS Service. The JMS Service requires only minimal administration.
The relationship of the Message Queue software to the Enterprise Server can be one of these types: EMBEDDED, LOCAL, or REMOTE. The effects of these choices on the Message Queue broker life cycle are as follows:
If the type is EMBEDDED, the Enterprise Server and Message Queue software run in the same JVM, and the networking stack is bypassed. The Message Queue broker is started and stopped automatically by the Enterprise Server. This is the default for the Domain Administration Server (DAS).
Lazy initialization starts the default embedded broker on the first access of JMS services rather than at Enterprise Server startup.
If the type is LOCAL, the Message Queue broker starts when the Enterprise Server starts. This is the default for all Enterprise Server instances except the DAS.
The LOCAL setting implicitly sets up a 1:1 relationship between an Enterprise Server instance and a Message Queue broker.
If the type is REMOTE, the Message Queue broker must be started separately. For information about starting the broker, see the Sun GlassFish Message Queue 4.4 Administration Guide.
For more information about setting the type and the default JMS host, see
Configuring the JMS Service.
For more information about the Message Queue software, refer to the documentation at http://docs.sun.com/coll/1343.9.
For general information about the JMS API, see the JMS web page at http://java.sun.com/products/jms/index.html.