JBoss EAP 6 Clustering - Red Hat .JBoss EAP 6 Clustering JBoss Enterprise Application Platform 6.1

  • View
    220

  • Download
    0

Embed Size (px)

Text of JBoss EAP 6 Clustering - Red Hat .JBoss EAP 6 Clustering JBoss Enterprise Application Platform 6.1

  • JBoss EAP 6 ClusteringJBoss Enterprise Application Platform 6.1High Availability, configuration and best practices

    Babak MozaffariMember of Technical StaffSystems Engineering

    Version 1.1November 2013

  • 100 East Davie StreetRaleigh, NC 27601 USAPhone: +1 919 754 3700Phone: 888 733 4281Fax: +1 919 754 3701PO Box 13588Research Triangle Park NC 27709 USA

    JBoss, Hibernate, Infinispan and HornetQ are registered trademarks of Red Hat, Inc. in the United States and other countries.

    Linux is a registered trademark of Linus Torvalds. JBoss, Red Hat, Red Hat Enterprise Linux and the Red Hat "Shadowman" logo are registered trademarks of Red Hat, Inc. in the United States and other countries.

    Microsoft and Windows are U.S. registered trademarks of Microsoft Corporation.

    All other trademarks referenced herein are the property of their respective owners.

    2013 by Red Hat, Inc. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, V1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/).

    The information contained herein is subject to change without notice. Red Hat, Inc. shall not be liable for technical or editorial errors or omissions contained herein.

    Distribution of modified versions of this document is prohibited without the explicit permission of Red Hat Inc.

    Distribution of this work or derivative of this work in any standard (paper) book form for commercial purposes is prohibited unless prior permission is obtained from Red Hat Inc.

    The GPG fingerprint of the security@redhat.com key is:CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E

    www.redhat.com ii refarch-feedback@redhat.com

    http://www.opencontent.org/openpub/mailto:security@redhat.com

  • Comments and FeedbackIn the spirit of open source, we invite anyone to provide feedback and comments on any reference architectures. Although we review our papers internally, sometimes issues or typographical errors are encountered. Feedback allows us to not only improve the quality of the papers we produce, but allows the reader to provide their thoughts on potential improvements and topic expansion to the papers.

    Feedback on the papers can be provided by emailing refarch-feedback@redhat.com. Please refer to the title within the email.

    Staying In TouchJoin us on some of the popular social media sites where we keep our audience informed on new reference architectures as well as offer related information on things we find interesting.

    Like us on Facebook:https://www.facebook.com/rhrefarch

    Follow us on Twitter:https://twitter.com/RedHatRefArch

    Plus us on Google+:https://plus.google.com/u/0/b/114152126783830728030/

    refarch-feedback@redhat.com III www.redhat.com

    https://plus.google.com/u/0/b/114152126783830728030/https://twitter.com/RedHatRefArchhttps://www.facebook.com/rhrefarchmailto:refarch-feedback@redhat.com?subject=EAP%206%20Clustering%20Reference%20Architecture

  • Table of Contents1 Executive Summary......................................................................................... 1

    2 JBoss Enterprise Application Platform 6........................................................... 22.1 Overview............................................................................................................................ 22.2 Clustering........................................................................................................................... 32.3 HTTP Sessions.................................................................................................................. 52.4 Stateless Session Beans................................................................................................... 82.5 Stateful Session Beans..................................................................................................... 92.6 Transaction Subsystem................................................................................................... 102.7 Java Persistence API (JPA)............................................................................................. 112.8 HornetQ Messaging......................................................................................................... 132.9 HTTP Connectors............................................................................................................ 17

    2.9.1 mod_cluster............................................................................................................... 19

    3 Reference Architecture Environment.............................................................. 203.1 Overview.......................................................................................................................... 203.2 JBoss EAP Apache HTTP Server................................................................................... 203.3 JBoss Enterprise Application Platform............................................................................ 213.4 PostgreSQL Database..................................................................................................... 22

    4 Creating the Environment............................................................................... 244.1 Prerequisites.................................................................................................................... 244.2 Downloads....................................................................................................................... 244.3 Installation....................................................................................................................... 25

    4.3.1 JBoss EAP Apache HTTP Server.............................................................................. 254.3.2 JBoss Enterprise Application Platform....................................................................... 25

    4.4 Configuration................................................................................................................... 264.4.1 JBoss EAP Apache HTTP Server.............................................................................. 274.4.2 PostgreSQL Database............................................................................................... 284.4.3 JBoss Enterprise Application Platform....................................................................... 29

    4.5 Review............................................................................................................................. 364.5.1 JBoss EAP Apache HTTP Server.............................................................................. 364.5.2 PostgreSQL Database............................................................................................... 404.5.3 JBoss Enterprise Application Platform....................................................................... 41

    www.redhat.com iv refarch-feedback@redhat.com

  • 5 Clustering Applications................................................................................... 705.1 Overview.......................................................................................................................... 705.2 HTTP Session Clustering................................................................................................ 715.3 Stateful Session Bean Clustering.................................................................................... 755.4 Distributed Messaging Queues....................................................................................... 815.5 Java Persistence API, second-level caching................................................................... 84

    6 Configuration Scripts (CLI)............................................................................. 916.1 Overview.......................................................................................................................... 916.2 Java / CLI Framework..................................................................................................... 926.3 Domains......................................................................................................................... 1116.4 Sample Servers............................................................................................................. 1146.5 Profiles........................................................................................................................... 117

    6.5.1 mod_cluster............................................................................................................. 1206.5.2 HornetQ Messaging................................................................................................. 121

    6.6 Socket Bindings............................................................................................................. 1276.7 Server Group Setup...................................................................................................... 1296.8 Database Connectivity.................................................................................................. 1316.9 Application Deployment................................................................................................. 1336.10 Server Startup............................................................................................................. 134

    7 Conclusion.................................................................................................... 135

    Appendix A: Revision History......................................................................... 136

    Appendix B: Contributors............................................................................... 137

    Appendix C: IPTables configuration.................