JBoss Application Server Clustering Guide
4.2
Authors
Brian Stansberry
Galder Zamarreno
ISBN:
Publication date:
JBoss Application Server Clus...
This book is the Jboss Application Server clustering guide.
JBoss Application Server Clustering Guide: Authors
by Brian Stansberry, Galder Zamarreno, and Samson Kittoli
JBoss Application Server Clus...
v
1. Clustering ...................................................................................................... 1
1. Introduction ........................................................................................... 1
2. Cluster Definition ................................................................................... 1
3. HAPartition ............................................................................................ 3
4. JBoss Cache channels .......................................................................... 4
4.1. Service Architectures .................................................................. 5
4.1.1. Client-side interceptor architecture ..................................... 5
4.1.2. Load balancer .................................................................. 7
4.2. Load-Balancing Policies .............................................................. 8
4.2.1. Client-side interceptor architecture ..................................... 9
4.2.2. External load balancer architecture .................................... 9
4.3. Farming Deployment ................................................................. 10
4.4. Distributed state replication services ........................................... 12
2. Clustered JNDI Services .............................................................................. 13
1. How it works ....................................................................................... 14
2. Client configuration .............................................................................. 16
2.1. For clients running inside the application server ........................... 16
2.2. For clients running outside the application server ......................... 17
2.3. JBoss configuration ................................................................... 19
3. Clustered Session EJBs ............................................................................... 23
1. Stateless Session Bean in EJB 2.x ....................................................... 23
2. Stateful Session Bean in EJB 2.x ......................................................... 24
2.1. The EJB application configuration .............................................. 24
2.2. Optimize state replication .......................................................... 25
2.3. The HASessionState service configuration .................................. 26
2.4. Handling Cluster Restart ............................................................ 26
2.5. JNDI Lookup Process ................................................................ 28
2.6. SingleRetryInterceptor ............................................................... 29
3. Stateless Session Bean in EJB 3.0 ....................................................... 29
4. Stateful Session Beans in EJB 3.0 ........................................................ 30
4. Clustered Entity EJBs .................................................................................. 35
1. Entity Bean in EJB 2.x ......................................................................... 35
2. Entity Bean in EJB 3.0 ......................................................................... 36
2.1. Configure the distributed cache .................................................. 36
2.2. Configure the entity beans for cache .......................................... 38
2.3. Query result caching ................................................................. 41
5. HTTP Services ............................................................................................ 45
1. Configuring load balancing using Apache and mod_jk ............................ 46
2. Download the software ......................................................................... 46
3. Configure Apache to load mod_jk ......................................................... 46
4. Configure worker nodes in mod_jk ........................................................ 48
5. Configuring JBoss to work with mod_jk ................................................. 50
6. Configuring HTTP session state replication ............................................ 51
7. Enabling session replication in your application ...................................... 53
评论0