⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 j2ee配置指南2.htm

📁 J2EE配置指南(讲解j2ee开发环境的配置)
💻 HTM
📖 第 1 页 / 共 2 页
字号:
            <P align=right><FONT color=red><A 
            href="http://www.yesky.com/20020719/1621239.shtml">上一页</A>&nbsp;&nbsp;<A 
            href="http://www.yesky.com/20020719/1621239.shtml">1</A> 2 <A 
            href="http://www.yesky.com/20020719/1621239_2.shtml">3</A> &nbsp;<A 
            href="http://www.yesky.com/20020719/1621239_2.shtml">下一页</A></FONT></P><IFRAME 
            align=right frameBorder=0 height=300 marginHeight=0 marginWidth=0 
            scrolling=no src="J2EE配置指南2.files/cont_flash_software.htm" 
            width=360></IFRAME><SPAN class=txt>  7.事务
            <P></P>
            <P>  你可以编辑config/default.properties 
            文件控制事务发生和超时设置。<BR><BR>  <B>distributed.transaction.recovery 
            属性</B><BR><BR>  这个属性控制分布事物是否发生。入这些事物可以发生的化,下面的条件必须满足:<BR>跨库操作时的事物范围。<BR><BR>  <B>j2ee程序通过jdbc2.0 
            JTA驱动访问数据库</B><BR><BR>  当故障发生的时候,事物的各个的组成部分可以按照符合两段提交协议的方式提交或回滚。<BR>事物发生的时候,server重新启动后事物可以提交或回滚。<BR>  distributed.transaction.recovery的值为true或者false。j2ee安装后默认为false。<BR>distributed.transaction.recovery=false</P>
            <P>  <B>transaction.time属性</B><BR><BR>  在应用container-managed 
            事物的ejb中,你可以控制事物超时的间隔通过设置transaction.timeout的值。例如:<BR>  transaction.timeout=5<BR>  在设置以后,如果事物在5秒内没有完成,j2ee事物管理器将回滚它。<BR>  当j2ee第一次安装的时候,timeout的值时0代表没有超时。<BR>  只有使用container-managed 
            管理事物的ejb受到timeout的影响。至于在bean-managed和JTAtransactions 中你可以引用 
            UserTransaction 的 
            setTransactionTimeout方法。同时你也可以在其他组建中引用setTransactionTimeout方法:比如servlets和jsp。</P>
            <P>  8.端口</P>
            <P>  j2ee需要tcp/ip端口。修改config目录下的相应文件可以修改端口号。下表是端口号和相应的文件。</P>
            <P>  EJB 9191 ejb.properties http.port=9191 <BR>  HTTP 8000 
            web.properties port=8000 <BR>  HTTPS 7000 web.properties 
            https.port=7000 <BR>  Naming and Directory 1050 orb.properties 
            port=1050 </P>
            <P><BR>  9191 端口用于提供client下载需要的stub类<BR>  8000 提供http服务<BR>  7000 
            提供https服务<BR>  1050 基于orb的jndi名字服务使用的端口</P>
            <P>  9.日志文件</P>
            <P>  j2ee server有几个日志文件。默认这些文件在logs目录下。编辑config/default.properties 
            文件中的 </P>
            <P>  log.directory 属性可以更改默认目录。<BR>  log.directory=logs </P>
            <P>  同时你也可以编辑default.properties 文件更改日志文件的名字。例如:你可以修改log.output 
            属性的值来修改the output.log 
            文件的名字。<BR>  一般来说,日志文件决定于启动j2ee的模式。(single还是multiple VM (virtual 
            machine) 模式)<BR>Single VM 日志文件<BR>  默认的情况是Single VM 
            模式。在这种情况下,日志文件位于$J2EE_HOME/<LOGS>/<HOST>/ejb 
            logs是在default.properties 文件中log.directory 
            属性指定的。host元素是计算机名称。<BR>生成下列文件。<BR>  system.out<BR>  system.err<BR>  event.log<BR>  output.log<BR>  error.log<BR>  system.out 
            和system.err文件包括ejb中 System.out 和 System.err的输出。如果你运行j2ee 
            -verbose参数,输出被写到stdout(标准输出) 和stderr(标准错误。输出)。system.out 和 
            system.err日志文件不创建。只有config/auth.properties 
            文件中audit属性值为true时audit.lo才创建。</P>
            <P>  <B>Multiple VM 日志</B></P>
            <P>  如果你用j2ee 
            -mutiVM启动server,ejb和http服务在自己的虚拟机以单独的服务启动。每一个depploy的应用程序也在自己的虚拟机中运行。日志文件和上述的一样,但是存放的目录不同。<BR>目录如下:<BR>  EJB 
            $J2EE_HOME/<LOGS>/ejb/ejbd <BR>  HTTP $J2EE_HOME/<LOGS>/ejb/httpd 
            <BR>  deployed application $J2EE_HOME/<LOGS>/ejb/<APP-NAME> </P>
            <P>  <B>web server日志</B><BR>  编辑web.properties文件中的内容,可以改变由web 
            server创建的日志文件的名字。</P>
            <P></SPAN>
            <P align=right><FONT color=red><A 
            href="http://www.yesky.com/20020719/1621239.shtml">上一页</A>&nbsp;&nbsp;<A 
            href="http://www.yesky.com/20020719/1621239.shtml">1</A> 2 <A 
            href="http://www.yesky.com/20020719/1621239_2.shtml">3</A> &nbsp;<A 
            href="http://www.yesky.com/20020719/1621239_2.shtml">下一页</A></FONT></P></TD></TR>
        <TR>
          <TD>
            <DIV align=right>【责任编辑:】 <BR><A 
            href="http://bbs.yesky.com/servlet/IBBS2.ListTopic?forumID=94"><FONT 
            color=#000000>【发表评论】</FONT></A><A 
            href="javascript:window.close()"><FONT 
            color=#000000>【关闭窗口】</FONT></A></DIV></TD></TR>
        <TR>
          <TD>
            <TABLE border=0 cellPadding=0 cellSpacing=0 width=550>
              <TBODY>
              <TR>
                <TD bgColor=#000000 rowSpan=5 width=1></TD>
                <TD bgColor=#000000 height=1></TD>
                <TD bgColor=#000000 rowSpan=5 width=1></TD></TR>
              <TR>
                <TD bgColor=#a0d0d0>■ 相关内容</TD></TR>
              <TR>
                <TD bgColor=#000000 height=1></TD></TR>
              <TR>
                <TD> <A 
                  href="http://www.yesky.com/20020726/1622223.shtml"><FONT 
                  color=#000000>用Rational Rose和UML开发J2EE应用</FONT></A><BR> <A 
                  href="http://www.yesky.com/20020725/1622019.shtml"><FONT 
                  color=#000000>用Rational Rose和UML开发J2EE应用(一)</FONT></A><BR> <A 
                  href="http://www.yesky.com/20020628/1618084.shtml"><FONT 
                  color=#000000>J2EE的安全认证机制</FONT></A><BR> <A 
                  href="http://www.yesky.com/20020606/1614793.shtml"><FONT 
                  color=#000000>J2EE的异步消息机制(下) </FONT></A><BR> <A 
                  href="http://www.yesky.com/20020606/1614797.shtml"><FONT 
                  color=#000000>J2EE的异步消息机制(上) </FONT></A><BR> <A 
                  href="http://www.yesky.com/20020527/1613017.shtml"><FONT 
                  color=#000000>J2EE表现层设计思考</FONT></A><BR> <A 
                  href="http://www.yesky.com/20020514/1611111.shtml"><FONT 
                  color=#000000>J2EE概述</FONT></A><BR></TD></TR>
              <TR>
                <TD bgColor=#000000 height=1></TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD align=middle><A href="http://www.yesky.com/hdong/zz.htm" 
            target=_blank><FONT 
            color=#000000>感谢访问天极网,如果您觉得该文章涉及版权问题,请看这里!</FONT></A><BR><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE bgColor=#4e4e4e border=0 cellPadding=0 cellSpacing=0 width=760>
  <TBODY>
  <TR>
    <TD height=3></TD></TR></TBODY></TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=770>
  <TBODY>
  <TR>
    <TD><IFRAME frameBorder=0 height=20 scrolling=no 
      src="J2EE配置指南2.files/floor-tougao.htm" 
width=770></IFRAME></TD></TR></TBODY></TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 height=40 width=770>
  <TBODY>
  <TR>
    <TD>
      <DIV align=center><SPAN class=nava><FONT color=#000000 
      face="Arial, Helvetica, sans-serif">Copyright (C) 2001 Yesky.com, All 
      Rights Reserved </FONT><FONT color=#000000><BR>版权所有  <FONT 
      face="Arial, Helvetica, sans-serif">Yesky </FONT><A 
      href="mailto:webmaster@yesky.com"></A></FONT></SPAN></DIV></TD></TR></TBODY></TABLE>
<SCRIPT language=Javascript>document.write("<img src='http://counter.yesky.com/servlet/counter.counter?CID=72342371961929728&AID=1621239&refer="+escape(document.referrer)+"&cur="+escape(document.URL)+"' border='0' alt='' width='0' height='0'>");</SCRIPT>
<BR></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -