ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>999国产精品,精品一区中文字幕,女人天堂在线http://www.aygfsteel.com/liaojiyong/category/11506.htmlzh-cnTue, 18 Dec 2007 07:59:29 GMTTue, 18 Dec 2007 07:59:29 GMT60Tomcat常用调优技å·?è½?http://www.aygfsteel.com/liaojiyong/archive/2007/12/16/168053.htmlliaojiyongliaojiyongSun, 16 Dec 2007 03:38:00 GMThttp://www.aygfsteel.com/liaojiyong/archive/2007/12/16/168053.htmlhttp://www.aygfsteel.com/liaojiyong/comments/168053.htmlhttp://www.aygfsteel.com/liaojiyong/archive/2007/12/16/168053.html#Feedback0http://www.aygfsteel.com/liaojiyong/comments/commentRss/168053.htmlhttp://www.aygfsteel.com/liaojiyong/services/trackbacks/168053.html     其实真正的WEB容器调优是需要许多方面的知识的,你必™åÖMº†è§£ç½‘¾lœï¼‹¼‹¬äšgåQ‹OSåQ‹JVMåQ‹WEB容器åQŒä½†æ˜¯è¿™½‹‡æ–‡ç« æ— æ³•讲解那么多åQŒè€Œåº”用服务器本èín也有些调优的基本原则åQŒä¸‹æ–‡å°±ä¼šç»™äºˆä»‹¾lã€?br />     先在Tomcat安装目录中找到conf子目录,然后再打开web.xmlæ–‡äšgåQŒæœç´¢é™„ä»¶A中的内容åQŒå¯èƒ½ä¼šæœ‰äº›ä¸åŒã€‚不同的地方ž®±æ˜¯éœ€è¦ä¿®æ”¹çš„部分ã€?br />     1. 屏蔽DNS查询ã€?br />     Web应用½E‹åºå¯ä»¥é€šè¿‡Web容器提供的getRemoteHost()æ–ÒŽ³•获得讉K—®Web应用客户的IP地址和名¿UŽÍ¼Œä½†æ˜¯˜q™æ ·ä¼šæ¶ˆè€—Web容器的资源,òq¶ä¸”˜q˜éœ€è¦é€šè¿‡IP地址和DNS服务器反查用æˆïLš„名字åQŒå› æ­¤å½“¾pȝ»Ÿä¸Šçº¿æ—Óž¼Œå¯ä»¥ž®†è¿™ä¸ªå±žæ€§å…³é—­ï¼Œä»Žè€Œå‡ž®‘资源消耗,那么Web应用也就只能记录下IP地址了。修改的属性是enableLoopups="false"
    2. 调整¾U¿ç¨‹æ•°ã€?br />     Tomcat通过¾U¿ç¨‹æ± æ¥ä¸ºç”¨æˆ¯‚®¿é—®æä¾›å“åº”,对于上线的系¾lŸåˆæ­¥ä¼°è®¡ç”¨æˆ·åƈ发数量后åQŒç„¶åŽè°ƒæ•´çº¿½E‹æ± å®šw‡ã€‚例如:用户òq¶å‘数量大约åœ?00左右。那么可以设¾|®minProcessors="100" maxProcessors="100"åQŒå°†æœ€å¤§å’Œæœ€ž®è®¾¾|®äؓ一样后åQŒçº¿½E‹æ± ä¸ä¼šå†é‡Šæ”„¡©ºé—²çš„¾U¿ç¨‹åQŒä‹É用户讉K—®½Hç„¶å¢žåŠ çš„æ—¶å€™ï¼Œä¸éœ€è¦å†æ¶ˆè€—ç³»¾lŸèµ„源去创徏新的¾U¿ç¨‹ã€?br />     3. 调整最大连接数
    ˜q™ä¸ªå…¶å®žæœ€å¤æ‚åQŒå³ä½¿ç”¨æˆ·åƈ发量大,但是¾pȝ»Ÿååº”速度快的话,可以把这个å€ég¸ç”¨è®¾¾|®å¤ªé«˜ï¼Œé«˜äº†¾pȝ»Ÿéœ€è¦æ¶ˆè€—大量的资源åŽÕdˆ‡æ¢çº¿½E‹ï¼Œä½†æ˜¯å¦‚果讄¡½®å¤ªä½Žä¹Ÿä¼šé€ æˆåº”用无法满èƒö用户òq¶å‘需要。因此设¾|®è¿™ä¸ªæœ€å¥½èƒ½å¤Ÿç»“合整个系¾lŸçš„跟踪与调优,使系¾lŸè¾¾åˆ°æœ€å¥½çš„òq³ç¨³çŠ¶æ€ã€‚ä¸€èˆ¬è®¾¾|®äØ“maxProcessorsçš?.5倍就可以了ã€?br />     4. 调整¾|‘络­‘…æ—¶ã€?br />     主要是HTTP协议也有个连接过½E‹ï¼Œå®¢æˆ·ç«¯è¿žæŽ¥åˆ°æœåŠ¡å™¨ä¸ŠåŽï¼Œå¤šé•¿æ—‰™—´æ²¡æœ‰å¾—到处理ž®×ƒ¼šè¢«é‡Šæ”¾ã€‚如果服务器处理速度较慢åQŒä½†æ˜¯å¸Œæœ›æ¯ä¸ªç”¨æˆ·éƒ½èƒ½å¾—到有效处理,或者网¾lœçŽ¯å¢ƒä¸å¥½ï¼Œéœ€è¦ä¿è¯ç”¨æˆ·ä¸ä¼šå› ä¸ø™¶…时会断,也可以把旉™—´åŠ é•¿ã€‚ä½†æ˜¯ä¸€èˆ¬è®¾¾|®æˆconnectionTimeout="30000"ž®±å¯ä»¥äº†ã€‚太长对¾pȝ»Ÿæ¥è¯´ä»·å€ég¸å¤§ï¼Œåè€Œä¼š‹¹ªè´¹¾pȝ»Ÿèµ„源在无谓的长连接上ã€?br />     附äšgAã€?br />     在tomcat配置文äšgserver.xml中的<Connector ... />配置中,和连接数相关的参数有åQ?br />     minProcessorsåQšæœ€ž®ç©ºé—²è¿žæŽ¥çº¿½E‹æ•°åQŒç”¨äºŽæé«˜ç³»¾lŸå¤„理性能åQŒé»˜è®¤å€égØ“10
    maxProcessorsåQšæœ€å¤§è¿žæŽ¥çº¿½E‹æ•°åQŒå³åQšåƈ发处理的最大请求数åQŒé»˜è®¤å€égØ“75
    acceptCountåQšå…è®¸çš„æœ€å¤§è¿žæŽ¥æ•°åQŒåº”大于½{‰äºŽmaxProcessorsåQŒé»˜è®¤å€égØ“100
    enableLookupsåQšæ˜¯å¦åæŸ¥åŸŸåï¼Œå–å€égØ“åQštrue或falseã€‚äØ“äº†æé«˜å¤„ç†èƒ½åŠ›ï¼Œåº”è®¾¾|®äØ“false
    connectionTimeoutåQšç½‘¾lœè¿žæŽ¥è¶…æ—Óž¼Œå•位åQ𿝫¿U’。设¾|®äØ“0è¡¨ç¤ºæ°æ€¸­‘…æ—¶åQŒè¿™æ ¯‚®¾¾|®æœ‰é𐿂£çš„。通常可设¾|®äØ“20000毫秒ã€?nbsp;   <Connector
    className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" connectionTimeout="20000"
    useURIValidationHack="false"
/>Tomcat常用调优技�txt

]]>
tomcat5.5.9˜qžæŽ¥æ± çš„配置(è½?http://www.aygfsteel.com/liaojiyong/archive/2007/03/30/107403.htmlliaojiyongliaojiyongFri, 30 Mar 2007 01:29:00 GMThttp://www.aygfsteel.com/liaojiyong/archive/2007/03/30/107403.htmlhttp://www.aygfsteel.com/liaojiyong/comments/107403.htmlhttp://www.aygfsteel.com/liaojiyong/archive/2007/03/30/107403.html#Feedback0http://www.aygfsteel.com/liaojiyong/comments/commentRss/107403.htmlhttp://www.aygfsteel.com/liaojiyong/services/trackbacks/107403.html最˜q‘做个项目,需要在tomcatåQŒweblogic中写˜qžæŽ¥æ±?weblogic˜q˜æ˜¯è€æ ·å­ï¼Œç…§ç€å›‘ÖŞ界面配置ž®±å¯ä»¥äº†åQŽTomcat我用的是5.5åQ?åQŽè™½è¯´ä»¥å‰ç”¨tomcat4版本写过åQŒå¯æ—©å°±å¬è¯´åQŒï¼•版本和4版本的差距很大.所以就提前做好了心里准备,先看了一个帮助文档,èŠ×ƒº†˜q›ä¸€ä¸ªå°æ—¶çš„æ—‰™—´æžå®šåQŒçŽ°åœ¨æ•´ç†å‡ºæ¥ä¸Žå¤§å®¶åˆ†äínåQ?/div>
其实Tomcat5要比tomcat4½Ž€å•多了,如果˜q˜æ˜¯æŒ‰tomcat4的套路来åQŒå‘µå‘µï¼Œé‚£ææ€•那走很多弯路了åQ?/div>
½W¬ä¸€æ­¥ï¼šåœ¨tomcat5â†?span>common→lib下加入你所˜qžæŽ¥æ•°æ®åº“的驱动包.˜q™é‡Œæˆ‘用的mysql数据库.
½W¬äºŒæ­¥ï¼šåœ¨tomcat5â†?span>conf→Catalina→localhost配置一个xmlæ–‡äšgåQ?span style="COLOR: red">˜q™é‡Œä¸€å®šè¦æ³¨æ„åQŒå¿…™åÕd’Œä½ çš„™å¹ç›®åç§°æ˜¯ä¸€æ¨¡ä¸€æ ïLš„åQŽæˆ‘用的™å¹ç›®åäØ“testTomcat.testTomcat.xmlæ–‡äšg配置如下åQ?/span>
    <Resource name='jdbc/mysql' auth='Container'
              type='javax.sql.DataSource' driverClassName='com.mysql.jdbc.Driver'
             url='jdbc:mysql://127.0.0.1:3306/addressbooksample'
              username='root' password='' maxActive='20' maxIdle='10'
              maxWait='-1'/>
 
 <ResourceLink
    global="UserDatabase"
    name="users"
type="org.apache.catalina.UserDatabase"/>
˜q™é‡Œž®±å’Œä»¥å‰çš?span>tomcat4版本不一样了åQŒä»¥å‰è¦åœ¨server.xml配置åQŽè€Œtomcat5版本直接在这里配¾|®å°±å¯ä»¥äº†ï¼Ž
½W¬ä¸‰æ­¥ï¼šåœ¨ä½ ™å¹ç›®çš?span>web.xml配置如下åQ?/span>
 <resource-ref>
    <description>mysql  for 192.1.1.156 </description>
    <res-ref-name> jdbc/mysql </res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
 </resource-ref>
注意åQšè¿™é‡Œçš„res-ref-name名字必须和testTomcat.xmlæ–‡äšgä¸­çš„ä¸€æ øP¼Žå…¶å®ž˜q™ä¸€æ­¥çœåŽÖM¹Ÿæ˜¯å¯ä»¥çš„åQŽä½†˜q˜æ˜¯å»ø™®®é…ç½®ä¸€ä¸‹ï¼Ž
½W¬å››æ­¥ï¼šå»ÞZ¸€ä¸?span>JSP™åµé¢æ¥æ„Ÿå—一下成功的喜悦吧.™åµé¢ä»£ç å¦‚下
Context initCtx = new InitialContext();
           Context ctx = (Context) initCtx.lookup("java:comp/env");
          ds   =(javax.sql.DataSource) ctx.lookup( åQ‚jdbc/mysqlåQ?;
          System.out.println("Init datasource OK @!");
注意åQšåˆ«å¿˜äº†å¼•入相关的包哦.˜q˜è¦æ³¨æ„çš„æ˜¯˜q™é‡Œä¸èƒ½ç”¨ä¸»å‡½æ•°æ¥æµ‹è¯•ï¼Žå› äØ“ä½ ä¸»å‡½æ˜¯å¾—åˆ°tomcat的上下文的.
在项目中应用如下åQ?/div>
public class TomcatJDNI {
 
     public static String
     DATASOURCE_CONFIG_FILE="test.db";
         public static DataSource ds;
        
         static{
              try{
          ResourceBundle rb = ResourceBundle.getBundle(DATASOURCE_CONFIG_FILE);
          String dsName     = rb.getString("datasource_name");
               Context initCtx = new InitialContext();
              Context ctx = (Context) initCtx.lookup("java:comp/env");
          ds   =(javax.sql.DataSource) ctx.lookup(dsName);
          System.out.println("Init datasource OK @!");
     }catch(Exception e){
         System.out.println("can’t init datasource !");
     }
     }
 
     public static Connection getConnection() throws SQLException{
         return ds.getConnection();
     }
ï½?/span>
˜q™é‡Œçš?span>test.db是一个db.propertiesæ–‡äšgåQŽæ–‡ä»¶å†…容如ä¸?/span>
datasource_name= jdbc/mysql
˜q™æ ·æ‰©å±•性比较好åQŽè¿žæŽ¥å…¶å®ƒçš„æ•°æ®åº“,只需要改动此文äšgåQŒæ— éœ€é‡æ–°¾~–译åQ?/div>
ž®±åˆ°˜q™é‡Œå?/div>
Good luck!



]]>Hibernate ˜qžTomcat数据源配¾|?åQˆè{åQ?/title><link>http://www.aygfsteel.com/liaojiyong/archive/2007/03/23/105712.html</link><dc:creator>liaojiyong</dc:creator><author>liaojiyong</author><pubDate>Fri, 23 Mar 2007 01:31:00 GMT</pubDate><guid>http://www.aygfsteel.com/liaojiyong/archive/2007/03/23/105712.html</guid><wfw:comment>http://www.aygfsteel.com/liaojiyong/comments/105712.html</wfw:comment><comments>http://www.aygfsteel.com/liaojiyong/archive/2007/03/23/105712.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liaojiyong/comments/commentRss/105712.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liaojiyong/services/trackbacks/105712.html</trackback:ping><description><![CDATA[ <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US">1 </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">参è€?/span> <span lang="EN-US">Tomcat</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">配置文äšg</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">配好</span> <span lang="EN-US">Tomcat</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数据æº?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US">2 </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">修改</span> <span lang="EN-US">Hibernate </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">配置文äšg</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span> </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"><?</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">xml </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">version</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">=</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">'1.0' </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">encoding</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">=</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">'UTF-8'</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">?></span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"><!</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">DOCTYPE </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">hibernate-configuration </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">PUBLIC</span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <span style="mso-spacerun: yes">          </span> </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">"-//Hibernate/Hibernate Configuration DTD 3.0//EN"<span style="mso-spacerun: yes">         </span></span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f5f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">></span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f5fbf; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"><!-- Generated by MyEclipse Hibernate Tools.<span style="mso-spacerun: yes">                   </span>--></span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"><</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">hibernate-configuration</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">></span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"><</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">session-factory</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">></span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <span style="mso-tab-count: 1">    </span> </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: fuchsia; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"><property name="connection.useUnicode">true</property><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: fuchsia; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <span style="mso-tab-count: 1">    </span><property name="connection.characterEncoding">gb2312</property><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <span style="mso-spacerun: yes">   </span><!â€?/span> <span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">只配˜q™ä¸€å¥å°±å¯ä»¥äº†çš„</span> <span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> </span> <span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">用户名密码等½{‰å…¶ä»–参数全部不用配了的</span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">-- ><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <span style="mso-tab-count: 1">    </span> </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"><property name="connection.datasource">java:comp/env/jdbc/mysql</property><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <span style="mso-tab-count: 1">    </span> </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"><</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">property </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">name</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">=</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">"dialect"</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">></span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <span style="mso-tab-count: 2">       </span>org.hibernate.dialect.MySQLDialect</span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <span style="mso-tab-count: 1">    </span> </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"></</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">property</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">></span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <span style="mso-tab-count: 1">    </span> </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"><</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">mapping </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">resource</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">=</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">"com/test/Hibernate/orm/User.hbm.xml" </span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">/></span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"></</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">session-factory</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">></span> <span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"></</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">hibernate-configuration</span> <span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US">3 </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">‹¹‹è¯•用例</span> </p> <img src ="http://www.aygfsteel.com/liaojiyong/aggbug/105712.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liaojiyong/" target="_blank">liaojiyong</a> 2007-03-23 09:31 <a href="http://www.aygfsteel.com/liaojiyong/archive/2007/03/23/105712.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Tomcat 数据库连接池配置(各种版本) (è½?http://www.aygfsteel.com/liaojiyong/archive/2007/03/23/105710.htmlliaojiyongliaojiyongFri, 23 Mar 2007 01:29:00 GMThttp://www.aygfsteel.com/liaojiyong/archive/2007/03/23/105710.htmlhttp://www.aygfsteel.com/liaojiyong/comments/105710.htmlhttp://www.aygfsteel.com/liaojiyong/archive/2007/03/23/105710.html#Feedback0http://www.aygfsteel.com/liaojiyong/comments/commentRss/105710.htmlhttp://www.aygfsteel.com/liaojiyong/services/trackbacks/105710.html阅读全文

]]>
JBoss核心价å€?/title><link>http://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55913.html</link><dc:creator>liaojiyong</dc:creator><author>liaojiyong</author><pubDate>Fri, 30 Jun 2006 03:45:00 GMT</pubDate><guid>http://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55913.html</guid><wfw:comment>http://www.aygfsteel.com/liaojiyong/comments/55913.html</wfw:comment><comments>http://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55913.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liaojiyong/comments/commentRss/55913.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liaojiyong/services/trackbacks/55913.html</trackback:ping><description><![CDATA[ <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-outline-level: 1" align="center"> <b> <span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 18.0pt">JBoss Core Values<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span> </b> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-outline-level: 1" align="center"> <b> <span style="FONT-SIZE: 11pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 18.0pt"> </span> </b> <b> <span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 18.0pt"> <o:p> </o:p> </span> </b> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-outline-level: 1"> <b> <span style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 18.0pt">原文地址</span> </b> <b> <span lang="EN-US" style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 18.0pt"> <a >http://www.jboss.org/company/corevalues</a> <o:p> </o:p> </span> </b> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-outline-level: 2" align="left"> <b> <span lang="EN-US" style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">1. "Professional Open Sourceâ„?</span> </b> <b> <span style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">专业开æº?/span> </b> <b> <span lang="EN-US" style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </b> </p> <ul type="disc"> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We passionately believe in this collection of words, our invention, and the market category it defines. We are committed to making Open Source safe for enterprises. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们满怀热情的相信这个程序的集合ä½?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">,</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">æˆ‘ä»¬çš„åˆ›é€ å’Œå®ƒæ‰€å®šä¹‰çš„å¸‚åœø™Œƒç•?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们致力于开源企业çñ”的安全性应ç”?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We were born out of the Open Source movement and believe professional open source is the way for <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /?><st1:place w:st="on"><st1:city w:st="on">OSS</st1:city></st1:place> to achieve its full potential. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">æˆ‘ä»¬å‡ºç”ŸäºŽå¼€æºè¿åŠ¨åÆˆç›æ€¿¡ä¸“业开源是</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">OSS</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">辑ֈ°å®ƒæ½œåŠ›åŠè‡³çš„æ–ÒŽ³•</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We believe in Free Software as a safe choice for developers, partners and end users alike. We use other licenses as needed. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">æˆ‘ä»¬ç›æ€¿¡å…è´¹è½¯äšg对于开发ähå‘?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">,</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">合作者和最¾lˆç”¨æˆäh¥è¯´æ˜¯ä¸€ä¸ªå®‰å…¨çš„选择</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们使用其他需要的认证机制</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We believe in for-profit open source as a way to fairly compensate talented individuals. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">æˆ‘ä»¬ç›æ€¿¡æœ‰å¿å¼€æºæ˜¯ä¸€¿Uå¯¹ä¸ªäh智力力_Š¨ä»˜å‡ºçš„å…¬òq³çš„补偿方式</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Our survival depends on delivering superior service to customers. We prove that Open Source and Professionalism do rhyme. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l1 level1 lfo1"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们的生存依赖于为用æˆähä¾›é«˜¾U§çš„æœåŠ¡</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们证明开源和专家ä¸ÖM¹‰å¯ä»¥å’Œè°å‘展</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> </ul> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-outline-level: 2" align="left"> <b> <span lang="EN-US" style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">2. Group trust and personal integrity </span> </b> <b> <span style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">团队的信ä»Õd’Œä¸ªähçš„ä­h值完æ•?/span> </b> <b> <span lang="EN-US" style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </b> </p> <ul type="disc"> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We operate internally on the basis of mutual trust. Nobody in the company will knowingly deceive another member. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们内部的运作基于相互的信ä“Q</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">在公叔R‡Œæ²¡æœ‰äººå¯ä»¥æ•…意欺骗其他成å‘?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We are honest. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们都是正直的äh</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We tell the truth among ourselves, to our clients, to our partners, to our investors, to our prospects. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们å¯ÒŽˆ‘们的客户</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">,</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">合作伙伴</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">,</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">投资è€?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">,</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">前景在我们自íw«ä¹‹é—´å¦è¯šç›¸å‘?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We are committed to profitability and sound finances. We are thrifty. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们致力于收益率和可靠的财务状况</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们勤ä„P节约</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We place the needs of the federation of projects above individual ones. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l0 level1 lfo2"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们ž®†é¡¹ç›®ä¸­è”盟的需要放在个人需要之ä¸?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> </ul> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-outline-level: 2" align="left"> <b> <span lang="EN-US" style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">3. Excellence and Ambition</span> </b> <b> <span style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">优点和雄å¿?/span> </b> <b> <span lang="EN-US" style="FONT-SIZE: 9pt; COLOR: #003c94; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </b> </p> <ul type="disc"> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We innovate at all cost in technology and business. We reward, empower and promote talent. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们在所有的技术和商业领域创新发展</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们¾l™äºˆäººæ‰å›žæŠ¥</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">,</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">权利和发å±?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We operate as a meritocracy. For developers street credentials must be earned. In business common sense must be proved. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们以实力主义来˜qä½œ</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">开发äh员必™åÀLœ‰è¡—道的证æ˜?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">必须具备商业常识</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">We don't underestimate our competition, we remain paranoid. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们不低估我们的竞争å¯Òމ‹</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">,</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们保持偏执</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Technology first. We base decisions first on technology, then business, then competition. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">技术第一</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们军_®šçš„基¼‹€½W¬ä¸€æ˜¯æŠ€æœ?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">,</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">再次是商ä¸?/span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">,</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">最后是竞争</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Our long term ambition is to make JBoss the defacto middleware platform for the industry. <o:p></o:p></span> </li> <li id="wmqeeuq" class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; COLOR: black; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; tab-stops: list 36.0pt; mso-list: l2 level1 lfo3"> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">我们长期的雄心是使得</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">JBoss</span> <span style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">æˆäØ“ä¸šç•Œçš„æ—¢æˆäº‹å®žä¸Šçš„ä¸­é—´äšgòq›_°</span> <span lang="EN-US" style="FONT-SIZE: 8pt; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">.<o:p></o:p></span> </li> </ul> <img src ="http://www.aygfsteel.com/liaojiyong/aggbug/55913.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liaojiyong/" target="_blank">liaojiyong</a> 2006-06-30 11:45 <a href="http://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55913.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JBoss3.xå’?.x下配SqlServer JDBC驱动åQˆè{åQ?/title><link>http://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55912.html</link><dc:creator>liaojiyong</dc:creator><author>liaojiyong</author><pubDate>Fri, 30 Jun 2006 03:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55912.html</guid><wfw:comment>http://www.aygfsteel.com/liaojiyong/comments/55912.html</wfw:comment><comments>http://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55912.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liaojiyong/comments/commentRss/55912.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liaojiyong/services/trackbacks/55912.html</trackback:ping><description><![CDATA[ <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">åœ¨äØ“</span> <span lang="EN-US">JBoss</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">配置</span> <span lang="EN-US">Hibernate</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的时候发现的问题和心å¾?/span> <span lang="EN-US">,</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">拿出来共享一ä¸?/span> <span lang="EN-US">.</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; tab-stops: list 18.0pt; mso-list: l0 level1 lfo1"> <span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'"> <span style="mso-list: Ignore">1.<span style="FONT: 7pt 'Times New Roman'">       </span></span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使用微èÊYçš?/span> <span lang="EN-US">SQLSERVER2000</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">驱动</span> <span lang="EN-US">,</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">ä¸ÞZ¸‰ä¸ªæ–‡ä»?/span> <span lang="EN-US">mssqlserver.jar ,msutil.jar</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">å’?/span> <span lang="EN-US"> mbase.jar,copy</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">è‡?/span> <span lang="EN-US">server\default\lib</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">ä¸?/span> <span lang="EN-US">.</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; tab-stops: list 18.0pt; mso-list: l0 level1 lfo1"> <span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'"> <span style="mso-list: Ignore">2.<span style="FONT: 7pt 'Times New Roman'">       </span></span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">讄¡½®</span> <span lang="EN-US">mssql-ds.xml,</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">具体讄¡½®æ–ÒŽ³•参见</span> <span lang="EN-US">jboss</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">说明文档</span> <span lang="EN-US">.</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">我们可以åœ?/span> <span lang="EN-US">\docs\examples\jca</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下找到默认的各种对应数据库配¾|®æ–‡ä»¶æ¨¡æ?/span> <span lang="EN-US">. mssql-ds.xml</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">ä¸?/span> <span lang="EN-US">:</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"><?xml version="1.0" encoding="UTF-8"?><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"><datasources><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">  </span><local-tx-datasource><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">    </span><jndi-name>MSSQLDS</jndi-name><span style="mso-spacerun: yes">  </span><connection-url>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=MyDatabase</connection-url><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">    </span><driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">    </span><user-name>x</user-name><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">    </span><password>y</password><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">      </span><!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">      </span><metadata><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">         </span><type-mapping>MS SQLSERVER2000</type-mapping><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">      </span></metadata><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"> <span style="mso-spacerun: yes">  </span></local-tx-datasource><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-SIZE: 9pt"></datasources><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">修改对应的属æ€?/span> <span lang="EN-US" style="FONT-SIZE: 9pt">,</span> <span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">一般修æ”?/span> <span lang="EN-US" style="FONT-SIZE: 9pt">jndi-name ,onnection-url, user-name, password.<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">ž®†ä¿®æ”¹å¥½çš?/span> <span lang="EN-US">mssql-ds.xml</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">拯‚´åˆ?/span> <span lang="EN-US">server\default\deploy</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">ç›®å½•ä¸‹åÆˆåˆ é™¤é»˜è®¤çš?/span> <span lang="EN-US">hsqldb-ds.xml</span> <span lang="EN-US" style="mso-bidi-font-size: 9.0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; tab-stops: list 18.0pt; mso-list: l0 level1 lfo1"> <span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'"> <span style="mso-list: Ignore">3.<span style="FONT: 7pt 'Times New Roman'">       </span></span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">讄¡½®</span> <span lang="EN-US">server\default\conf</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">目录ä¸?/span> <span lang="EN-US">standardjws.xml</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">å’?/span> <span lang="EN-US"> standardjbosscmp-jdbc.xml</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">ä¸?/span> <span lang="EN-US">Jndi name</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">å’?/span> <span lang="EN-US">type-mapping :</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt"> <span lang="EN-US">standardjbosscmp-jdbc.xml</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">ä¸?/span> <span lang="EN-US">:</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">修改</span> <span lang="EN-US"><datasource>java:/MSSQLDS</datasource></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">加入</span> <span lang="EN-US"><datasource-mapping>MS SQLSERVER2000</datasource-mapping></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US">standardjws.xml</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">ä¸?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">修改</span> <span lang="EN-US"><datasource>java:/MSSQLDS</datasource></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <span style="mso-spacerun: yes">   </span> <span style="mso-tab-count: 2">         </span><type-mapping>MS SQLSERVER2000</type-mapping></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; tab-stops: list 18.0pt; mso-list: l0 level1 lfo1"> <span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'"> <span style="mso-list: Ignore">4.<span style="FONT: 7pt 'Times New Roman'">       </span></span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">配置</span> <span lang="EN-US">JMS:</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">˜q™é‡Œ</span> <span lang="EN-US">JBoss3.x </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">å’?/span> <span lang="EN-US"> 4.x</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">有些区别</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">åœ?/span> <span lang="EN-US">3.x</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中拷è´?/span> <span lang="EN-US">mssql-jdbc2.xml</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">åˆ?/span> <span lang="EN-US">defult/deploy/jms/</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">æ–‡äšg夹下</span> <span lang="EN-US">,</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">òq¶åˆ é™¤é»˜è®¤çš„</span> <span lang="EN-US">hsqldb-jdbc2.xml</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">åœ?/span> <span lang="EN-US">4.x</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中拷è´?/span> <span lang="EN-US">mssql-jdbc2-service.xml </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">åˆ?/span> <span lang="EN-US">defult\deploy-hasingleton\jms </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">æ–‡äšg夹下òq¶åˆ é™¤é»˜è®¤çš„</span> <span lang="EN-US">hsqldb-jdbc2-service.xml.</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt"> <span lang="EN-US">mssql-jdbc2.xml</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">å’?/span> <span lang="EN-US">mssql-jdbc2-service.xml</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">均能åœ?/span> <span lang="EN-US">docs\examples\jms</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中找到模æ?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <span style="mso-tab-count: 1">       </span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如果没有˜q™ä¸ªè®„¡½®</span> <span lang="EN-US">,</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">ž®×ƒ¼šæŠ¥å…³äº?/span> <span lang="EN-US">JMS_MESSAGES</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的异å¸?/span> <span lang="EN-US">:</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span id="wmqeeuq" class="postbody2"> <b> <span lang="EN-US" style="FONT-SIZE: 6pt; COLOR: brown; FONT-FAMILY: Verdana">org.<span id="highlight_tag" style="EE6600: "></span></span> </b> </span> <span id="wmqeeuq" class="postbody2"> <b> <span lang="EN-US" style="FONT-SIZE: 6pt; BACKGROUND: yellow; COLOR: #ee6600; FONT-FAMILY: Verdana">jboss</span> </b> </span> <span id="wmqeeuq" class="postbody2"> <b> <span lang="EN-US" style="FONT-SIZE: 6pt; COLOR: brown; FONT-FAMILY: Verdana">.mq.SpyJMSException: Could not resolve uncommited transactions. Message recovery may not be accurate; - nested throwable: (java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]SELECT permission denied on object 'JMS_MESSAGES', database 'test'.)</span> </b> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <o:p> </o:p> </span> </p> <img src ="http://www.aygfsteel.com/liaojiyong/aggbug/55912.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liaojiyong/" target="_blank">liaojiyong</a> 2006-06-30 11:40 <a href="http://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55912.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>为Jboss4配置数据库(转)http://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55907.htmlliaojiyongliaojiyongFri, 30 Jun 2006 03:37:00 GMThttp://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55907.htmlhttp://www.aygfsteel.com/liaojiyong/comments/55907.htmlhttp://www.aygfsteel.com/liaojiyong/archive/2006/06/30/55907.html#Feedback0http://www.aygfsteel.com/liaojiyong/comments/commentRss/55907.htmlhttp://www.aygfsteel.com/liaojiyong/services/trackbacks/55907.html        在ä‹Éç”?/span> jboss4 配置数据库连接的基本操作步骤åQˆä¸åŒ…括 XA 数据˜qžæŽ¥åQ‰ï¼š

1åQ?span style="FONT: 7pt 'Times New Roman'">  Copy 数据库的 JDBC 驱动至部¾|²æ–‡ä»¶å¤¹ä¸­çš„ lib 目录ä¸?/span>

2åQ?span style="FONT: 7pt 'Times New Roman'">  建立所需要连接的物理数据库表ã€?/span>

3åQ?span style="FONT: 7pt 'Times New Roman'">  建立数据库配¾|®æ–‡ä»Óž¼Œé…ç½®æ•°æ®åº“参敎ͼŒæ–‡äšgä»?/span> -ds.xml 为结ž®¾ï¼Œå¦?/span> mysql-ds.xml 。配¾|®æ–‡ä»¶å…·ä½“方法参ç…?/span> docs/example/jca 下,有各¿Uæ•°æ®åº“的例½E‹ã€‚在˜q™é‡Œåªä»‹¾lå‡ ä¸ªå¸¸ç”¨çš„配置。修改好的配¾|®æ–‡ä»¶æ”¾åœ?/span> web 应用部çÖv目录下,å¦?/span> web 应用ä¸?/span> all åQŒåˆ™æ”‘Öœ¨ $JBOSS4_HOME\server\all\deploy 下ã€?/span>

4åQ?span style="FONT: 7pt 'Times New Roman'">  修变 jboss çš?/span> CMP 配置文äšg jbosscmp-jdbc.xml 参数。一般修æ”?/span>

<datasource>java:/DefaultDS</datasource>

<datasource-mapping>mysql</datasource-mapping>

˜q™ä¸¤ä¸ªå‚敎ͼŒž®?/span> DefaultDS æ¢äØ“ä½ åœ¨ -ds.xml æ–‡äšg中的 <jndi-name> çš„å€û|¼Œž®?/span>

datasource-mapping æ”¹äØ“ -ds.xml æ–‡äšgä¸?/span> <type-mapping> 的倹{€?/span>

5åQ?span style="FONT: 7pt 'Times New Roman'">  启动 jboss åQŒæµ‹è¯•数据库˜qžæŽ¥

 

一åQ?/span> MYSQL

åœ?/span> jboss4 文档中默认的例程ž®±æ˜¯ myssql 的例子。(见第八章 54 ™åµï¼‰

1åQ?span style="FONT: 7pt 'Times New Roman'">  Mysql çš?/span> JDBC 驱动 connector/j 可以åœ?/span> http://www.mysql.com 下蝲得到 .

现在最新的 mysql �/span> 4.1, connector/j �/span> 3.2 。分别对应以下地址

http://dev.mysql.com/downloads/mysql/4.1.html

http://dev.mysql.com/downloads/connector/j/3.2.html

下蝲的时候感觉韩国的几个站点速度是最快的

åQ?/span> btw åQšå°æ¹„¡«™ç‚¹å±…然有青天白日旗,一定要è·?/span> jboss 抗议一下)

 

2åQ?span style="FONT: 7pt 'Times New Roman'">  åœ?/span> mysql 客户端中建立一个数据库叫做 test

mysql> CREATE DATABASE test;

 

3åQ?span style="FONT: 7pt 'Times New Roman'">  建立一ä¸?/span> Mysql-ds.xml æ–‡äšg

<datasources>

<local-tx-datasource>

<jndi-name>DefaultDS</jndi-name>

<connection-url>jdbc:mysql://localhost:3306/test</connection-url>

<driver-class>com.mysql.jdbc.Driver</driver-class>

<user-name>username</user-name>

<password>password</password>

<metadata>

         <type-mapping>mysql</type-mapping>

 </metadata>

</local-tx-datasource>

</datasources>

也可以将 docs/example/jca 下的 Mysql-ds.xml 拯‚´˜q‡æ¥ä¿®æ”¹ã€‚保存在 deploy ä¸‹ã€‚åÆˆåˆ é™¤ jboss 默认çš?/span> hsqldb-ds.xml ã€?/span>

4åQ?span style="FONT: 7pt 'Times New Roman'">  打开 jbosscmp-jdbc.xml åQŒå°†

<datasource>java:/DefaultDS</datasource>

       <!-- optional since 4.0 <datasource-mapping>Hypersonic SQL</datasource-mapping> -->

修改�/span>

<datasource>java:/DefaultDS</datasource>

     <datasource-mapping> mysql </datasource-mapping>

5åQ?span style="FONT: 7pt 'Times New Roman'">  启动 jboss 。如果自å·Þqš„ web 应用ä¸?/span> all åQŒåˆ™ä½¿ç”¨ run –c all

二. ORACLE

Oracle 的数据库驱动可以åœ?/span> Oracle 的安装目录下扑ֈ°åQ?/span> oracle\ora92\jdbc\lib ä¸?/span> ojdbc14.jar æˆ?/span> ojdbc14_g.jar ã€?/span>

建立 oracle-ds.xml åQŒæ³¨æ„?/span> Oracle çš?/span> URL ä¸?/span>

<connection-url>jdbc:oracle:thin:@youroraclehost:1521:yoursid</connection-url>

 

三. SQLSERVER2000

     SQLSERVER2000 的数据库驱动可以åœ?/span> microsoft ¾|‘站扑ֈ°åQŒåŒ…括三个文ä»?/span>

msbase.jar,mssqlserver.jar å’?/span> msutil.jar åQŒå¾ç«?/span> mssql-ds.xml åQ?/span> SQLSERVER2000 çš?/span> URL ä¸?/span>

<connection-url>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=MyDatabase</connection-url>

     <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>

 

如果使用 Weblogic çš?/span> SQLSERVER2000 驱动åQŒåˆ™æ˜¯åœ¨ bea\weblogic81\server\lib 下的

mssqlserver4v65.jar åQ?/span> class ä¸?/span> weblogic.jdbc.mssqlserver4.Driver



]]>
jboss配置 mysql数据库连接池 http://www.aygfsteel.com/liaojiyong/archive/2006/06/15/52892.htmlliaojiyongliaojiyongThu, 15 Jun 2006 00:47:00 GMThttp://www.aygfsteel.com/liaojiyong/archive/2006/06/15/52892.htmlhttp://www.aygfsteel.com/liaojiyong/comments/52892.htmlhttp://www.aygfsteel.com/liaojiyong/archive/2006/06/15/52892.html#Feedback0http://www.aygfsteel.com/liaojiyong/comments/commentRss/52892.htmlhttp://www.aygfsteel.com/liaojiyong/services/trackbacks/52892.html我的jboss�.2.7

一、要在Jboss中ä‹É用MySQL的话首先要把MySQLçš„JDBC驱动攑ֈ°CLASSPATH中ã€?br />二、再æŠ?docs/examples/jca/mysql-ds.xml复制åˆ?server/default/deploy目录

下。修改mysql-ds.xmlæ–‡äšgåQŒå…¶ä¸­æ˜¯æ•°æ®åº“主机名是数据库名ã€?br />我的mysql-ds.xml如下

<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql:
//127.0.0.1:3306/jspdev</connection-url>
<driver-class>org.gjt.mm.mysql.Driver</driver-class>
<user-name>root</user-name>
<password> </password>
</local-tx-datasource>
</datasources>

三、然后需要设¾|®standardjaws.xml åQˆæ³¨åQš\server\default\conf目录下)文äšg

的和元素åQ?

<jaws>
<datasource>java:/MySqlDS</datasource>
<type-mapping>mySql</type-mapping>
.....
</jaws>


四、同样也需要把jbosscmp-jdbc.xmlæ–‡äšg æ³? \server\default\conf目录下)

çš?å’?元素讄¡½®ä¸ÞZ¸‹é¢è¿™æ øP¼š

<jbosscmp-jdbc>
<defaults>
<datasource>java:/MySqlDS</datasource>
<datasource-mapping>mySql</datasource-mapping>
</defaults>
</jbosscmp-jdbc>

五、最后再修改login-config.xmlåQˆ\server\default\conf目录下)文äšg来ä‹Éç”?br />
MySQLåQ?br />
<application-policy name =
"MySqlDbRealm"]
<authentication>
<login-module code =

"org.jboss.resource.security.ConfiguredIdentityLoginModule" flag =

"required"]
<module-option name =
"principal"]jspdev</module-option>
<module-option name =
"userName"]root</module-option>
<module-option name =
"password"] </module-option>
<module-option name=
"managedConnectionFactoryName"]

jboss.jca:service=LocalTxCM,name=MySqlDS
</module-option>
</login-module>
</authentication>
</application-policy>

六、测试代�br />//DatabaseConn.java

/*
* 创徏日期 2005-3-30
*
* TODO 要更æ”ÒŽ­¤ç”Ÿæˆçš„æ–‡ä»¶çš„æ¨¡æ¿åQŒè¯·è½¬è‡³
* ½H—口 åQ?首选项 åQ?Java åQ?代码样式 åQ?代码模板
*/

package DataConn;

/**
* @author sun
*
* TODO 要更æ”ÒŽ­¤ç”Ÿæˆçš„类型注释的模板åQŒè¯·è½¬è‡³
* ½H—口 åQ?首选项 åQ?Java åQ?代码样式 åQ?代码模板
*/

import java.sql.*;
import javax.naming.*;
import javax.sql.DataSource;
//一个用于查找数据源的工å…ïL±»ã€?/i>
publicclass DatabaseConn {
publicstaticsynchronizedConnection getConnection() throws

Exception
{
try
{
Context ctx = new InitialContext();
//得到初始化上

下文
Object obj = ctx.lookup(
"java:/MySqlDS");//查找˜qžæŽ¥æ±?/i>
DataSource ds = (DataSource) obj;
//转换成DataSource
return ds.getConnection();
}
catch(SQLException e)
{
throw e;
}
catch(NamingException e)
{
throw e;
}

}

}

-------------------------------
//showdata.jsp

<%@ page contentType=
"text/html; charset=gb2312" %>
<%@ page import=
"java.sql.*"%>
<%@ page import=
"DataConn.*"%>
<%
Connection conn = DatabaseConn.getConnection();
Statement stmt=conn.createStatement();
ResultSet rs=stmt.executeQuery(
"select * from employee");
while(rs.next())
{
out.println(rs.getInt(
"id"));
out.println(rs.getString(
"name"));
out.println(rs.getString(
"salary"));
out.println(rs.getString(
"department"));
out.println(rs.getInt(
"age")+"<br>");
}
conn.close();
stmt.close();
rs.close();

%>
Jason   2005-03-30 14:24:21 评论:2   阅读:1495   引用:0
@2006-02-09 17:23:25  RE
对于从非性能上考虑åQŒæœ‰æ²¡æœ‰éƒ½ä¸€æ øP¼
jboss的连接数是怎么讄¡š„åQŸemail: raofei@gmail.com @2006-02-08 11:04:46  虫子
怎么没有看到最大连接数量呢åQŒè¿™ä¸ªåœ¨tomcat里面是有的啊?谢谢åQ?


]]>Tomcat全攻ç•?/title><link>http://www.aygfsteel.com/liaojiyong/archive/2006/05/25/47965.html</link><dc:creator>liaojiyong</dc:creator><author>liaojiyong</author><pubDate>Thu, 25 May 2006 01:59:00 GMT</pubDate><guid>http://www.aygfsteel.com/liaojiyong/archive/2006/05/25/47965.html</guid><wfw:comment>http://www.aygfsteel.com/liaojiyong/comments/47965.html</wfw:comment><comments>http://www.aygfsteel.com/liaojiyong/archive/2006/05/25/47965.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liaojiyong/comments/commentRss/47965.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liaojiyong/services/trackbacks/47965.html</trackback:ping><description><![CDATA[ <b>Tag</b>åQ?<a target="_blank">Tomcat</a>                                           <p></p><p>Tomcat全攻ç•?br />一åQšç®€ä»?br />tomcat是jakarta™å¹ç›®ä¸­çš„一个重要的子项目,其被JavaWorldæ‚å¿—çš„ç¼–è¾‘é€‰äØ“2001òq´åº¦æœ€å…·åˆ›æ–°çš„java产品(Most Innovative Java Product)åQŒåŒæ—¶å®ƒåˆæ˜¯sun公司官方推荐的servletå’Œjsp容器(具体可以è§?a >http://java.sun.com/products/jsp/tomcat/</a>)åQŒå› æ­¤å…¶­‘Šæ¥­‘Šå¤šçš„受到èÊY件公司和开发äh员的喜爱。servletå’Œjsp的最新规范都可以在tomcat的新版本中得到实现ã€?</p><p>二:安装及配¾|?br />tomcatæœ€æ–°ç‰ˆæœ¬äØ“4.0.1åQŒè¿™ä¸ªç‰ˆæœ¬ç”¨äº†ä¸€ä¸ªæ–°çš„servlet容器CatalinaåQŒå®Œæ•´çš„实现了servlet2.3å’Œjsp1.2规范。注意安装之前你的系¾lŸå¿…™åÕd®‰è£…了jdk1.2以上版本ã€?</p><p>(一)åQšå®‰è£?br />1åQšwindowsòq›_°<br />从tomcat¾|‘站下蝲jakarta-tomcat-4.0.1.exeåQŒæŒ‰ç…§ä¸€èˆ¬çš„windows½E‹åºå®‰è£…步骤卛_¯å®‰è£…好tomcat,安装时它会自动寻找你的jdkå’Œjre的位¾|®ã€?</p><p>2åQšlinuxòq›_°<br />下蝲jakarta-tomcat-4.0.1.tar.gzåQŒå°†å…¶è§£åŽ‹åˆ°ä¸€ä¸ªç›®å½•ã€?</p><p>(äº?åQšé…¾|?br />˜qè¡Œtomcat需要设¾|®JAVA_HOME变量<br />set JAVA_HOME=c:/jdk (win98åQŒåœ¨msdos方式下ä‹É用,或者放入autoexec.batä¸?<br />export JAVA_HOME=/usr/local/jdk (linux下ä‹É用,攑ֈ°/etc/bashrc或è€?etc/profileä¸? </p><p>(ä¸?åQšè¿è¡?br />讄¡½®å®Œæ¯•后就可以˜qè¡Œtomcat服务器了åQŒè¿›å…¥tomcatçš„bin目录åQŒwin98下用startup启动tomcatåQŒlinux下用startup.shåQŒç›¸åº”的关闭tomcatçš„å‘½ä»¤äØ“shutdownå’Œshutdown.shã€?br />启动后可以在‹¹è§ˆå™¨ä¸­è¾“å…¥<a href="http://localhost:8080/">http://localhost:8080/</a>‹¹‹è¯•åQŒç”±äºŽtomcat本èínå…ähœ‰web服务器的功能åQŒå› æ­¤æˆ‘们不必安装apacheåQŒå½“然其也可以与apache集成åˆîC¸€èµøP¼Œä¸‹é¢ä¼šä»‹¾lã€?br />下面你可以测试其自带的jspå’Œservlet½CÞZ¾‹ã€?</p><p>三:应用 </p><p>(一):目录¾l“æž„<br />tomcat的目录结构如下:<br />目录å? ½Ž€ä»?br />bin : 存放启动和关闭tomcat脚本<br />conf : 包含不同的配¾|®æ–‡ä»?server.xml(Tomcat的主要配¾|®æ–‡ä»?å’Œweb.xml<br />work : 存放jsp¾~–译后äñ”生的classæ–‡äšg<br />webapp: 存放应用½E‹åº½CÞZ¾‹åQŒä»¥åŽä½ è¦éƒ¨¾|²çš„应用½E‹åºä¹Ÿè¦æ”‘Öˆ°æ­¤ç›®å½?br />logs : 存放日志文äšg<br />lib/japser/common : ˜q™ä¸‰ä¸ªç›®å½•主要存放tomcat所需的jaræ–‡äšg </p><p><br />(äº?åQšserver.xml配置½Ž€ä»?br />下面我们ž®†è®²˜q°è¿™ä¸ªæ–‡ä»¶ä¸­çš„基本配¾|®ä¿¡æ¯ï¼Œæ›´å…·ä½“的配置信息见tomcat的文æ¡?br />server:<br />port 指定一个端口,˜q™ä¸ªç«¯å£è´Ÿè´£ç›‘听关闭tomcat的请æ±?br />shutdown 指定向端口发送的命ä×o字符ä¸?br />service:<br />name 指定service的名å­?br />Connector (表示客户端和service之间的连æŽ?:<br />port æŒ‡å®šæœåŠ¡å™¨ç«¯è¦åˆ›å»ºçš„ç«¯å£åøP¼Œòq¶åœ¨˜q™ä¸ªæ–­å£ç›‘听来自客户端的è¯äh±‚<br />minProcessors 服务器启动时创徏的处理请求的¾U¿ç¨‹æ•?br />maxProcessors 最大可以创建的处理è¯äh±‚的线½E‹æ•°<br />enableLookups 如果为trueåQŒåˆ™å¯ä»¥é€šè¿‡è°ƒç”¨request.getRemoteHost()˜q›è¡ŒDNS查询来得到远½E‹å®¢æˆïL«¯çš„实际主机名åQŒè‹¥ä¸ºfalse则不˜q›è¡ŒDNS查询åQŒè€Œæ˜¯˜q”回其ip地址<br />redirectPort 指定服务器正在处理httpè¯äh±‚æ—¶æ”¶åˆîCº†ä¸€ä¸ªSSL传输è¯äh±‚后重定向的端口号<br />acceptCount 指定当所有可以ä‹É用的处理è¯äh±‚的线½E‹æ•°éƒ½è¢«ä½¿ç”¨æ—Óž¼Œå¯ä»¥æ”‘Öˆ°å¤„理队列中的è¯äh±‚敎ͼŒ­‘…过˜q™ä¸ªæ•°çš„è¯äh±‚ž®†ä¸äºˆå¤„ç?br />connectionTimeout 指定­‘…时的时间数(以毫¿U’äØ“å•ä½)<br />Engine (表示指定service中的è¯äh±‚处理机,接收和处理来自Connector的请æ±?:<br />defaultHost 指定¾~ºçœçš„处理请求的ä¸ÀLœºåï¼Œå®ƒè‡³ž®‘与其中的一个host元素的name属性值是一æ ïLš„<br />Context (表示一个web应用½E‹åºåQŒé€šå¸¸ä¸ºWARæ–‡äšgåQŒå…³äºŽWAR的具体信息见servlet规范):<br />docBase 应用½E‹åºçš„èµ\径或者是WARæ–‡äšg存放的èµ\å¾?br />path 表示此web应用½E‹åºçš„url的前¾~€åQŒè¿™æ ¯‚¯·æ±‚çš„urlä¸?a href="http://localhost:8080/path/">http://localhost:8080/path/</a>****<br />reloadable ˜q™ä¸ªå±žæ€§éžå¸”R‡è¦ï¼Œå¦‚果为trueåQŒåˆ™tomcat会自动检‹¹‹åº”用程序的/WEB-INF/lib å’?WEB-INF/classes目录的变化,自动装蝲新的应用½E‹åºåQŒæˆ‘们可以在不重起tomcat的情况下改变应用½E‹åº<br />host (表示一个虚拟主æœ?:<br />name 指定ä¸ÀLœºå?br />appBase 应用½E‹åºåŸºæœ¬ç›®å½•åQŒå³å­˜æ”¾åº”用½E‹åºçš„ç›®å½?br />unpackWARs 如果为trueåQŒåˆ™tomcat会自动将WARæ–‡äšg解压åQŒå¦åˆ™ä¸è§£åŽ‹åQŒç›´æŽ¥ä»ŽWARæ–‡äšg中运行应用程åº?br />Logger (表示日志åQŒè°ƒè¯•和错误信息):<br />className 指定logger使用的类名,此类必须实现org.apache.catalina.Logger 接口<br />prefix 指定logæ–‡äšg的前¾~€<br />suffix 指定logæ–‡äšg的后¾~€<br />timestamp 如果为trueåQŒåˆ™logæ–‡äšg名中要加入时é—ß_¼Œå¦‚下ä¾?localhost_log.2001-10-04.txt<br />Realm (表示存放用户名,密码及role的数据库):<br />className 指定Realm使用的类名,此类必须实现org.apache.catalina.Realm接口<br />Valve (功能与Logger差不多,其prefixå’Œsuffix属性解释和Logger 中的一æ ?:<br />className 指定Valve使用的类名,如用org.apache.catalina.valves.AccessLogValve¾cÕd¯ä»¥è®°å½•应用程序的讉K—®ä¿¡æ¯<br />directory 指定logæ–‡äšg存放的位¾|?br />pattern 有两个å€û|¼Œcommon方式记录˜qœç¨‹ä¸ÀLœºåæˆ–ip地址åQŒç”¨æˆ·ååQŒæ—¥æœŸï¼Œ½W¬ä¸€è¡Œè¯·æ±‚的字符ä¸ÔŒ¼ŒHTTP响应代码åQŒå‘送的字节数。combined方式比common方式记录的值更å¤?</p><p>注意åQ?br />1åQšç»˜q‡æˆ‘‹¹‹è¯•åQŒæˆ‘讄¡½®Context çš„path="",reloadable=trueåQŒç„¶åŽæ”¾ä¸€ä¸ªWARæ–‡äšg到webapps目录åQŒç»“æžœtomcat不能‹‚€‹¹‹å‡ºæ­¤æ–‡ä»?重è“vtomcat可以)åQŒè€ŒæŠŠæ­¤æ–‡ä»¶è§£åŽ‹ï¼Œåˆ™tomcat会自动检‹¹‹å‡º˜q™ä¸ªæ–°çš„应用½E‹åºã€‚如果不能自动检‹¹‹WARæ–‡äšgåQŒæˆ‘们可以利用下面管理中讲的æ–ÒŽ³•来部¾|²åº”用程序ã€?</p><p>2åQšé»˜è®¤çš„server.xml中,Realm元素只设¾|®äº†ä¸€ä¸ªclassName属性,但此文äšg中也包含几个通过JDBC˜qžæŽ¥åˆ°æ•°æ®åº“˜q›è¡ŒéªŒè¯çš„示ä¾?被注释掉äº?åQŒé€šè¿‡Realm元素我们可以实现容器安全½Ž¡ç†(Container Managed Security)ã€?</p><p>3åQšè¿˜æœ‰ä¸€äº›å…ƒç´ æˆ‘们没有介¾lï¼Œå¦‚ParameteråQŒloaderåQŒä½ å¯ä»¥é€šè¿‡tomcat的文档获取这些元素的信息ã€?</p><p>(ä¸?åQšç®¡ç?</p><p>1åQšé…¾|?br />在进行具体的½Ž¡ç†ä¹‹å‰åQŒæˆ‘们先¾l™tomcatæ·ÕdŠ ä¸€ä¸ªç”¨æˆøP¼Œä½¿è¿™ä¸ªç”¨æˆähœ‰æƒé™æ¥è¿›è¡Œç®¡ç†ã€?br />打开conf目录下的tomcat-users.xmlæ–‡äšgåQŒåœ¨ç›¸åº”的位¾|®æ·»åŠ ä¸‹é¢ä¸€è¡Œï¼š </p><p>  </p><p>注意åQšè¿™ä¸€è¡Œçš„æœ€åŽéƒ¨åˆ†ä¸€å®šæ˜¯/>,tomcat的文档掉äº?½W¦å·åQŒå¦‚果没æœ?½W¦å·çš„话åQŒtomcat重è“v时将无法讉K—®åº”用½E‹åºã€‚通过logs/catalina.outæ–‡äšg你可以看到这个错误的详细信息ã€?</p><p>然后重è“vtomcatåQŒåœ¨‹¹è§ˆå™¨ä¸­è¾“å…¥<a href="http://localhost:8080/manager/">http://localhost:8080/manager/</a>åQŒä¼šå¼¹å‡ºå¯¹è¯æ¡†ï¼Œè¾“入上面的用户名和密码即可ã€?</p><p>2åQšåº”用程序列è¡?br />在浏览器中输å…?a href="http://localhost:8080/manager/list">http://localhost:8080/manager/list</a>åQŒæµè§ˆå™¨ž®†ä¼šæ˜„¡¤ºå¦‚下的信息: </p><p>OK - Listed applications for virtual host localhost<br />/ex:running:1<br />/examples:running:1<br />/webdav:running:0<br />/tomcat-docs:running:0<br />/manager:running:0<br />/:running:0 </p><p>ä¸Šé¢çš„ä¿¡æ¯åˆ†åˆ«äØ“åº”ç”¨½E‹åºçš„èµ\径,当前状æ€?running 或者stopped)åQŒä¸Ž˜q™ä¸ª½E‹åºç›¸è¿žçš„sessionæ•°ã€?</p><p>3åQšé‡æ–°è£…载应用程åº?br />在浏览器中输å…?<a href="http://localhost:8080/manager/reload?path=/examples">http://localhost:8080/manager/reload?path=/examples</a>åQŒæµè§ˆå™¨æ˜„¡¤ºå¦‚下åQ?</p><p>OK - Reloaded application at context path /examples </p><p>表示example应用½E‹åºè£…蝲成功åQŒå¦‚果我们将server.xmlçš„Context元素的reloadable属性设为true(见上面表æ ?åQŒåˆ™æ²¡å¿…要利用这¿Uæ–¹å¼é‡æ–°è£…è½½åº”ç”¨ç¨‹åºï¼Œå› äØ“tomcat会自动装载ã€?</p><p>4åQšæ˜¾½Cºsession信息<br />在浏览器中输å…?a href="http://localhost:8080/manager/sessions?path=/examples">http://localhost:8080/manager/sessions?path=/examples</a>åQŒæµè§ˆå™¨æ˜„¡¤ºå¦‚下åQ?</p><p>OK - Session information for application at context path /examples Default maximum session inactive interval 30 minutes </p><p>5åQšå¯åŠ¨å’Œå…³é—­åº”ç”¨½E‹åº<br />在浏览器中输å…?a href="http://localhost:8080/manager/start?path=/examples">http://localhost:8080/manager/start?path=/examples</a>å’?a href="http://localhost:8080/manager/stop?path=/examples">http://localhost:8080/manager/stop?path=/examples</a>分别启动和关闭examples应用½E‹åºã€?</p><p>6åQšéƒ¨¾|²åŠæ’¤é”€éƒ¨çÖv<br />WAR有两¿Uç»„¾l‡æ–¹å¼ï¼Œä¸€¿Uæ˜¯æŒ‰ä¸€å®šçš„目录¾l“æž„¾l„织文äšgåQŒä¸€¿Uæ˜¯ä¸€ä¸ªåŽ¾~€ä¸ºWAR的压¾~©åŒ…åQŒå› æ­¤å®ƒçš„部¾|²æ–¹å¼ä¹Ÿæœ‰ä¸¤¿Uï¼š<br />(1)åQšåœ¨‹¹è§ˆå™¨ä¸­è¾“å…¥åQ?a href="http://localhost:8080/manager/install?path=/examples&war=file:/c:examples">http://localhost:8080/manager/install?path=/examples&war=file:/c:examples</a><br />ž®×ƒ¼šž®†æŒ‰ç›®å½•¾l“æž„¾l„织的WAR部çÖv </p><p>(2)åQšå¦‚果输å…?http://localhost:8080/manager/install?path=/examples&war=jar:file:/c:examples.war!/<br />ž®×ƒ¼šž®†æŒ‰åŽ‹ç¾ƒåŒ…ç»„¾l‡çš„WAR部çÖvåQŒæ³¨æ„æ­¤url后半部分一定要æœ?/受÷€?br />部çÖv后就可以ç”?<a href="http://localhost:8080/examples">http://localhost:8080/examples</a>讉K—®äº†ã€?</p><p>在浏览器中输入:<a href="http://localhost:8080/manager/remove?path=/examples">http://localhost:8080/manager/remove?path=/examples</a> ž®×ƒ¼šæ’¤é”€åˆšæ‰éƒ¨çÖv的应用程序ã€?</p><p>(å›?åQšä¸Žapache集成<br />虽然tomcat也可以作web服务å™?但其处理静态html的速度比不上apache,ä¸”å…¶ä½œäØ“web服务器的功能˜qœä¸å¦‚apache,因此我们æƒÏxŠŠapacheå’Œtomcat集成èµäh¥ã€?br />我们以linux¾pȝ»Ÿä¸ÞZ¾‹ä»‹ç».<br />从apache¾|‘站下蝲apache1.3.22源代码版本,然后使用如下命ä×o配置安装apacheåQ?</p><p>mkdir /usr/local/apache<br />tar zxvf apache.1.32.tar.gz<br />cd apache.1.32<br />./configure --prefix=/usr/local/apache --enable-module=so<br />make<br />make install </p><p>注意configure命ä×o指定目标安装目录åQŒåƈ且加入DSO(Dynamic Shared Object)支持åQŒæ³¨æ„ä¸€å®šä¸è¦å¿˜äº†è¿™ä¸€ä¸ªé€‰é¡¹ã€?</p><p>然后下蝲webapp模块åQŒå°†è§£åŽ‹åŽmod_webapp.soæ–‡äšg攑օ¥apacheçš„libexec目录åQŒç¼–辑apacheçš„conf目录下的httpd.confåQŒåœ¨˜q™ä¸ªæ–‡äšg的最后加入下面三行: </p><p>LoadModule webapp_module libexec/mod_webapp.so<br />WebAppConnection warpConnection warp localhost:8008<br />WebAppDeploy examples warpConnection /examples/ </p><p>½W¬ä¸€è¡Œæ˜¯åŠ å…¥webapp模块åQŒå¦‚果编译apache时不增加DSO支持åQŒåˆ™æ— æ³•使用LoadModule指ä×oåQŒç¬¬äºŒè¡ŒæŒ‡å®štomcat与apache的连接,½W¬ä¸‰è¡ŒæŒ‡å®šéƒ¨¾|²é‚£ä¸ªåº”用,˜q™ä¸¤ä¸ªæŒ‡ä»¤ä‹É用格式如下: </p><p>WebAppConnection [connection name] [provider] [host:port]<br />WebAppDeploy [application name] [connection name] [url path] </p><p>其中connection name指定˜qžæŽ¥åï¼Œprovider只能是warpåQŒport端口与你的tomcat的配¾|®æ–‡ä»¶server.xml最后几行指定的要保持一致。文件如下: </p><p><br />port="8008" minProcessors="5" maxProcessors="75"<br />enableLookups="true"<br />acceptCount="10" debug="0"/><br />****** </p><p><br />application name与你在tomcat中部¾|²çš„应用名一è‡ß_¼Œurl path指定讉K—®˜q™ä¸ªåº”用的url。例如上面的例子可以通过<a href="http://localhost/examples/">http://localhost/examples/</a>来访问tomcat中的examples应用ã€?</p><p>(äº?åQšä¸­æ–‡é—®é¢?br />一般jspçš„äØ•ç é—®é¢˜å¯ä»¥é€šè¿‡åœ¨jsp中加入来解决åQŒè‡³äºŽservletçš„äØ•ç åœ¨å¯ä»¥ä½¿ç”¨servlet2.3中提供的HttpServeletRequest.setCharacterEncoding函数。更详细的中文问题请见JSP/Servlet 中的汉字¾~–码问题ã€?</p><p>四:¾lÆD¿°<br />tomcatä½œäØ“ä¸€ä¸ªservlet(jsp也被¾~–译为servlet执行)容器åQŒå…¶åº”用前景是非常好的,如果与jboss¾l“合èµäh¥åQŒåˆ™å¯ä»¥å®žçްsunçš„j2ee规范(用jboss作ejb服务å™?。jboss的官方网站也提供集成了tomcat3.2*çš„jboss以供下蝲。另外一个开源的应用服务å™?enhydra) 也是åŸÞZºŽtomcat的,其提供了更友好的½Ž¡ç†ç•Œé¢åQŒéƒ¨¾|²åº”用程序也更简单,功能也更强大ã€?/p><img src ="http://www.aygfsteel.com/liaojiyong/aggbug/47965.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liaojiyong/" target="_blank">liaojiyong</a> 2006-05-25 09:59 <a href="http://www.aygfsteel.com/liaojiyong/archive/2006/05/25/47965.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Tomcat中文手册http://www.aygfsteel.com/liaojiyong/archive/2006/05/25/47967.htmlliaojiyongliaojiyongThu, 25 May 2006 01:59:00 GMThttp://www.aygfsteel.com/liaojiyong/archive/2006/05/25/47967.htmlhttp://www.aygfsteel.com/liaojiyong/comments/47967.htmlhttp://www.aygfsteel.com/liaojiyong/archive/2006/05/25/47967.html#Feedback0http://www.aygfsteel.com/liaojiyong/comments/commentRss/47967.htmlhttp://www.aygfsteel.com/liaojiyong/services/trackbacks/47967.htmlTagåQ?Tomcat                                          

Tomcat中文手册


本文档提供关于Tomcat的基¼‹€ä¿¡æ¯.主要内容如下:
Tomcat二进制版本安�br />与Tomcat相关的脚本的主要内容
与server.xml相关的主要内å®?Tomcat的主要配¾|®æ–‡ä»?br />如何讄¡½®Tomcat与宿主web服务器一起工作的说明
如何应用Tomcat配置一个现实中的web站点
希望此文档èƒö以ä‹É新用户可以开始ä‹É用Tomcat.如找不到某方面的内容è¯?按以下顺åº?
查找Tomcat faq
查找Tomcat包清å?br />向Tomcat用户邮äšg列表发出问题
如此疑问的答案不存在,我们鼓励把对疑问的解½{”放入Tomcat faq或此文档.如对此文档有意见或徏è®?请发送到Tomcat的邮件列è¡?

Getting Started
Tomcat是一个带有jsp环境的servlet容器.servlet容器是一个根据用æˆïLš„è¡ŒäØ“å¯ä»¥½Ž¡ç†å’Œæ¿€‹z»servlet的运行时的shell.
¾_—略地可以将servletå®¹å™¨åˆ†äØ“å¦‚ä¸‹å‡ ç±»:

独立的servlet容器
内置有web服务器的一部分.指当使用åŸÞZºŽJavaçš„web服务器的情åÅž,例如servlet容器是JavaWebServer的一个部åˆ? 独立的servlet容器是Tomcat的默认模å¼?
大多数的webæœåŠ¡å™¨åÆˆéžåŸºäºŽJava,å› æ­¤,我们可以得出如下两种容器的模å¼?


˜q›ç¨‹å†…çš„servlet容器
servletå®¹å™¨ä½œäØ“web服务器的插äšgå’ŒJava容器的实çŽ?Web服务器插件在内部地址½Iºé—´æ‰“开一个JVM(java virtual machine)使Java容器得以在内部运è¡?如有某个需要调用servlet的请æ±?,插äšgž®†å–得对此请求的控制òq¶å°†ä»–ä¼ é€?使用JNI)¾l™Java容器.˜q›ç¨‹å†…容器对于多¾U¿ç¨‹,单进½E‹çš„æœåŠ¡å™¨éžå¸¸åˆé€‚åÆˆä¸”æä¾›å¾ˆå¥½çš„˜qè¡Œé€Ÿåº¦,但äŽ×¾~©æ€§æœ‰æ‰€ä¸èƒö.


˜q›ç¨‹å¤–çš„servlet容器
servlet容器˜qè¡ŒäºŽweb服务器之外的地址½Iºé—´ä¸”作为web服务器的插äšgå’ŒJava容器的实现的¾l“合.web服务器插件和Java容器 JVM使用IPC机制(通常是TCP/IP)˜q›è¡Œé€šè®¯.当一个调用servlet的请求到达时,插äšgž®†å–得对此请求的控制òq¶å°†å…¶ä¼ é€?使用IPC½{?¾l™Java容器,˜q›ç¨‹å¤–容器的反应旉™—´æˆ–è¿›½E‹å¤–容器引擎不如˜q›ç¨‹å†…容å™?但进½E‹å¤–容器引擎在许多其他可比的范围内更å¥?伸羃æ€?½E›_®šæ€§ç­‰).
Tomcatæ—¢å¯ä½œäØ“ç‹¬ç«‹çš„å®¹å™?主要是用于开发与调试)åˆå¯ä½œäØ“å¯¹çŽ°æœ‰æœåŠ¡å™¨çš„é™„åŠ?当前支持Apache,IISå’ŒNetscape服务å™?.即ä“Q何时候配¾|®Tomcat你都必须军_®šå¦‚何应用ä»?如选择½W¬äºŒæˆ–第三种模式,你还需要安装一个web服务器接å?
Tomcat与Jserv有何区别?Tomcat是Jserv�
˜q™æ˜¯ä¸ªå¸¸è§çš„误解.Jserv是Servlet API2.0兼容òq¶ä¸ŽApache一起ä‹É用的容器.Tomcat是一个完全重写的òq¶ä¸ŽServlet API2.2å’ŒJSP1.1兼容的容å™?
Tomcatä½¿ç”¨äº†ä¸€äº›äØ“Jserv而写的代ç ?特别是Jservçš„Apache接口,但这是唯一的相同之å¤?
怎样安装Tomcat的二˜q›åˆ¶ç‰ˆæœ¬?
非常½Ž€å?只需:
下蝲 zip/tar.gz ä»ÖM½•压羃文äšg,ä»?a >http://jakarta.apche.org/download/binindex.htmlå¤?
解压¾~©æ­¤æ–‡äšg到某目录(å¦?foo).ž®†ä¼šç”Ÿæˆä¸€å­ç›®å½?åäØ“â€tomcatâ€?
转换到”tomcat”目录设¾|®ä¸€æ–°çš„环境变量(TOMCAT_HOME)指向你安装的tomcat的目å½?br />WIN32òq›_°,键入:
“set TOMCAT_HOME=foo\tomcatâ€?br />Unixòq›_°:
如是bash/sh环境, 键入:”TOMCAT_HOME=foo/tomcat;export TOMCAT_HOMEâ€?br />如是tcsh环境, 键入:”setenv TOMCAT_HOME foo/tomcatâ€?br />讄¡½®çŽ¯å¢ƒå˜é‡JAVA_HOME指向你JDK的目å½?然后æ·ÕdŠ JAVA解释器到你的PATH环境变量.
好了!现在可以˜qè¡ŒTOMCATòq¶ä½œä¸ÞZ¸€ä¸ªç‹¬ç«‹çš„Servlet容器(模式一)
启动与关闭Tomcat
使用”bin”目录中的脚本启动与关闭Tomcat.
启动:
uinx:bin/startup.sh
win32:bin\startup
关闭:
unix:bin/shutdown.sh
win32:bin\shutdown
Tomcat目录¾l“æž„
假设你已ž®†Tomcat解压,你已得到下列目录¾l“æž„:
目录�-描述
bin
包含启动/关闭脚本
conf
包含不同的配¾|®æ–‡ä»?
包括 server.xml(Tomcat的主要配¾|®æ–‡ä»?å’ŒäØ“ä¸åŒçš„Tomcat配置的web应用讄¡½®¾~ºçœå€¼çš„æ–‡äšgweb.xml
doc
包含各种Tomcat文档
lib
包含Tomcat使用的jaræ–‡äšg.unixòq›_°æ­¤ç›®å½•下的ä“Q何文仉™ƒ½è¢«åŠ åˆ°Tomcatçš„classpathä¸?
logs
Tomcat摆放日志文äšg的地æ–?
src
ServletAPI源文ä»?先别高兴,˜q™äº›åªæœ‰äº›å¿…™åÕdœ¨Servlet容器内实现的½IºæŽ¥å£å’ŒæŠ½è±¡¾c?
webapps
包含web™å¹ç›®½CÞZ¾‹
此外你可以Tomcat会创建如下目�
work
Tomcat自动生成,攄¡½®Tomcat˜qè¡Œæ—¶çš„临时文äšg(如编译后的JSPæ–‡äšg).如在Tomcat˜qè¡Œæ—¶åˆ é™¤æ­¤ç›®å½•.JSP™åµé¢ž®†ä¸èƒ½è¿è¡?
classes
你可以创建此目录来添加一些附加的¾cÕdˆ°¾c»èµ\径中.ä»ÖM½•你加到此目录中的¾c»éƒ½å¯åœ¨Tomcat的类路径中找到自íw?
Tomcat的脚æœ?br />Tomcat是一个Java½E‹åº,因此在设¾|®å¥½å‡ ä¸ªçŽ¯å¢ƒå˜é‡åŽå³å¯ç”¨å‘½ä×o行的方式˜qè¡Œ.然而设¾|®Tomcat使用的每个环境变量和如下的命令行参数乏味且易é”?å› æ­¤,Tomcat开发组提供了一些脚本ä‹É启动和关闭Tomcat变得è½ÀL¾.
注意:˜q™äº›è„šæœ¬ä»…ä»…æ˜¯ä¸ªä¾¿åˆ©çš„æ–¹æ³•åŽ»å¯åŠ¨å’Œå…³é—­Tomcat.你可修改他们来定制CLASSPATH,环境变量如PATH,LD_LIBRARY_PATH,½{‰ç­‰,只要是生成一个正¼‹®çš„命ä×o行即å?
˜q™äº›è„šæœ¬æ˜¯ä»€ä¹ˆå‘¢?下表列出对一般用æˆähœ€é‡è¦çš„脚æœ?
tomcat
主脚æœ?讄¡½®åˆé€‚的环境变量,包括CLASSPATH,TOMCAT_HOMEå’ŒJAVA_HOME和用适合的命令行参数启动Tomcat

startup

在后台启动Tomcat.”tomcat start”命令的替换方式

shutdown

关闭Tomcat.”tomcat stop”命令的替换方式


对用æˆähœ€é‡è¦çš„脚本是tomcat(tomcat.bat/tomcat.sh).å…¶ä»–Tomcat相关的脚本作ä¸ÞZ¸€ä¸ªç®€å•的面向单ä“Q务的指向Tomcat脚本(讄¡½®ä¸åŒçš„命令行参数½{?的入å?


仔细考察tomcat.bat/tomcat.sh,它按以下步骤˜qè¡Œ:

在Unix下的步骤åQ?/p>

如未指定,推测 TOMCAT_HOME

如未指定,推测 JAVA_HOME

讄¡½®CLASS_PATH包含:

1.${TOMCAT_HOME}/classes目录(如果存在)

2.${TOMCAT_HOME}/lib的一切内�/p>

3.${JAVA_HOME}/lib/tools.jar(æ­¤jaræ–‡äšg包含工具javac,我们需要javac处理jspæ–‡äšg.


˜qè¡Œå¸¦æœ‰è®‘Ö®šJava环境变量的命令行参数的java命ä×o,调入tomcat.home,å’Œorg.apache.tomcat.startup.Tomcat ä½œäØ“å¯å§‹¾c?同时也传递命令行参数到org.apache.tomcat.startup.Tomcat ,例如:


执行start/stop/run ½{‰çš„æ“ä½œ

æ­¤Tomcat˜q›ç¨‹ä½¿ç”¨æŒ‡å‘server.xmlçš„èµ\å¾?

例如server.xml攄¡½®äºŽetc/server_1.xmlòq¶ä¸”用户意图在后台启动apache,é”?入如下命令行:

bin/tomcat.sh start –f /etc/server_1.xml

在Win32下的步骤åQ?ç•?


由此可见,win32版的tomcat.bat与Unix版的几乎一è‡?ž®¤å…¶åœ¨å®ƒä¸æŽ¨‹¹‹TOMCAT_HOMEå’ŒJAVA_HOMEçš„å€?òq¶ä¸”不将所有的jaræ–‡äšg攑օ¥¾c»èµ\径中.


Tomcat的配¾|®æ–‡ä»?/p>

Tomcat的配¾|®åŸºäºŽä¸¤ä¸ªé…¾|®æ–‡ä»?

1.server.xml - Tomcat的全局配置文äšg

2.web.xml - 在Tomcat中配¾|®ä¸åŒçš„关系环境


˜q™ä¸€éƒ¨åˆ†ž®†è®²˜q°å¦‚何ä‹É用这些文ä»?我们不会包含web.xml的内部机åˆ?˜q™äº›å†…部机制深入åˆîCº†Servlet API的细èŠ?å› æ­¤,我们ž®†è®¨è®ºæ¶µç›–servler.xml内容及web.xml在Tomcat关系环境中的用法.


server.xml

server.xml是Tomcat的主配置文äšg.完成两个目标:

1 提供Tomcat¾l„äšg的初始配¾|?

2 说明Tomcat的结æž?含义,使得Tomcat通过实例化组件完成è“v动及构徏自èín, 如在server.xml所指定çš?/p>

下表描述server.xml¿Uçš„重要元素:

Jakarta-Tomcat ½Ž€æ˜Žä¸­æ–‡ç‰ˆç”¨æˆ·æŒ‡å—½W¬äºŒéƒ¨åˆ†
 

元素及其描述

Server
server.xmlæ–‡äšg中最重要的元ç´?Server定义了一个Tomcat服务å™?一般你不用对他担心太多.Server元素能包含Loggerå’ŒContextManager元素¾cÕdž‹

Logger
此元素定义一个Logger对象,每个Logger都有一个名字去标识,也有一个纪录Logger的输出和冗余¾U§åˆ«(描述此日志çñ”åˆ?和包含日志文件的路径.通常有servletçš„Logger(ServletContext.log()å¤?,JSPå’ŒTomcat˜qè¡Œæ—¶çš„Logger.

ContextManager
ContextManager说明一套ContextInterceptor, RequestInterceptor , Context和他们的Connectors的配¾|®åŠ¾l“æž„.ContextManager有几个随同提供的ç‰ÒŽ€?
1. 用来¾Uªå½•调试信息的调试çñ”åˆ?
2. webapps/,conf/,logs/和所有已定义的环境的基本位置.用来使Tomcat可以在TOMCAT_HOME外的其他目录启动.
3. 工作目录的名�/p>

ContextInterceptor&RequestInterceptor
˜q™äº›ä¾¦å¬å™?interceptors)侦听具体发生在ContextManager中的事äšg.例如,ContextInterceptor侦听Tomcat的启动及¾lˆæ­¢äº‹äšg,RequestInterceptor监视在它服务˜q‡ç¨‹ä¸­ç”¨æˆ¯‚¯·æ±‚需要通过的不同阶ŒD?Tomcat的管理员不必知道太多关于侦听器的知识;另外,开发者应该知道这是如何在Tomcat中实çŽîC¸€ä¸ªâ€å…¨å±€â€åž‹çš„æ“ä½?例如安全性及每个è¯äh±‚日志)

Connector
Connector表示一个到用户的联æŽ?不管是通过web服务器或直接到用æˆähµè§ˆå™¨(在一个独立配¾|®ä¸­).Connectorè´Ÿè´£½Ž¡ç†Tomcat的工作线½E‹å’Œ è¯?å†?˜qžæŽ¥åˆîC¸åŒç”¨æˆïLš„端口çš?è¯äh±‚/响应.Connector的配¾|®åŒ…含如下信æ?

1.句柄¾c?/p>

2.句柄监听的TCP/IP端口

3.句柄服务器端口的TCP/IP的backlog.

½EåŽæˆ‘们ž®†åœ¨æ­¤æ–‡æ¡£ä¸­æè¿°å¦‚何配置Connector.

Context
每个Context提供一个指向你攄¡½®ä½ Web™å¹ç›®çš„Tomcat的下属目录。每个Context包含如下配置åQ?/p>

1. Context攄¡½®çš„èµ\å¾?可以是与ContextManagerä¸È›®å½•相关的路径.

2.¾Uªå½•调试信息的调试çñ”åˆ?/p>

3.可重载的标志.开发Servletæ—?重蝲更改后的Servlet,˜q™æ˜¯ä¸€ä¸ªéžå¸æ€¾¿åˆ©çš„ç‰ÒŽ€?你可以调试或用Tomcat‹¹‹è¯•æ–îC»£ç è€Œä¸ç”¨åœæ­¢æˆ–重新启动Tomcat.要打开重蝲,把reloadableè®¾äØ“çœŸå³å?˜q™è™½èŠÞp´¹æ—‰™—´ä½†å¯‹‚€‹¹‹æ‰€å‘生的变åŒ?更重要的äº?鉴于,在一个装载类对象装入一个新的servletæ—?¾c»è£…载触发器可能会掷å‡ÞZ¸€äº›é”™è¯?为避免这些问é¢?你可以设¾|®å¯é‡è²ä¸ºå‡,˜q™å°†åœæ­¢é‡è²åŠŸèƒ½.


 

从另一个目录中启动Tomcat

ä½œäØ“¾~ºçœå€¼å°†ä½¿ç”¨TOMCAT_HOME/conf/server.xmlä½œäØ“é…ç½®æ–‡äšg.¾~ºçœé…ç½®ž®†ä‹É用TOMCT_HOMEä½œäØ“å…³ç³»çŽ¯å¢ƒçš„åŸº¼‹€.

使用 â€?f/ä½ çš„/目录/server.xml”选项你可改变˜q™ç§æƒ…况,使用另一个服务器配置文äšg和设¾|®å…³¾pÈŽ¯å¢ƒç®¡ç†å™¨çš„ç›®å½•å±žæ€§ä½ éœ€è¦åœ¨ä¸È›®å½•内讄¡½®ä»¥ä¸‹å‡ ä¸ªæ–‡äšg:

? 一ä¸?webapps/目录(如果你已生成) â€?所有waræ–‡äšg奖杯界压倒此目录而且所有子目录ž®†ä½œä¸ºå…³¾pÈŽ¯å¢ƒæ·»åŠ?

? conf/目录 - 你可保存一个特ŒDŠçš„web.xmlæ–‡äšg和其他配¾|®æ–‡ä»?/p>

? logs/ - 所有日志文件将代替TOMCAT_HOME/logs/¾Uªå½•到此目录ä¸?/p>

? work/ - 关系环境的工作目�/p>

如server.xml中的ContextManager.home属性有兌™”,ž®†å…³è”到到当前工作目å½?

web。xml

关于web。xmlå’Œweb™å¹ç›®¾l“æž„åQˆåŒ…括目录服务及配置åQ‰çš„详细描述可在Servlet API Spec的第9åQ?0åQ?4章中扑ֈ°ã€?/p>

然而有一个与Tomcat有关的小“特性“与web.xml有关。Tomcat可以让用户通过ž®†ç¼ºçœçš„web.xml攑օ¥conf目录中来定义所有关¾pÈŽ¯å¢ƒçš„web.xml的缺省å€?建立一个新的关¾pÈŽ¯å¢ƒæ—¶,Tomcat使用¾~ºçœçš„web.xmlæ–‡äšgä½œäØ“åŸºæœ¬è®„¡½®å’Œåº”用项目特定的web.xml(攑֜¨åº”用™å¹ç›®çš„WEB-INF/web.xmlæ–‡äšg)来覆盖这些缺省å€?

讄¡½®Tomcat与Apache Web 服务å™?/p>

服务�/p>

åˆ°çŽ°åœ¨äØ“æ­?我们未讨è®ÞZ½œä¸ºæœåŠ¡å™¨æ‰©å±•çš„Tomcat,只讨è®ÞZº†ä½œäؓ独立˜qè¡Œçš„æœåС噍.但有一些问题需要说æ˜?

1. 当处理静态页面时,Tomcat不如Apache˜q…é€?

2. Tomcat不象Apache一样可配置.

3. Tomcat不象Apache一样强�

4. 有很多网站已在某一特定web server上投入了很长旉™—´,例如,使用CGI脚本/Server API模组/perl/php…我们不能假设这些遗留下来的东西都会被丢å¼?

åŸÞZºŽä»¥ä¸ŠåŽŸå› ,一个现实的¾|‘ç«™å»ø™®®ä½¿ç”¨ä¸€ä¸ªWeb服务å™?如Apache,为网站的静态页面请求提供服åŠ?òq¶ä‹É用Tomcatä½œäØ“ä¸€ä¸ªServlet/JSP插äšg.

我们不准备深入的讨论每个不同的配¾|?我们ž®?

1. æ¶ëŠ›–WebæœåŠ¡å™¨çš„åŸºæœ¬è¡ŒäØ“

2. 解释需要何¿Ué…¾|?/p>

3. 在Apache上的实例


Web 服务器操�/p>


½Ž€å•说来,web服务器æ€ÀL˜¯½{‰å¾…来自客户端的HTTPè¯äh±‚。当è¯äh±‚到达æ—Óž¼ŒæœåŠ¡å™¨ä¼šæä¾›ä¸€åˆ‡å¿…è¦çš„å†…å®¹æ¥æ»¡­‘Ïx­¤è¯äh±‚。加入一个Servlet容器某种½E‹åº¦ä¸Šä¼šæ”¹å˜æ­¤è¡Œä¸ºã€‚但服务器仍需处理如下因素åQ?/p>

载入servletå®¹å™¨æŽ¥å£åº“åÆˆåˆå§‹åŒ–ï¼ˆå¤„ç†è¯äh±‚之前åQ‰ã€?/p>

当收åˆîC¸€ä¸ªè¯·æ±‚æ—¶åQŒæ£€æŸ¥æ˜¯å¦å±žäºŽæŸServletåQŒå¦‚æ˜¯ï¼Œåˆ™æŽ¥å£åº“æŽ¥æ”¶æ­¤è¯·æ±‚åÆˆå¤„ç†ã€?/p>

另一斚w¢åQŒæŽ¥å£åº“需要知道他ž®†æœåŠ¡æŸ¿Uè¯·æ±‚,通常是基于请求的URL的某¿Uæ¨¡å¼å’Œž®†æ­¤è¯äh±‚导向何处ã€?/p>

当用æˆähƒ³è¦è®¾¾|®ä‹É用虚拟主机的配置æ—Óž¼Œäº‹æƒ…会变得更加复杂,或者想多个开发者在一个服务器上进行开发但使用不同的Servlet容器的JVMs。以下我们将讨论˜q™ä¸¤ä¸ªé—®é¢˜ã€?/p>


必需˜q›è¡Œçš„配¾|?/p>


应该考虑的是最明显的配¾|®æ˜¯servlet URLå…ähœ‰å¯¹servlet容器中的servletå…ähœ‰è¡¨ç¤ºçš„责仅R€‚很明显åQŒä½ å¿…须知道传递什么到Servlet容器。我们仍需提供附加的配¾|®é¡¹ç›®åˆ°web-server或servlet-container的结合体ä¸?

l 考虑到Tomcat˜q›ç¨‹æ˜¯å¦å¯å–得,我们仍需提供配置和Tomcat正在监听的TCP/IP ä¸ÀLœºå?端口受÷€?/p>

l 需要告知web服务器接口库的位¾|®ï¼ˆå› æ­¤æˆ‘们可以在è“v始时装入åQ?/p>

l 需要设¾|®æŽ¥å£å†…部信息如ž®†æ—¥å¿—记录在何处和如何纪录,½{‰ç­‰ã€?/p>

所有此¾cÖM¿¡æ¯å¿…™åÕd‡ºçŽ°åœ¨web服务器配¾|®é‡Œæˆ–被接口使用的私有配¾|®æ–‡ä»¶ä¸­ã€‚下面将讲述如何在Apache中如何实现这些配¾|®ã€?/p>


Apache上的实现

˜q™ä¸€éƒ¨åˆ†æ¼”示如何配置Apache与Tomcat一起工作;òq¶è¯•图解释深入到可能会用到的配置规范。在jserv 安装™åµä¸Šå¯æ‰¾åˆ°å…¶ä»–信息ã€?/p>

]]>
Ö÷Õ¾Ö©Öë³ØÄ£°å£º Ëç±õÏØ| ÖñÏªÏØ| ÀÖ¶¼ÏØ| ×Ͳ©ÊÐ| ÐÂÎÅ| Î÷ÎÚ| ½«ÀÖÏØ| »³»¯ÊÐ| ¶«·áÏØ| ÇçÂ¡ÏØ| ¼¯ÏÍÏØ| ÈêÖÝÊÐ| Î÷³ëÏØ| ¹ã×ÚÏØ| ½ªÑßÊÐ| ÂÞµéÏØ| ÁúÃÅÏØ| ÒÁÎáÏØ| ¿µÀÖÏØ| ÁúÀïÏØ| ÎÚÀ¼²ì²¼ÊÐ| ÌúÁëÊÐ| ÕØÔ´ÏØ| ÊÙÑôÏØ| ·¨¿âÏØ| ÑîÆÖÇø| º£Ô­ÏØ| ±öÑôÏØ| ÁÙò£ÏØ| ͬ½­ÊÐ| ɳƺ°ÓÇø| ·áÏØ| Áø½­ÏØ| °ÔÖÝÊÐ| ·á¶¼ÏØ| ÁùÖ¦ÌØÇø| ÁøºÓÏØ| ÁúÖÝÏØ| ÎýÁÖºÆÌØÊÐ| Î÷ÁÖÏØ| ÄÏÖ£ÏØ|