This method is by far the JSP pre-compiled for the most convenient way ("flick-a-switch" approach), he has many pointed to no significant shortcomings. If an error in the JSP's compile time or at deployment (or redeployment) of the time of the year, Web application, pre-compiled will be suspended in exceptional office. In addition, if a particular Web application JSP files inside the case there are many, declarative precompilation significantly affect deployment time, blocking deployment until all the files have been compiled. For large applications, where there are hundreds of JSP files to declarative pre-compiled to be executed when the trend of this deployment time in minutes to calculate (in some cases 10 to 15 minutes, other circumstances may be more) . Idea to start a server instance, in a specific Web application deployment cycle into the state of pre-compiled with declarative activation. If there are a lot of JSP application files and deployment, close to completion already spend a lot of time, throw an exception during compilation because the sudden failure, of course, lead to frustration. Although at first seems more convenient, but the declarative build on production systems result in significant risk management, it should be careful consideration before using it.
Process in pre-compiled
Under the WLS most reliable method of pre-compiled JSP is to use the Java command line, weblogic.jspc, which is located in the lib directory under WLS installation of weblogic.jar file. This tool allows developers to deploy in the development stage and the issue resolved before compile time when compiling JSP files needed. It also provides for the production system capable of achieving a pre-compiled JSP administrator. The main advantage of this usage are:
鈼?files can be pre-compiled once and then can be deployed many times. (This is not an instance of the server affected by reuse)
鈼?compile-time exception can be resolved without affecting the pre-deployment.
鈼?class can cluster deployment.
Disadvantage is the need to use weblogic.jspc human intervention, and its development time and become obsolete when the JSP file must be re-run time. However, Kaolv to the front of the two methods of discussion, we almost can not be that convenient as a drawback of this method, so recommend it Zuowei the most reliable and flexible mechanism for achieving pre-compiled JSP.
Executive weblogic.jspc
In order to more effectively use weblogic.jspc, you must first understand its usage and grammar. This article we will use WLS6.1 SP2's tools. Note: The following shows the syntax and best practices should be applied to all versions of WLS 6.1 and the new WLS 7.0.
To call the command-line JSP compiler (weblogic.jspc), you must determine the following:
鈼?PATH environment variable must contain J2SE1.3 installed on your machine binary packages directory (for example, / opt/j2se/1.3.1/sdk/bin or c: sunsoftj2se1.3.1sdk
相关链接:
Dell's Expansion Overseas Territory Shake The HP Printer Status Of The King
A brief description of JSF and Facelets
PHOTOSHOP And Seamless Texture
Lists Chat And Instant Messaging
ANSYS Chinese Help
Switch to THE best period of 2 to 3 years
Teaches you to grasp the chart from DB2 to delete several lines
DAT To MP4
Report Basic Or VB Or VB DotNet
comments System UTILITIES
VOB to MPG
The basic concepts OF object-oriented
Hot Terminal And Telnet Clients
MKV To MOV
3gpp2 Files to qt
How do I View the size of user tables share space
No comments:
Post a Comment