Post on 07-Apr-2018
8/6/2019 NOVAJug Weblogic JMS Clustering
1/20
Jayesh Pateljayesh@yagnasys.com
703.589.8403
WebLogic JMS Clustering
8/6/2019 NOVAJug Weblogic JMS Clustering
2/20
About the Presenter
Independent J2EE/WebLogic consultant
9 years of IT experience.
Current Work at EDS/Federal Reserve Banks
TWAI (Treasury Web ApplicationInfrastructure) project.
7 years of focus in J2EE/WebLogic
Technologies, Previously worked at BEA. Design, Development, Performance Tuning and
Enterprise Architecture.
8/6/2019 NOVAJug Weblogic JMS Clustering
3/20
JMS Clustering Agenda
JMS Basics
WebLogic JMS
Clustered JMS
Overview
Load Balancing
Migration/Failover
WebLogic 9.0
Key JMS Enhancements
8/6/2019 NOVAJug Weblogic JMS Clustering
4/20
8/6/2019 NOVAJug Weblogic JMS Clustering
5/20
8/6/2019 NOVAJug Weblogic JMS Clustering
6/20
JMS Clustering - JMS Basics
Message Producer and Consumers aredecoupled.
Message Consumption Modes
Synchronous Asynchronous - MessageListener
Acknowledgment Modes AUTO_ACKNOWLEDGE
CLIENT_ACKNOWLEDGE
DUPS_OK_ACKNOWLEDGE
8/6/2019 NOVAJug Weblogic JMS Clustering
7/20
8/6/2019 NOVAJug Weblogic JMS Clustering
8/20
JMS Clustering WebLogic JMS
8/6/2019 NOVAJug Weblogic JMS Clustering
9/20
JMS Clustering Overview WebLogic JMS Server
Pinned to single server instance - DataIntegrity.
Migratable to the alive WebLogic instance
Failover Clustered JMS Resources
Distributed Destination
Virtual Destination with Physical Member Destinations Uniform Distributed Destination WLS 9.0
Clustered Connection Factory Connection load balancing
Message load balancing
8/6/2019 NOVAJug Weblogic JMS Clustering
10/20
JMS Clustering Load Balancing
Options Round Robin Distribution Random
Weight Based Distribution
Consumer Load Balancing Consumers are load balanced Pinned to physical destination After consumer is created.
Producer Load Balancing Producer connection is load balanced
Each message produced is load balanced across memberdestinations
8/6/2019 NOVAJug Weblogic JMS Clustering
11/20
MS Clustering Distributed
Queue
8/6/2019 NOVAJug Weblogic JMS Clustering
12/20
MS Clustering Distributed
Topic
8/6/2019 NOVAJug Weblogic JMS Clustering
13/20
MS Clustering - Load Balancing
Heuristics Transaction Affinity
Messages in transacted session
Server Affinity Load balance to local members of the server instance.
Queues With Zero Consumers Queues with zero consumer are considered for load
balancing until all physical Qs have one consumer
Message Load Balancing Skips queue with Zero consumers
Paused Distributed Destination Members WLS 9.0 Load Balancing algorithm skips paused destination
8/6/2019 NOVAJug Weblogic JMS Clustering
14/20
MS Clustering MS Server
Migration
JMS Server Migration Scheduled migration. In response of the server failure.
Requirements JMS store should accessible from source and destination
server Migratable target server should belong to same cluster
Server Migration WLS 8.1 Manual migration WLS 9.0 - Automated migration
8/6/2019 NOVAJug Weblogic JMS Clustering
15/20
MS Clustering MS Server
Migration
8/6/2019 NOVAJug Weblogic JMS Clustering
16/20
MS Clustering MS Server
Migration JMS Server Migration
Key Points MDBs are migrated automatically
Non-MDB subscribers need to recreated.
Local Destination JNDI will cause conflict.
JMS Server Recovery JMS Server can be migrated back to original
server.
Run java weblogic.PurgeConfigCache beforestarting original Server to prevent redundantactivation of the migrated service.
8/6/2019 NOVAJug Weblogic JMS Clustering
17/20
WebLogic 9.0
Messaging Enhancements
Support for JMS 1.1 API
Store and Forward Messaging to potentially
unavailable endpoints
Improved reliability asynchronous store andforward between serversand domains
Preserves message
ordering Used to support WS-
ReliableMessaging More efficient than two-
phase JTA transactions
8/6/2019 NOVAJug Weblogic JMS Clustering
18/20
WebLogic 9.0
Messaging Enhancements Automated JMS Server failover in cluster
Heartbeat enables migration It was manual in 8.1 Failover of the persistence messages File Store , JDBC Store
JMS Server Administration View / browse all messages
Delete, move, import, export messages Pause / resume individual message Modular configuration of JMS Resources in EAR/WAR Message Life Cycle Logging
Performance Improved file store implementation with advanced
performance I/O algorithm. MDB Bach transactions.
8/6/2019 NOVAJug Weblogic JMS Clustering
19/20
Resources
JMS Resources Product Documentation
http://e-docs.bea.com/wls/docs81/messaging.html
http://e-docs.bea.com/wls/docs90/messaging.html
BEA dev2dev Web Site White Papers , Examples andDocumentation. http://dev2dev.bea.com/technologies/jms/index.jsp
JMS Newsgroups http://forums.bea.com/bea/forum.jspa?forumID=2023
JMS Specification
http://java.sun.com/products/jms/docs.html
Java User Group Forum novajug@yahoogroups.com
8/6/2019 NOVAJug Weblogic JMS Clustering
20/20
WebLogic JMS Clustering
Questions?
Jayesh Patel,703.589.8403jayesh@yagnasys.comJ2EE/WebLogic/SOA ConsultantArchitecture AssessmentArchitecture Validation- Proof of Concept
System Optimization - Performance TuningOutage AnalysisSystem Integration, Disaster Recovery
http://www.yagnasys.com