JBoss configuration
綜合能力考核表詳細(xì)內(nèi)容
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.本站的所有資料均為資料作者提供和網(wǎng)友推薦收集整理而來,僅供學(xué)習(xí)和研究交流使用。如有侵犯到您版權(quán)的,請(qǐng)來電指出,本站將立即改正。電話:010-82593357。
2、訪問管理資源網(wǎng)的用戶必須明白,本站對(duì)提供下載的學(xué)習(xí)資料等不擁有任何權(quán)利,版權(quán)歸該下載資源的合法擁有者所有。
3、本站保證站內(nèi)提供的所有可下載資源都是按“原樣”提供,本站未做過任何改動(dòng);但本網(wǎng)站不保證本站提供的下載資源的準(zhǔn)確性、安全性和完整性;同時(shí)本網(wǎng)站也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的損失或傷害。
4、未經(jīng)本網(wǎng)站的明確許可,任何人不得大量鏈接本站下載資源;不得復(fù)制或仿造本網(wǎng)站。本網(wǎng)站對(duì)其自行開發(fā)的或和他人共同開發(fā)的所有內(nèi)容、技術(shù)手段和服務(wù)擁有全部知識(shí)產(chǎn)權(quán),任何人不得侵害或破壞,也不得擅自使用。
我要上傳資料,請(qǐng)點(diǎn)我!
管理工具分類
ISO認(rèn)證課程講義管理表格合同大全法規(guī)條例營(yíng)銷資料方案報(bào)告說明標(biāo)準(zhǔn)管理戰(zhàn)略商業(yè)計(jì)劃書市場(chǎng)分析戰(zhàn)略經(jīng)營(yíng)策劃方案培訓(xùn)講義企業(yè)上市采購(gòu)物流電子商務(wù)質(zhì)量管理企業(yè)名錄生產(chǎn)管理金融知識(shí)電子書客戶管理企業(yè)文化報(bào)告論文項(xiàng)目管理財(cái)務(wù)資料固定資產(chǎn)人力資源管理制度工作分析績(jī)效考核資料面試招聘人才測(cè)評(píng)崗位管理職業(yè)規(guī)劃KPI績(jī)效指標(biāo)勞資關(guān)系薪酬激勵(lì)人力資源案例人事表格考勤管理人事制度薪資表格薪資制度招聘面試表格崗位分析員工管理薪酬管理績(jī)效管理入職指引薪酬設(shè)計(jì)績(jī)效管理績(jī)效管理培訓(xùn)績(jī)效管理方案平衡計(jì)分卡績(jī)效評(píng)估績(jī)效考核表格人力資源規(guī)劃安全管理制度經(jīng)營(yíng)管理制度組織機(jī)構(gòu)管理辦公總務(wù)管理財(cái)務(wù)管理制度質(zhì)量管理制度會(huì)計(jì)管理制度代理連鎖制度銷售管理制度倉(cāng)庫管理制度CI管理制度廣告策劃制度工程管理制度采購(gòu)管理制度生產(chǎn)管理制度進(jìn)出口制度考勤管理制度人事管理制度員工福利制度咨詢?cè)\斷制度信息管理制度員工培訓(xùn)制度辦公室制度人力資源管理企業(yè)培訓(xùn)績(jī)效考核其它
精品推薦
下載排行
- 1社會(huì)保障基礎(chǔ)知識(shí)(ppt) 16695
- 2安全生產(chǎn)事故案例分析(ppt 16695
- 3行政專員崗位職責(zé) 16695
- 4品管部崗位職責(zé)與任職要求 16695
- 5員工守則 16695
- 6軟件驗(yàn)收?qǐng)?bào)告 16695
- 7問卷調(diào)查表(范例) 16695
- 8工資發(fā)放明細(xì)表 16695
- 9文件簽收單 16695
- 10跟我學(xué)禮儀 16695