- 浏览: 3513598 次
- 性别:
- 来自: 北京
-
文章分类
最新评论
-
wanglf1207:
EJB的确是个不错的产品,只是因为用起来有点门槛,招来太多人吐 ...
weblogic-ejb-jar.xml的元素解析 -
qwfys200:
总结的不错。
Spring Web Flow 2.0 入门 -
u011577913:
u011577913 写道也能给我发一份翻译文档? 邮件437 ...
Hazelcast 参考文档-4 -
u011577913:
也能给我发一份翻译文档?
Hazelcast 参考文档-4 -
songzj001:
DbUnit入门实战
GlassFish V2, the latest Java EE 5 Application Server from GlassFish provides high availability features which include Load Balancing and Clustering. GlassFish V2 provides HTTP Load Balancer which is not bundled as part of the it's download . One can however explicitly download this component.
Sun Java System WebServer is the supported WebServer for the HTTP Load Balancer. This blog provides the mannual steps to install and configure the GlassFish HTTP Load Balancer and these details relate to Sun Java System WebServer 7.0 - the latest WebServer offering from Sun.
Installing Load Balancer on SJSWS 7.0 under default installation setup of SJSWS 7.0
- Installing SJSWS 7.0
- Download and install the SJSWS 7.0, download
- Create the following directories:
<WS_INSTALL_ROOT>/plugins/lbplugin/bin
<WS_INSTALL_ROOT>/plugins/lbplugin/resource
<WS_INSTALL_ROOT>/plugins/lbplugin/errorpages
where,
<WS_INSTALL_ROOT> is SJSWS 7.0 installation directory. - Start the admin server by executing <WS_INSTALL_ROOT>/admin-server/bin/startserv.
- Installing and setting up GlassFish Load Balancer
- Download aslb (GlassFish Load Balancer component) from the link:
http://download.java.net/javaee5/external/SunOS/aslb/jars/aslb-9.1-MS4-b1.jar
where, SunOS literal relates to the Solaris Sparc based operating system platform. For other platforms the values can be - SunOS_X86, Linux and WINNT. - Unjar to install into GlassFish installation, where <GLASSFISH_HOME> identifies the GlassFish installation directory.
- Create <GLASSFISH_HOME>/lib/lbplugin.
- Unjar aslb-9.1-MS4-b1.jar file in <GLASSFISH_HOME>/lib/lbplugin.
- There are 2 zip files bundled inside the aslb jar: SUNWaslb.zip, SUNWaspx.zip, unzip these 2 zip files in the same directory and delete the zip files.
- Change permissions on all shared libraries of lbplugin as below
chmod -R 755 <GLASSFISH_HOME>/lib/lbplugin/lib
- Copy <GLASSFISH_HOME>/lib/lbplugin/lib/webserver-plugin/<OS>/iws61/libpassthrough.so to
<WS_INSTALL_ROOT>/plugins/lbplugin/bin/.
Where <OS> refers to solaris' for the Solaris platform.,'linux' for the Linux platform and 'windows' for the Windows platform. - Add execute permission to <WS_INSTALL_ROOT>/plugins/lbplugin/bin/libpassthrough.so.
- Copy <GLASSFISH_HOME>/lib/lbplugin/lib/webserver-plugin/<OS>/iws61/errorpages/default-error.html to <WS_INSTALL_ROOT>/plugins/lbplugin/errorpages/.
- Copy <GLASSFISH_HOME>/lib/lbplugin/lib/webserver-plugin/<OS>/iws61/errorpages/sun-http-lberror.html to
<WS_INSTALL_ROOT>/plugins/lbplugin/errorpages/. - Copy <GLASSFISH_HOME>/lib/lbplugin/lib/webserver-plugin/<OS>/iws61/*.res to <WS_INSTALL_ROOT>/plugins/lbplugin/resource/.
- Copy
<GLASSFISH_HOME>/lib/lbplugin/lib/install/templates/loadbalancer.xml.example
to
<WS_INSTALL_ROOT>/admin-server/config-store/<default-config>/config/
- This is just an example for notational purpose, the user should manually edit (if choosen to do this way) this file prior to using this as loadbalancer.xml, to reflect the correct cluster configuration. Refer to Configuring the Load Balancer Plugin for this.Note manual editing it not the endorsed way to configure the Load Balancer. GlassFish Admin CLI or GUI are the two supported approaches for generating this file, while providing for error free load balancer configuration generation.
- Copy <GLASSFISH_HOME>/lib/lbplugin/lib/dtds/sun-loadbalancer_1_2.dtd to <
<WS_INSTALL_ROOT>/admin-server/config-store/<default-config>/config/ - Prepend the under mentioned
“##EE”
lines to <WS_INSTALL_ROOT>/admin-server/<default-config-name>/config/magnus.conf before the following “Init” directive -Init fn="load-modules" shlib="libj2eeplugin.so" shlib_flags="(global|now)"
##BEGIN EE LB Plugin Parameters
Init fn="load-modules" shlib="${WS_INSTALL_ROOT}/plugins/lbplugin/bin/libpassthrough.so"
funcs="init-passthrough,service-passthrough,name-trans-passthrough" Thread="no"
Init fn="init-passthrough"
##END EE LB Plugin Parameters - Insert the under mentioned line before the first occurrence of the
"NameTrans"
directive in <WS_INSTALL_ROOT>/admin-server/<default-config-name>/config/obj.confNameTrans fn="name-trans-passthrough" name="lbplugin" config-file="loadbalancer.xml"
- Append the following lines to <WS_INSTALL_ROOT>/admin-server/<default-config-name>/config/obj.conf
<Object name="lbplugin">
ObjectType fn="force-type" type="magnus-internal/lbplugin"
PathCheck fn="deny-existence" path="*/WEB-INF/*"
Service type="magnus-internal/lbplugin" fn="service-passthrough"
Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
</Object> - Deploy the configuration to the default WebServer instance created by executing the
deploy-config
WebServer command from WebServer'swadm
CLI utility.<WS_INSTALL_ROOT>/bin/wadm deploy-config –user=<admin> <default-config-name>
where, <admin> is the admin user name. - Update the default WebServer instance startserv script by suffixing the following to
LD_LIBRARY_PATH
,
<GLASSFISH_HOME>/lib/lbplugin/lib. You can also get this done by setting the environment variable$LD_LIBRARY_PATH
to this value
.
- Start the default WebServer instance by executing the
start-instance
WebServer command from the WebServerwadm
CLI utility<WS_INSTALL_ROOT>/bin/wadm start-instance --user=<admin> --config=<default-config-name>
- NOTE:
Step 11, takes into account existence of loadbalancer.xml, if this file is not present the Load Balancer would log a message that the file could not be found. Refer to the Administration support from GlassFish CLI and Admin GUI to create and export this file from Domain Administration Server to the WebServer.
- NOTE:
Following steps relate to updating the default SJSWS 7.0 instance configuration with Load Balancer specific configuration. While doing so, these changes need to be made to the central repository maintained by the admin server for the default WebServer instance created upon installation. This repository is identified by <WS_INSTALL_ROOT>/admin-server/config-store/<default-config-name>/config/. Where, <default-config-name> is the config name created for the default WebServer instance created.
发表评论
-
字符串分割--java中String.split()用法
2013-03-06 14:25 74167在java.lang包中有String.sp ... -
用 HttpServletResponseWrapper 实现 Etag 过滤器
2012-07-09 16:58 3778原文出处:http://blog.chenlb.com/200 ... -
Fitnesse使用
2012-05-05 13:27 23523Fitnesse 的使用 一,介绍 Fitnesse是一种 ... -
Customizing the new FitNesse parser
2012-05-05 13:13 2148FitNesse began its life using ... -
java application中内嵌ActiveX控件
2011-11-14 15:57 5537我这里用的是SWT/JFace开发application,SW ... -
Google Java Developer Tools Downloads
2011-08-09 00:04 2362WindowBuilder Pro原来叫WindowB ... -
Jalita
2011-08-06 00:49 1583Jalita (Java light terminal ada ... -
【转】用Java写字符终端界面
2011-07-29 13:13 2135终端界面GUI开源项目charva。 这个框架让你可以用开发 ... -
[转]mybatis下的分页,支持所有的数据库
2011-07-21 13:21 14856大 家都知道,mybatis的自带分页方法只是逻 ... -
Java framework for text- & console-based forms?
2011-07-21 01:06 1731charva jcurses JNA , ... -
JNA(Java Native Access)学习入门
2011-07-21 01:04 22692Java Native Access 项目 在 ... -
JAVA上加密算法的实现用例
2011-06-25 12:38 4897来源:www.ibm.com ... -
如何将GlassFish作为Windows服务运行
2011-05-18 23:21 2397本文档来自GlassFish官方网站,详细介绍了将 G ... -
JAVA UDP打洞必备知识点---NAT
2011-05-05 12:56 8753一、引言 RFCl631 ... -
Keystore概念,Keytool工具使用
2011-04-28 16:20 2919近来由于项目需要做Single Sign On, 研究了一 ... -
利用Eclipse Profile Plugin监控分析Tomcat性能
2011-04-18 16:14 3715目前新版本的Eclipse在启动应用服务器的时候有一个新的选 ... -
m2eclipse: Eclipse is running in a JRE, but a JDK is required
2011-02-04 23:43 2556Eclipse 安装了Maven插件,启动Eclipse ... -
利用JNative实现Java调用动态库
2010-10-18 00:43 2114由于项目要求,需要用J ... -
RHEL5支持大内存
2010-10-08 16:19 3025安装 RHEL 5 ,硬件为 4G 内存,安装完成 ... -
Windows Server 2003 和 Windows 2000 提供大内存支持
2010-10-08 16:19 1868本文介绍物理地址扩展 ...
相关推荐
Installing and configuring servers Chapter 2. Configuring server roles and features Chapter 3. Configuring Hyper-V Chapter 4. Deploying and configuring core network services Chapter 5. Installing and...
根据提供的文件信息,本书《Installing and Configuring Windows Server 2012 Exam Ref 70-410》是一本针对Microsoft认证考试70-410的专业辅导教材。本书由Craig Zacker编写,并由Microsoft Press出版。以下是本书中...
根据给定的文件信息,我们可以提炼以下知识点: 1. **Windows Server 2012 R2安装与配置**: - MCSA(Microsoft Certified Solutions Associate)认证考试涉及到Windows Server 2012 R2的安装与配置,其中考试编号...
根据提供的文件信息,我们可以得出《Exam 70-410 Installing and Configuring Windows Server 2012 Lab Manual》是一本针对微软认证考试70-410的专业实验手册,该手册主要围绕Windows Server 2012的安装与配置进行...
Installing and Configuring Openfiler with DRBD and Heartbeat
Exam Ref 70-410 Installing and Configuring Windows Server 2012
Exam Ref 70-698 Installing and Configuring Windows 10 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
- **Training Guide Installing and Configuring Windows Server 2012**:此标题明确指出这是一本关于安装与配置Windows Server 2012的培训指南。 - **70-410 Training Guide Installing and Configuring Windows ...
1. KB 2554876 - 可在http://go.microsoft.com/fwlink/p/?LinkId=254221找到 2. KB 2708075 - 可在http://go.microsoft.com/fwlink/p/? 确保正确安装这些补丁对于系统的稳定性和安全性至关重要。此外,根据...
在本文档中,我们将深入探讨如何在Oracle Solaris 11.2操作系统环境下安装和配置OpenStack。Oracle Solaris 11.2是Oracle公司推出的一款先进的Unix操作系统,以其稳定性和安全性著称,而OpenStack则是一个开源的...
根据给定文件内容,本文将详细阐述关于“70-410 安装和配置Windows Server 2012”相关知识点。Windows Server 2012是微软公司推出的一款服务器操作系统,为部署和管理复杂网络环境提供了强大的功能。...
Microsoft Windows Server 2012 70-410 Series Introduction
1. Open edX平台简介:文档中提到的“Installing, Configuring, and Running the Open edX Platform”是一个运行手册,该手册对如何安装、配置和运行Open edX平台提供了详尽的指导。Open edX平台支持各种在线教育...
With the increased demand for mobile connectivity and the decrease in cost and in the time required for installation, wireless network connections will make up 20% of all corporate network connections...
It is your one-stop instruction guide to installing and configuring a distributed setup using NSX load balancer. Regardless of whether or not you have used vRealize Automation before, following the ...
《Syngress - 如何巧妙地安装、配置Windows 2000文件系统》 本书是Syngress出版的一本电子书,旨在为那些在Windows 2000文件系统管理中遇到挑战的人提供快速、逐步的解决方案。以下将详细讨论书中涉及的主要知识点...