JBoss configuration
综合能力考核表详细内容
JBoss configuration
This document is provided "AS IS," without a warranty of any kind. All representations and warranties are excluded. In no event will the author be liable for any lost revenue, profit or data, or for indirect, special, consequential, incidental or punitive damages, arising out of the use of or inability to apply the content of this document.
English is not the author’s mother tongue. So this document can contain language errors of any kind. Feel free to correct them if you want it.
2.- Contents of the Zip file.
This document must be distributed compressed in a Zip file. The contents of the ZIP file has to be:
Jboss configuration.doc This document in Word format (original format).
Jboss configuration.html -> This document in HTML format.
run.bat -> BAT file to start Jboss.
jboss.jcml -> Configuration file of jboss.
standardjaws.xml -> Configuration file of jboss.
3.- Release info.
The information of this document refers to Windows 98, Jboss 2.4.4. with Jetty, Java SDK 1.4, PostgreSQL 7.1.3-2 (downloaded with Cygwin). The author has tested only this environment, although he believes that part of this document or even the whole document can be applied to other configurations of the same products.
4.- Why Jboss, Jetty and PostgreSQL?
The author has aimed at achieving an 100% Open Source Environment which could be used in production in order to provide commercial solutions. Jboss was the only J2EE server capable to do that. PostgreSQL is the only Open Source Database with JDBC driver supporting transactions (although the last versions of MySQL also support transactions, the JDBC driver has not been updated to reflect that). Jetty has been chosen because it is an HTML, servlet and JSP server. Another servlet server would have not been able to provide static content so it would have been necessary to install a Web server (like Apache). Choosing Jetty avoid the need to install another product.
5.- Downloading and installing.
First, download jBoss 2.4.4. from the Download link at Jboss site (www.jboss.org). This is easy. Then download Cygwin from www.cygwin.org (this is a bit more hard, follow the instructions of this site). Make sure you download PostgreSQL 7.1.3-2 and bunzip2 with cygwin and all the “base”, “shell” and “database” utilities (not all of these are mandatory, but I have had no time to test which of them are needed and which are not).
Install Cygwin on your computer (the Cygwin setup program does that). At this document, it is assumed that the folder is <cygfol>.
Then, download CygIPC at this site:
http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/cygipc/
You will download the latest binary file (e.g., cygipc-1.10-1.tar.bz2). Save it to the <cygfol> folder. Launch a Cygwin window (clicking the Cygwin icon on your desktop or running <cygfol>\cygwin.bat). Inside Cygwin, uncompress the binary file with a command like this: “bunzip2 -c <path-to-archive>/cygipc-1.10-1.tar.bz2 | tar xvf -”(don’t forget the final dash).
To test the CygIPC install, launch a Cygwin window and type: “ipc-daemon &” It should echo its process number and give no errors.
Uncompress Jboss and place it on a folder. We will name it <jbossfol>. The folder <jbossfold> has to include the following subfolders:
Jboss
Jetty
Jetty-jmx
The Jboss subfolder will be named <jbosssub> in this document (please don’t confuse it with <jbossfol> which has the same name, that is, “Jboss”).
Add the following lines to your autoexec.bat (every sentence beginning with “set” must be in one different line, be careful not to leave superfluous blank spaces) :
set JAVA_HOME=<the folder of your Java SDK installation>
set JBOSS_DIST=<jbosssub>
set JBOSS_CLASSPATH= %JBOSS_DIST% \LIB\EXT;%JAVA_HOME%\jre\lib\rt.jar;%JAVA_HOME%\lib\tools.jar;%JBOSS_DIST%\lib\ext\*.jar
set CLASSPATH=%JBOSS_DIST%\JBOSS\LIB\EXT;%JAVA_HOME%\jre\lib\rt.jar;%JAVA_HOME%\lib\tools.jar;%JBOSS_DIST%\lib\ext\*.jar (optionally, this is followed by the rest of your classpath).
6.- Configuring Jboss
There is a run.bat file at the <jbosssub>\bin directory. Replace this file with the run.bat file attached to the present document.
Copy the files jboss.jcml and standardjaws.xml (that are attached to the present document), to the <jbosssub>\conf\default and <jbosssub>\conf\jetty directories. By doing so, you will replace four existing files.
Remove the file named “tomcat-test.ear” from the <jbosssub>\deploy directory since we are working with Jetty and not with Tomcat.
7.- Configuring PostgreSQL
Copy the file “<cygfol>\usr\share\postgresql\java\postgresql.jar” to the directory <jbosssub>\lib\ext.
Launch a Cygwin window and type the command “ipc-daemon &“. Then, initialize PostgreSQL with “initdb -W -D /usr/share/postgresql/data”. When the program asks twice for superuser password, press ENTER twice (this is provisional, you should change it later)
Reboot the machine in order to set the changes made to autoexec.bat.
8.- Running it all.
Steps from 1 to 7 must be followed only once or, more exactly, each time jBoss is installed. But step 8 (the present one) must be followed each time jBoss is runned.
First, we must run PostgreSQL. Launch a Cygwin window and type “ipc-daemon &“. Then, run “postmaster -i -D /usr/share/postgresql/data”.
Then execute one of these programs: <jbosssub>\bin\run.bat (if you want to run jBoss without Jetty) or <jbosssub>\bin\run_with_jetty.bat (if you want to run jBoss with Jetty).
That’s all. One last note, if you want a GUI to manage PostGreSQL, download PgAdminII from http://pgadmin.postgresql.org/ This is not necessary so information regarding pgAdminII installation and execution is not included here.
9.- References
This document is the result of the work of the author. This work has been partially based on the following documents:
http://www.ejip.net/faq/postgresql_win_setup_faq.jsp
and
http://main.jboss.org/thread.jsp?forum=61&thread=7205&message=377518&q=PostgreSQL#377518
Since these documents have some inaccuracies and don’t have the same objectives than the present document, my advise is not to consult them.
JBoss configuration
This document is provided "AS IS," without a warranty of any kind. All representations and warranties are excluded. In no event will the author be liable for any lost revenue, profit or data, or for indirect, special, consequential, incidental or punitive damages, arising out of the use of or inability to apply the content of this document.
English is not the author’s mother tongue. So this document can contain language errors of any kind. Feel free to correct them if you want it.
2.- Contents of the Zip file.
This document must be distributed compressed in a Zip file. The contents of the ZIP file has to be:
Jboss configuration.doc This document in Word format (original format).
Jboss configuration.html -> This document in HTML format.
run.bat -> BAT file to start Jboss.
jboss.jcml -> Configuration file of jboss.
standardjaws.xml -> Configuration file of jboss.
3.- Release info.
The information of this document refers to Windows 98, Jboss 2.4.4. with Jetty, Java SDK 1.4, PostgreSQL 7.1.3-2 (downloaded with Cygwin). The author has tested only this environment, although he believes that part of this document or even the whole document can be applied to other configurations of the same products.
4.- Why Jboss, Jetty and PostgreSQL?
The author has aimed at achieving an 100% Open Source Environment which could be used in production in order to provide commercial solutions. Jboss was the only J2EE server capable to do that. PostgreSQL is the only Open Source Database with JDBC driver supporting transactions (although the last versions of MySQL also support transactions, the JDBC driver has not been updated to reflect that). Jetty has been chosen because it is an HTML, servlet and JSP server. Another servlet server would have not been able to provide static content so it would have been necessary to install a Web server (like Apache). Choosing Jetty avoid the need to install another product.
5.- Downloading and installing.
First, download jBoss 2.4.4. from the Download link at Jboss site (www.jboss.org). This is easy. Then download Cygwin from www.cygwin.org (this is a bit more hard, follow the instructions of this site). Make sure you download PostgreSQL 7.1.3-2 and bunzip2 with cygwin and all the “base”, “shell” and “database” utilities (not all of these are mandatory, but I have had no time to test which of them are needed and which are not).
Install Cygwin on your computer (the Cygwin setup program does that). At this document, it is assumed that the folder is <cygfol>.
Then, download CygIPC at this site:
http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/cygipc/
You will download the latest binary file (e.g., cygipc-1.10-1.tar.bz2). Save it to the <cygfol> folder. Launch a Cygwin window (clicking the Cygwin icon on your desktop or running <cygfol>\cygwin.bat). Inside Cygwin, uncompress the binary file with a command like this: “bunzip2 -c <path-to-archive>/cygipc-1.10-1.tar.bz2 | tar xvf -”(don’t forget the final dash).
To test the CygIPC install, launch a Cygwin window and type: “ipc-daemon &” It should echo its process number and give no errors.
Uncompress Jboss and place it on a folder. We will name it <jbossfol>. The folder <jbossfold> has to include the following subfolders:
Jboss
Jetty
Jetty-jmx
The Jboss subfolder will be named <jbosssub> in this document (please don’t confuse it with <jbossfol> which has the same name, that is, “Jboss”).
Add the following lines to your autoexec.bat (every sentence beginning with “set” must be in one different line, be careful not to leave superfluous blank spaces) :
set JAVA_HOME=<the folder of your Java SDK installation>
set JBOSS_DIST=<jbosssub>
set JBOSS_CLASSPATH= %JBOSS_DIST% \LIB\EXT;%JAVA_HOME%\jre\lib\rt.jar;%JAVA_HOME%\lib\tools.jar;%JBOSS_DIST%\lib\ext\*.jar
set CLASSPATH=%JBOSS_DIST%\JBOSS\LIB\EXT;%JAVA_HOME%\jre\lib\rt.jar;%JAVA_HOME%\lib\tools.jar;%JBOSS_DIST%\lib\ext\*.jar (optionally, this is followed by the rest of your classpath).
6.- Configuring Jboss
There is a run.bat file at the <jbosssub>\bin directory. Replace this file with the run.bat file attached to the present document.
Copy the files jboss.jcml and standardjaws.xml (that are attached to the present document), to the <jbosssub>\conf\default and <jbosssub>\conf\jetty directories. By doing so, you will replace four existing files.
Remove the file named “tomcat-test.ear” from the <jbosssub>\deploy directory since we are working with Jetty and not with Tomcat.
7.- Configuring PostgreSQL
Copy the file “<cygfol>\usr\share\postgresql\java\postgresql.jar” to the directory <jbosssub>\lib\ext.
Launch a Cygwin window and type the command “ipc-daemon &“. Then, initialize PostgreSQL with “initdb -W -D /usr/share/postgresql/data”. When the program asks twice for superuser password, press ENTER twice (this is provisional, you should change it later)
Reboot the machine in order to set the changes made to autoexec.bat.
8.- Running it all.
Steps from 1 to 7 must be followed only once or, more exactly, each time jBoss is installed. But step 8 (the present one) must be followed each time jBoss is runned.
First, we must run PostgreSQL. Launch a Cygwin window and type “ipc-daemon &“. Then, run “postmaster -i -D /usr/share/postgresql/data”.
Then execute one of these programs: <jbosssub>\bin\run.bat (if you want to run jBoss without Jetty) or <jbosssub>\bin\run_with_jetty.bat (if you want to run jBoss with Jetty).
That’s all. One last note, if you want a GUI to manage PostGreSQL, download PgAdminII from http://pgadmin.postgresql.org/ This is not necessary so information regarding pgAdminII installation and execution is not included here.
9.- References
This document is the result of the work of the author. This work has been partially based on the following documents:
http://www.ejip.net/faq/postgresql_win_setup_faq.jsp
and
http://main.jboss.org/thread.jsp?forum=61&thread=7205&message=377518&q=PostgreSQL#377518
Since these documents have some inaccuracies and don’t have the same objectives than the present document, my advise is not to consult them.
JBoss configuration
[下载声明]
1.本站的所有资料均为资料作者提供和网友推荐收集整理而来,仅供学习和研究交流使用。如有侵犯到您版权的,请来电指出,本站将立即改正。电话:010-82593357。
2、访问管理资源网的用户必须明白,本站对提供下载的学习资料等不拥有任何权利,版权归该下载资源的合法拥有者所有。
3、本站保证站内提供的所有可下载资源都是按“原样”提供,本站未做过任何改动;但本网站不保证本站提供的下载资源的准确性、安全性和完整性;同时本网站也不承担用户因使用这些下载资源对自己和他人造成任何形式的损失或伤害。
4、未经本网站的明确许可,任何人不得大量链接本站下载资源;不得复制或仿造本网站。本网站对其自行开发的或和他人共同开发的所有内容、技术手段和服务拥有全部知识产权,任何人不得侵害或破坏,也不得擅自使用。
我要上传资料,请点我!
管理工具分类
ISO认证课程讲义管理表格合同大全法规条例营销资料方案报告说明标准管理战略商业计划书市场分析战略经营策划方案培训讲义企业上市采购物流电子商务质量管理企业名录生产管理金融知识电子书客户管理企业文化报告论文项目管理财务资料固定资产人力资源管理制度工作分析绩效考核资料面试招聘人才测评岗位管理职业规划KPI绩效指标劳资关系薪酬激励人力资源案例人事表格考勤管理人事制度薪资表格薪资制度招聘面试表格岗位分析员工管理薪酬管理绩效管理入职指引薪酬设计绩效管理绩效管理培训绩效管理方案平衡计分卡绩效评估绩效考核表格人力资源规划安全管理制度经营管理制度组织机构管理办公总务管理财务管理制度质量管理制度会计管理制度代理连锁制度销售管理制度仓库管理制度CI管理制度广告策划制度工程管理制度采购管理制度生产管理制度进出口制度考勤管理制度人事管理制度员工福利制度咨询诊断制度信息管理制度员工培训制度办公室制度人力资源管理企业培训绩效考核其它
精品推荐
下载排行
- 1社会保障基础知识(ppt) 16695
- 2安全生产事故案例分析(ppt 16695
- 3行政专员岗位职责 16695
- 4品管部岗位职责与任职要求 16695
- 5员工守则 16695
- 6软件验收报告 16695
- 7问卷调查表(范例) 16695
- 8工资发放明细表 16695
- 9文件签收单 16695
- 10跟我学礼仪 16695