Parse the JSP environment engine -- Websphere

Source: Internet
Author: User
Tags db2 installation ibm db2 ibm db2 database websphere application server

The WebSphere Application Server enables you to "write once, use everywhere" for Servlet development. This product includes a Java-based Servlet Engine independent of the Web server and its operating system. The WebSphere Application Server provides Server plug-in options, compatible with most popular application design interfaces (APIS. Supported Web servers include:

Ibm http Server
Apache Server
Domino
Lotus Domino Go Webserver
Netscape Enterprise Server
Netscape FastTrack Server
Microsoft Internet Information Server

In addition to the Servlet engine and plug-ins, the WebSphere Application Server also provides:

1. JavaSoft Java Servlet API implementation, as well as the extension and addition of these Apis.

2. Examples and documents. The sample Servlet and Web site applications demonstrate simple and advanced technologies. The online and printable documents help you get started quickly and learn how to use advanced server functions to demonstrate basic classes and their extended sample applications.

3. The WebSphere Application Server Manager is easy to use with a graphical interface:

(1) set options for loading local and remote servlets
(2) Set initialization parameters
(3) Manage servlets
(4) Specify the Servlet alias
(5) Create Servlet chains and filter
(6) Enable Lightweight Directory Access Protocol (LDAP) Directory support
(7) record Servlet messages
(8) Enable JVM debugging
(9) monitor resources used by the WebSphere Application Server
(10) monitor mounted Servlets, active Servlet sessions, and JDBC connections
(11) control errors, events, exceptions, and log output
(12) Create dump and data Snapshot
(13) dynamically enable and disable Tracing
4. cache and reuse the connection management function connected to the JDBC-slave database. When a Servlet needs database connection, it can be obtained from the available connection buffer pool, eliminating the system overhead required to open a new connection for each request.

5. The additional Java class follows the JavaBeans specification and allows programmers to access the JDBC-slave database. When you hide the complexity of Using relational databases, these data access beans provide enhanced functionality. They can be used in a visual integrated development environment.

6. Support for JSP dynamic page content. JSP technology enables you to generate dynamic Web pages through server scripts. The result is to extract the presentation logic (for example, HTML code that defines the structure and appearance of the Web site) from the business logic (for example, access the database to obtain the information displayed on the Web site in the Java code information. In terms of flexibility, JSP files can include a combination of any directly inserted Java: Tag, NCSA tag, and JavaBean.

7. enable directory services supported by LDAP (Lightweight Directory Access Protocol.

8. The module and command line interface used to integrate WebSphere Application Server and Web Server (such as Apache Server) to Tivoli Management Environment (Tivoli Management Environment) for distributed monitoring and operations. The Tivoli module is not released with the WebSphere Application Server. Visit the Web site (http://www.software.ibm.com/webservers/appserv/) for more information.

9. includes the eNetworkDispatcher, WebTrafficeExpress proxy server, and the AFS Distributed File System to provide a scalable Web server environment. Shows the overall structure of WebSphere Applecation Server:



Its basic work process:

After the customer sends a request, the HttpServer will send the Servlet call request to the Application Server, and the Application Server and the Java Servlet Engine will execute the Servlet called by the user to connect to the database, send SQL requests to the database for processing.

The database returns the result to the Appliction Server. After the Servlet generates a dynamic page, it submits the processing result to HttpServer. HttpServer returns the page to the user.

The WebSphere Application Server supports JSP through the JSP processor. When the WebSphere Application Server is installed on the Web server, the Web server configuration is set to pass the HTTP request to the JSP file (that is, the file extension is. jsp) to the WebSphere Application Server.

The WebSphere Application Server configuration is set to pass the JSP file to its JSP processor (pageCompile ). The JSP processor creates and compiles servlets for each JSP file. The processor also generates two files for each JSP file:

(1) java file: contains Java code that can be used for Servlet;

(2) class file: compiled Servlet.

The JSP processor places the. java and. class files under the directory servletspagecompileJSP_file_path, where JSP_file_path is the directory path of the JSP source file. For example, if the JSP file is in the directory of WebSphereAppServersamplesWebBank, The. java and. class files are in the directory of WebSphereAppServerservletspagecompileWebSphereApp ServersamplesWebBank.

The file name of the. java and. class files is the same. The processor uses a naming convention that includes adding underline characters and suffixes to JSP file names. For example, if the JSP file name is login. jsp, the generated file is _ login_xjsp.java and _ login_xjsp.class.

Like all Servlets, servlets generated by JSP files are subclasses or child classes of javax. Servlet. http. HttpServlet. If the Servlet class is part of a software package, the Servlet Java code contains the import statements used for some required classes and software package statements.

If the JSP file contains JSP syntax (such as commands and scriptlets), the JSP processor converts the JSP syntax into equivalent Java code. If the JSP file contains HTML tags, the processor adds Java code so that the Servlet can output HTML one by one.

Websphere is designed for professionals and is difficult to master. In addition, Websphere has a capacity of more than 2 GB and requires more than MB of memory. The system has high requirements.

There are 3 pages in this news. Currently, there are 3 pages in 1st.


Websphere Installation

Install Websphere in Linux

1. log on to the Linux system as root, and perform the following operations on the Console or Xwindow X terminal. X terminals are recommended for all operations.

2. Load this competition IBM I love Linux Web Application Development disk, in the command line into: mount/mnt/cdrom

3. Go to the root directory of the cd and type cd/mnt/cdrom in the command line.

4. run the CD installation program and input :. /install. sh. the installation screen is automatically displayed, because you want to enter the advanced group for the Application Development competition, so follow the installation screen prompts, we choose to enter: A, enter the advanced group installation.



5. Go to the advanced group installation screen. IBM I love the Linux Web application competition this time using a large number of IBM application software. In order to reduce the product installation and usage problems of many participants in the competition, this CD has made a lot of customization work for TurboLinux DataServer Chinese Version 6.1, this allows you to easily install the application contest software.

In order for you to successfully participate in this Grand Prix, we hope you will use our bundled TurboLinux as the Linux system platform. Press Y as prompted to perform the next automatic installation.



6. The installation program is automatically installed in progress. This screen displays the automatic installation of ibm jdk, ibm http Server, ibm ssl Modules... And many other applications. For details, refer to the actual situation of your installation.



7. ibm http Server is a WWW Server developed on the basis of Apache HTTP Server, and added the SSL and online web HTTP Server configuration functions based on Apache.

To allow you to configure and manage the HTTP Server remotely, you must set the access user and access user password for your HTTP management Server. During the installation process, the program will automatically prompt you to enter the Management User Name (the default user name is admin, press enter directly to enter the Default User) and the Management User Password (the password must be entered twice, and the two passwords are the same ). The details are shown in the figure.



8. Next, the installer automatically installs the IBM DB2 UDB Working Group database V7.1, which is automatically completed without manual intervention ..

9. displays the status of successful IBM DB2 installation.

10. after the system automatically installs the IBM DB2 database, it automatically enters the installation phase of the IBM WebSphere Application Server and related application software, automatically mount Websphere Application Server, related documents, IBM VisualAge for Java for Linux 3.0, WebSphere Application Development Instance template EasyPortal... Some software packages are relatively large, such as VisualAge for Java. The installation time may be long. Please wait for the system to automatically complete the installation ..

11. The application software of the entire advanced group is successfully installed and can enter the practical stage.

12. After the installation is successful, the background IBM DB2 and ibm http should have been started properly. You should be able to browse the home page of the local machine in the browser. Start Netscape in Xwindow. In the URL bar, enter: http: // localhost or http: // your_host_ip or http: // your_host_name. If the ibm http Server in the background is started normally, you should see the picture

A total

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.