WebSphere packaged web applications and deployment options

WebSphere packaged web applications and deployment scenarios, the original quote from:

http://www.hashei.me/2009/07/websphere-application-compact-for-deployment.html

This paper describes the use of WebSphere packaged web applications and deployment options

Find assembly.bat and setupCmdLine.bat these two documents, the following diagram:

WebSphere packaged web applications and deployment options

One assembly.bat file is used to start the application assembly tool; setupCmdLine.bat is used to configure the startup parameters, located in the file at the beginning of the two possible (if it is copy over a) the need to configure:

SET WAS_HOME = D: \ WebSphere5 \ AppServer

SET JAVA_HOME = D: \ j2sdk1.4.2_03

WAS_HOME: Webshpere 5 installation directory or Webshpere 5 copies of directory;

JAVA_HOME: jdk directory, defaults to $ (WebSphere5) \ AppServer \ java directory, but not necessarily valid, you can try to point to your jdk common directory;

Parameters configured, run assembly.bat document, after the end of the process interface, the application assembly tool to show the main interface, the following diagram:

WebSphere packaged web applications and deployment options

[Process interface]

WebSphere packaged web applications and deployment options

[The main interface]

WebSphere packaged web applications and deployment options

Will open the following interface:

WebSphere packaged web applications and deployment options

Where the red coil painting named after the package name of your ear, and then right-click on the left side of the directory tree [Web module] and click [New], the following diagram

WebSphere packaged web applications and deployment options

Pop up its configuration interface, the following diagram:

WebSphere packaged web applications and deployment options

Naming a good file name (war package name) and the context root and click [OK] button, and then expand [Web modules] directory tree, get the next map interface:

WebSphere packaged web applications and deployment options

The following steps more crucial, including:

1, configuration WebSphere packaged web applications and deployment options

Delineation of some of the red line to make the following modifications:

WebSphere packaged web applications and deployment options

Its meaning is used to define the data connection in the pool, there are other roles that you see at a glance. Then, click [bound] Tab page, the following figure:

WebSphere packaged web applications and deployment options

The key here is to write your database connection pool JNDI name in the application after the release will be defined in detail, and good, by definition, I have written is as follows:

At this point we have a database connection resource reference defined finished, click [OK] button bar!

WebSphere packaged web applications and deployment options

Open the following interface:

WebSphere packaged web applications and deployment options

Note that the red part of the concept of the coil set, a brief explanation, we generally use a directory such as the following diagram:

WebSphere packaged web applications and deployment options

In this opensrc is your root directory or archive. Click [Browse] button, select the folder the following figure, after opensrc:

WebSphere packaged web applications and deployment options

In the left tree expand WEB-INF directory select the classes directory, and then under the right side of the content on the display all the contents of the classes, as follows:

WebSphere packaged web applications and deployment options

The right to select all the contents, click [Add] button, the following diagram:

WebSphere packaged web applications and deployment options

You can also go to get rid of some unwanted content, such as we often use the VSS of the resulting "vssver.scc", is selected and click [Remove] button, okay completed click [OK] button.

WebSphere packaged web applications and deployment options

You can click on the red line delineated in the [expansion] head, sort, select all need to remove the files, and then press the keyboard [DEL] key to delete. Such files are added to finish.

2, configuration jar file

Add a jar file and add the class file operations identical, but in the directory tree on the left select "WEB-INF/lib" directory, it is noteworthy to add certain if the "jar" file, if not, such as the spring of the "spring-beans . dtd "file, the tool will remind you, do not ignore it, and as long as [OK] on the line.

3, configuration resource file

Add a resource file in two steps:

Ø In the directory tree on the left select the "root" directory, in this is the "opensrc" directory, it is noteworthy that the choice to remove the right of the contents of note "WEB-INF" directory, the following figure:

WebSphere packaged web applications and deployment options

Ø In the directory tree on the left select "WEB-INF" directory, it is noteworthy that the choice to remove the right of the contents of note "classes" and "lib" directory, the following figure:

WebSphere packaged web applications and deployment options

Click [OK] button, everything OK, Oh! Wrong, how the list is not "struts-config.xml" and other documents, I do not know why, the tool did not show them up, but you rest assured that they have been included entered.

Next we must configure all of the servlet and servlet mapping, you can control the original web.xml file one by one added to the "web component" and the servlet mapping to go, pay attention to configure a number of initialization parameters and other attributes.

The application's web.xml control may also need to add some other configuration information to its new WebSphere packaged web applications and deployment options

Tool shows preservation process:

WebSphere packaged web applications and deployment options

Then happy to pop-up:

WebSphere packaged web applications and deployment options

HA HA ! 're Done! Do not worry, we have to check the use of RAR will be ". Ear" open the packet

WebSphere packaged web applications and deployment options

Oh! The original is the case, to further open the "META-INF" directory:

WebSphere packaged web applications and deployment options

This is the WebSphere packaged web applications and deployment options

"Struts-config.xml" and other documents are in operation. Note that the directory level of war will not confuse the bag, a mess in general to re-package the resource file, be sure.

分类:Java 时间:2010-03-29 人气:323
分享到:
blog comments powered by Disqus

相关文章

  • Database connection pool using the JAVA version BoneCP 2011-09-21

    BoneCP is a fast, free, open-source, Java database connection pool (JDBC Pool) library. If you are familiar with C3P0 and DBCP then you already know what this means. For the rest, this is a library that will manage a database connection for you to ge

  • Dbcp database connection pool with c3p0 using 2011-08-29

    As we all know, whether it is B / S or C / S applications, and databases are inevitably have to deal with. Exchange with the database Each process, often requires a lot of connections. For a large-scale applications, often need to deal with tens of m

  • The definition of connection pool and release (reproduced) 2010-03-18

    The basic working principle of the connection pool 1. Basic concepts and principles Can be seen from the above analysis, the root of the problem lies in the inefficient management of the database connection resource . We know, for the sharing of reso

  • apache connection pool to use 2011-07-14

    apache connection pool to use commons DBCP Brief description of configuration parameters In the configuration, the main difficult to understand the main :removeAbandoned .logAbandoned.removeAbandonedTimeout.maxWait These four parameters, set rmoveAba

  • Thread pool and connection pool 2010-06-09

    The principle of the thread pool: Look at how the thread pool is about what? In fact, the principle is very simple thread pool, similar to the concept of the operating system in the buffer, its process is as follows: first, a certain number of thread

  • spring connection pool configuration Xiangjie 2010-07-24

    First, an overview of the connection pool Database Connection Pool overview: Database connection is an expensive key limited resources, this web page in a multi-user applications, especially embodied. The management of the database connection can sig

  • The principle of the thread pool and connection pool works 2011-08-18

    The principle of the thread pool : Look at how the thread pool is exactly the same thing? In fact, the principle is very simple thread pool , Similar to the operating system buffer concept, it follows the process : First start a certain number of thr

  • java database connection pool configured in several ways 2011-01-03

    Java database connection pool configuration on several ways to meet today on the data source connection pool configuration questions, find there are many ways to configure, are summarized as follows, (has Mysql database as an example) A, Tomcat confi

  • Comparing Java framework database connection pool (c3p0, dbcp and proxool) 2011-07-16

    Now commonly used open source data connection pool are c3p0, dbcp and proxool three, including: ¨ hibernate team recommends using c3p0; ¨ spring team recommends using dbcp (dbcp connection pool weblogic connection pool has the same problem, is forced

  • Java connection pool using the Oracle database connection 2010-10-26

    1.Java four methods of connecting to the database program 1 JDBC-ODBC bridge and ODBC driver - in this way, this is a local solution, because the ODBC driver and the bridge code must appear in each user's machine. Fundamentally, this is a temporary s

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 1.151 (s). 12 q(s)