Developing JMS Applications for Oracle WebLogic Server
Table of Contents
Show All | Collapse- Title and Copyright Information
- Preface
- 1 Introduction and Roadmap
- 2 Understanding WebLogic JMS
- 3 Best Practices for Application Design
- Message Design
- Message Compression
- Message Properties and Message Header Fields
- Message Ordering
- Topics vs. Queues
- Asynchronous vs. Synchronous Consumers
- Persistent vs. Non-Persistent Messages
- Deferring Acknowledges and Commits
- Using AUTO_ACK for Non-Durable Subscribers
- Alternative Qualities of Service, Multicast and No-Acknowledge
- Avoid Multi-threading
- Using the JMSXUserID Property
- Performance and Tuning
- 4 Enhanced Support for Using WebLogic JMS with EJBs and Servlets
- 5 Developing a Basic JMS Application
- Importing Required Packages
- Setting Up a JMS Application
- Step 1: Look Up a Connection Factory in JNDI
- Step 2: Create a Connection Using the Connection Factory
- Step 3: Create a Session Using the Connection
- Step 4: Look Up a Destination (Queue or Topic)
- Step 5: Create Message Producers and Message Consumers
- Step 6a: Create the Message Object (Message Producers)
- Step 6b: Optionally Register an Asynchronous Message Listener
- Step 7: Start the Connection
- Example: Setting Up a PTP Application
- Example: Setting Up a Pub/Sub Application
- Sending Messages
- Receiving Messages
- Acknowledging Received Messages
- Releasing Object Resources
- 6 Managing Your Applications
- Managing Rolled Back, Recovered, Redelivered, or Expired Messages
- Setting Message Delivery Times
- Managing Connections
- Managing Sessions
- Managing Destinations
- Using Temporary Destinations
- Setting Up Durable Subscriptions
- Defining the Persistent Store
- Setting the Client ID Policy
- Defining the Client ID
- Creating a Sharable Subscription Policy
- Creating Subscribers for a Durable Subscription
- Best Practice: Always Close Failed JMS ClientIDs
- Deleting Durable Subscriptions
- Modifying Durable Subscriptions
- Managing Durable Subscriptions
- Setting and Browsing Message Header and Property Fields
- Filtering Messages
- Sending XML Messages
- 7 Using JMS Module Helper to Manage Applications
- 8 Using Multicasting with WebLogic JMS
- 9 Using Distributed Destinations
- 10 Using Message Unit-of-Order
- What Is Message Unit-Of-Order?
- Understanding Message Processing with Unit-of-Order
- Message Unit-of-Order Case Study
- How to Create a Unit-of-Order
- Getting the Current Unit-of-Order
- Message Unit-of-Order Advanced Topics
- What Happens When a Message Is Delayed During Processing?
- What Happens When a Filter Makes a Message Undeliverable
- What Happens When Destination Sort Keys are Used
- Using Unit-of-Order with Distributed Destinations
- Using Unit-of-Order with Topics
- Using Unit-of-Order with JMS Message Management
- Using Unit-of-Order with WebLogic Store-and-Forward
- Using Unit-of-Order with WebLogic Messaging Bridge
- Limitations of Message Unit-of-Order
- 11 Using Unit-of-Work Message Groups
- 12 Using Transactions with WebLogic JMS
- 13 Developing Advanced Pub/Sub Applications
- 14 Recovering from a Server Failure
- 15 WebLogic JMS C API
- A Deprecated WebLogic JMS Features
- B FAQs: Integrating Remote JMS Providers
- Understanding JMS and JNDI Terminology
- Understanding Transactions
- How to Integrate with a Remote Provider
- Best Practices when Integrating with Remote Providers
- Using Foreign JMS Server Definitions
- Using EJB/Servlet JMS Resource References
- Using WebLogic Store-and-Forward
- Using WebLogic JMS SAF Client
- Using a Messaging Bridge
- Using Messaging Beans
- Using AQ JMS
- C How to Lookup a Destination
- D Advanced Programming with Distributed Destinations Using the JMS Destination Availability Helper API