IBMHTTPServer WebSphereApplicationServer connect configuration and application server performance optimization



  IBMHTTPServer WebSphereApplicationServer connect configuration and application server performance optimization 

  In this article, you can learn to: 

  • Use IBM HTTP Server What are the benefits of 

  • How to configure IBM HTTP Server and IBM WebSphere Application Server connection 

  • How to release ear package to enable them to optimize the performance of IBM WebSphere Application Server 

  • an example 

  Foreword 

  As we all know, IBM's WebSphereApplicationServer (WAS) is an enterprise-class EJB containers, it has to accommodate itself EJB, Servlets, JSP, HTML, and other functions, that is to say, WAS at the same time with its own EJB containers and WebServer function. 

  We simply WebServer such as IIS, Apache, IBM HTTP Server (IHS), they only deal with static HTML pages with the function, not the function of EJB containers. 

  We usually installed in the IBM WebSphere package, you can choose to install WAS and IHS two parts.    They can be installed in the same physical host, can be installed separately in different hosts. 

  WAS in dealing with the static HTML pages and some picture files, it is the Java input and output streams for communications and client.    The IHS is on the basis of revised Apache come, and it is written in C language to deal with the user's static document request.    By contrast, the IHS deal with the static document to speed faster.    At the same time, if we are able to link up the two as a whole, and the client is transparent to users, so let WAS EJB container handling a dynamic request to IHS handling static document, the following benefits: 

  • IHS to move faster in processing requests static, and in many business applications, in regard to the request and html pages to JSP / Server and the request for background EJB number of requests is diminishing.    In such circumstances, WAS will allow IHS to share the burden. 

  • IHS and can be installed in the respective WAS different physical host, this will give IHS in the DMZ area, and let WAS in the protected areas and improve security.    This specific part of the network topology can refer to other information. 

  • When enterprise applications increases, we need to use cluster technology to achieve load balancing, this time, may require multiple nodes and adopted WAS ND (NetworkDeploymentManager) to manage them.    At this time must have a front IHS in providing such distribution function.    In other words, can be used for future expansion of IHS do better prepared. 

  Specifically, WAS IHS and the connection is through a call-in the WebServerPlug to connect them.    They can map the topology structure as follows: 

  On the map that clearly no longer enough. 

  Prerequisite 

  WAS IHS and to get connected, we must install WEBSphere package, choose Custom installation, and select the "Plug-in For IBM HTTP Server."    At the same time, we need to install the IHS and WAS.    In this paper, and we IHS WAS installed in the same console as an example. 

  Established: WAS installed in the D: \ WebSphere511 \ WebSphere \ AppServer below. 

  IHS installed in the D: \ WebSphere511 \ IBMHttpServer below. 

  Secondly, we also need a package of WSAD not work, we in the final package, it is necessary to carry out some settings to meet the requirements.    Note that this is the last work area must be released immediately to a package of work areas. 

  Before starting, and we first started IHS WAS, in IE input: 

  Http://localhost:9080/snoop/ to see whether the correct installation 

  Well, all good, we look at how to configure. 

  Configuration steps 

  WSAD5 start with the final package to the work area and access into the development environment J2EE view, double-click to open "WEB Content" directory "WEB-INF" directory under the web.xml file into XML editor, selected pages expansion , as shown below: 

  In the figure above, will be "opening the file services" before √ removed.    Preserve. 

  2, packing work, the system output, or output for the ear-jar kits and war packets can be of two parts. 

  3, entered WAS management platforms, configuration J2C certification and JDBC data source, released earlier success derived ear package. 

  4, select WAS management workstations left the "environment" -> "Updating Web server plug-ins," and the right choice "determine." 

  5, and then exit WAS management workstations, access WAS install directory: 

  D: \ WebSphere511 \ WebSphere \ AppServer \ config \ cells, confirmed the plugin directory is a new-generation of cfg.xml. 

  6, entered IHS install directory: D: \ WebSphere511 \ IBMHttpServer \ conf, and use a text editor to open under the 

  Httpd.conf file, the cursor will move to the last line, confirmed last two acts: 

  LoadModule ibm_app_server_http_module "D: \ WebSphere511 \ WebSphere \ AppServer / bin / mod_ibm_app_server_http.dll" 

  WebSpherePluginConfig "D: \ WebSphere511 \ WebSphere \ AppServer / config / cells / plugin-cfg.xml" 

  To confirm that the two documents pointing in the correct position and, plugin-cfg.xml point is just generated. 

  At the same time find similar following two lines: 

  # TIHS should be changed to whatever you set DocumentRoot to. 

  <Directory "D:\WebSphere511\IBMHttpServer/htdocs/Zh_CN"> 

  Can be seen, this trip is set up IHS of the location of the root directory.    You can modify it can not amend.    For instance, we here it is amended as follows: 

  <Directory "D:\WebSphere511\IBMHttpServer/htdocs/MyProject"> 

  Note that the above path separator wording, but, in the D: \ WebSphere511 \ IBMHttpServer \ htdocs \ MyProject a directory under construction. 

  DocumentRoot find this line at the same time, it is amended as follows: 

  DocumentRoot d: / websphere511/ibmhttpserver/htdocs/MyProject 

  This allows IHS at the root of this directory. 

  7, the Health and the newly-launched IHS WAS. 

  8, entered WAS install directory: 

  D: \ WebSphere511 \ WebSphere \ AppServer \ installedApps \ abnerchai directory, which is your host abnerchai named directory, the directory to find just released that ear-directory, and access to the directory of this x.war directory, the directory is stored is that you have all the JSP and HTML documents, and other documents, such as IMG, this directory is the root directory, the directory of all documents such as static images, such as copies of a directory to just IHS the root directory. 

  9, resuming the IHS server that can: 

  Http://xxx.xxx.xxx/yourApplicationname/ to visit your systems. 

  Appendix: For example: 

  Now WSAD WEB Content directory in a JSP document as follows: 

  <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN"> 

  <HTML> 

  <HEAD> 

  <% @ Page language = "java" contentType = "text / html; charset = GBK" pageEncoding = "GBK"%> 

  <META http-equiv = "Content-Type" content = "text / html; GBK charset ="> 

  <META name = "GENERATOR" content = "IBM WebSphere Studio"> 

  Index.jsp <TITLE> </ TITLE> 

  </ HEAD> 

  <BODY> 

  <P> <img src = "images / cz.jpg"> </ img> 

  <P> <a href = "in.html"> static HTML </ a> 

<%

  Out.println ( "This is the dynamic output <p>! </ P>"); 

%>

  </ BODY> 

  </ HTML> 

  At the same time, WEB Content in.html there is a directory of documents and a directory of images, under a cz.jpg document. 

  At the same time work in the area there are still some JavaBean and EJB, with the dissemination EAR package, the name: 

HelloWorldEARProject.ear

  WAS in the plug-in releases and updates, and the resumption of IHS WAS.    In: 

  D: \ WebSphere511 \ WebSphere \ AppServer \ installedApps \ abnerchai \ HelloWorldEARProject.ear 

  Directory, a directory of HelloWorldWebProject.war, and the directory containing images in.html document, we can access it through http://localhost/HelloWorldWebProject/index.jsp (see picture, and then static link is not correct, because WAS has been set to deal with these non-static). 

  Then we can do this, in: 

  D: \ WebSphere511 \ IBMHttpServer \ htdocs \ MyProject directory HelloWorldWebProject a new directory, the directory of images and in.html copy of the directory to be. 

  Finally, their directory structure as follows: 

  This is IBM HTTP Server directory 

  This is IBM Websphere Application Server Directory (release). 

  Author 

  Abnerchai (CHAI Zheng), 24 years old, Southwest Jiaotong University, the Computer and Communications Engineering College of Computer Application Technology to postgraduates, senior programmer.    Familiar with VC + + / JAVA programming, the main research direction: network security, j2EE / middleware technology, work flow.    Personal contact: josserchai@yahoo.com; in Chengdu System Software Ltd. US-based part-time in IBM WAS / WSAD platform J2EE/EJB/JCE/JMS/JDBC/Servlets/JSP/JavaScript / development. 

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • DotNetKicks
  • DZone
  • Furl
  • Netvouz

Tags: ,

Releated Articles


0 Comments to “IBMHTTPServer WebSphereApplicationServer connect configuration and application server performance optimization”

No Comments. Send your comment.

Leave a Reply

You must be logged in to post a comment.