??xml version="1.0" encoding="utf-8" standalone="yes"?>av一区二区三区,av免费观看一区二区,国产精品成人a在线观看http://www.aygfsteel.com/siliconchip/category/15227.htmlJava技术学?/description>zh-cnSat, 03 Mar 2007 08:54:57 GMTSat, 03 Mar 2007 08:54:57 GMT60[转]WebLogic理操作 http://www.aygfsteel.com/siliconchip/articles/84006.htmlJava初心Java初心Tue, 28 Nov 2006 03:43:00 GMThttp://www.aygfsteel.com/siliconchip/articles/84006.htmlhttp://www.aygfsteel.com/siliconchip/comments/84006.htmlhttp://www.aygfsteel.com/siliconchip/articles/84006.html#Feedback0http://www.aygfsteel.com/siliconchip/comments/commentRss/84006.htmlhttp://www.aygfsteel.com/siliconchip/services/trackbacks/84006.html如何q程启动WEBLOGIC

用telnetq程控制服务器,q程启动WEBLOGIC服务Q启动后关闭telnetQWebLogic服务也跟着停止Q这是因Z用telnet启动的进E会随着telnetq程的关闭而关闭。所以我们可以用一些UNIX下的命o来做C关闭?/p>

 使用如下命oQ?/p>

nohup startWeblogic.sh&

 如果惌监控标准输出可以使用Q?/p>

tail -f nohup.out

WebLogic 部v应用的方式简明列?/strong>

1、WebLogic中应用可分三U,分别对应不同的描q文件及扩展名或目录l构Q?/p>

Q?Q?.JAR: 是EJB的压~包(?个描q文件ejb-jar.xmlQWEBLOGIC*.0-ejb-jar.xmlQWEBLOGIC*.0-cmp-rdbms-jar.xml)

Q?Q?.WAR: 是只包含JSP和SERVLET的WEB APPLICATION压羃??个描q文件web.xmlQweblogic.xml)

Q?Q?.EAR: 是包含EJB和WEB APPLICATION 的J2EE Enterprise Application压羃?? 个描q文Ӟapplication.xml)

注意Q它们不能؜用,如WEB APPLICATOIN不能打包?EAR文g?/p>

 

2、WebLogic的应用用两种发布方式:

Q?Q以目录形式存放在WEBLOGIC的APPLICATIONS目录下,适用于开发阶D?/p>

Q?Q以一个压~包形式存放在WEBLOGIC的APPLICATIONS目录下,适用于运行阶D,可用JAR 打包Q如D:\test >jar cf testwar.war *

把TEST目录下的所有文件打包成一个testwar.war文g?/p>

 

3、WebLogic应用的布|方式有2U?/p>

Q?Q静态布|?x应用在CONFIG.XML中登讎ͼ可通过WEBLOGIC的控制台q行dQWEBLOGIC会自动把该应用对应的压羃包拷到APPLICAITONS目录下,如果对该应用修改Q需要重新布|才行?/p>

Q?Q动态布|?没有在config.xml中登讎ͼ可直接把压羃包或目录拷到APPLICATIONS目录下,WebLogic会自动检到. WebLogic每次启动时会自动对APPLICATIONS目录下没有进行静态布|的应用Q进行动态布|?/p>

 

4、一个例?

如果一个应用中有EJBQJSPQSERVLETQ其布置步骤如下:

Q?Q生成EJB的JAR文gQ最好一个JAR文g对应一个EJB

Q?Q生成WEB APPLICATION的WAR文gQ在web.xmlQweblogic.xml中登讎ͼ配置SERVLETQJSP{?/p>

Q?Q创Z个application.xml文gQ设|该应用的属?把application.xmlQ?.JARQ?*.WARQ打包成一?.EAR

Q?QWebLogic的控制台中登记该应用或把该EAR文g拷到application目录下。到此处完成了部v?/p>

WebLogic 如何讄session时旉

1 web.xml

讄WEB应用E序描述Wweb.xml里的<session-timeout>元素。这个g分钟?br />单位Qƈ覆盖weblogic.xml中的TimeoutSecs属?br />  <session-config>
    <session-timeout>54</session-timeout>
  </session-config>
此例表示Session在54分钟后过?br />?lt;session-timeout>讄为-2Q表C将使用在weblogic.xml中设|的
TimeoutSecsq个属性倹{?br />?lt;session-timeout>讄为-1Q表CSession永不过期,而忽略在
weblogic.xml中设|的TimeoutSecs属性倹{?br />该属性值可以通过console控制台来讄

2 weblogic.xml

讄WebLogicҎ部v描述Wweblogic.xml?lt;session-descriptor>元素?br />TimeoutSecs属性。这个gUؓ单位
<session-descriptor>
   <session-param>
      <param-name>TimeoutSecs</param-name>
      <param-value>3600</param-value>
   </session-param>
</session-descriptor>
默认值是3600



Java初心 2006-11-28 11:43 发表评论
]]>
[转]JBuilder中Tomcat数据源配|?/title><link>http://www.aygfsteel.com/siliconchip/articles/78214.html</link><dc:creator>Java初心</dc:creator><author>Java初心</author><pubDate>Tue, 31 Oct 2006 01:41:00 GMT</pubDate><guid>http://www.aygfsteel.com/siliconchip/articles/78214.html</guid><wfw:comment>http://www.aygfsteel.com/siliconchip/comments/78214.html</wfw:comment><comments>http://www.aygfsteel.com/siliconchip/articles/78214.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/siliconchip/comments/commentRss/78214.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/siliconchip/services/trackbacks/78214.html</trackback:ping><description><![CDATA[原文地址: <a >http://blog.csdn.net/mshust2006/archive/2006/08/07/1033876.aspx</a><br /><br /><br />今天帮一同事配置一个数据源Q采用tomcat5.5.9,本来是个很简单的事,以前也配q,但由于很长时间没用过容器提供的数据源了(IOC用惯了)Q也只记的个大概了,所以刚开始一配就出错了,google了一下,有很多资料,照着试试却都不好使(C是别的不对,只是大家用的版本不同Q。其实tomcat中配|数据源有好几中方式Q很灉|Q所以也Ҏ怺整窜Q个为比较简单的Ҏ是在tomcat下的conf文g夹下的server.xml增加<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">Context </span><span style="COLOR: #ff0000">path</span><span style="COLOR: #0000ff">="/test"</span><span style="COLOR: #ff0000"> docBase</span><span style="COLOR: #0000ff">="test"</span><span style="COLOR: #ff0000"><br />  debug</span><span style="COLOR: #0000ff">= "99"</span><span style="COLOR: #ff0000"> reloadable</span><span style="COLOR: #0000ff">="true"</span><span style="COLOR: #ff0000"> crossContext</span><span style="COLOR: #0000ff">="true"</span><span style="COLOR: #ff0000"> verbosity</span><span style="COLOR: #0000ff">="DEBUG"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /> </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">Resource </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="jdbc/***"</span><span style="COLOR: #ff0000"> auth</span><span style="COLOR: #0000ff">="Container"</span><span style="COLOR: #ff0000"><br />           type</span><span style="COLOR: #0000ff">="javax.sql.DataSource"</span><span style="COLOR: #ff0000"> password</span><span style="COLOR: #0000ff">="****"</span><span style="COLOR: #ff0000"><br />           driverClassName</span><span style="COLOR: #0000ff">="com.microsoft.jdbc.sqlserver.SQLServerDriver"</span><span style="COLOR: #ff0000"><br />           maxIdle</span><span style="COLOR: #0000ff">="2"</span><span style="COLOR: #ff0000"><br />           maxWait</span><span style="COLOR: #0000ff">="5000"</span><span style="COLOR: #ff0000"><br />           username</span><span style="COLOR: #0000ff">="sa"</span><span style="COLOR: #ff0000"><br />           url</span><span style="COLOR: #0000ff">="jdbc:microsoft:sqlserver://192.168.*.*:1433;DatabaseName=***"</span><span style="COLOR: #ff0000"><br />           maxActive</span><span style="COLOR: #0000ff">="4"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">Context</span><span style="COLOR: #0000ff">></span></div><br />注意它是加在</host>前的Q另外由于采用的tomcat5.5.9Q所以数据源的配|信息采用属性的形式写,不能用结点的形式Qtomcat5.0.X好象可以?br />改了tomcat的server.xml文g后,剩下一个要改的地方是在你的web目中的web.xml中加入引?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">resource-ref</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">description</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">Resource reference to a factory for java.sql.Connection<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    instances that may be used for talking to a particular<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    database that is configured in the server.xml file.</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">description</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">res-ref-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">jdbc/***</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">res-ref-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">res-type</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">javax.sql.DataSource</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">res-type</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">res-auth</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">Container</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">res-auth</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">resource-ref</span><span style="COLOR: #0000ff">></span></div>仅仅需要改q两个地方就能在webE序中用tomcat提供的数据源Q但q样做,你可以将你生成的war包放在容器下q行Q却不能在jbuilder中启动项目,因ؓjbuilder启动web目时是不会去读你指定的tomcat中的server.xml的,q样的话数据源就不可用了Q如果我们不能在jbuilder中启动项目,我门׃能在调试状态下来运行了Q这样对我们来写E序没有太大意义了Q当然我们可以在外面启动tomcat,采用q程调试的方法,q样卛_以用数据源Q也可以调试修改E序Q但q个有点杀鸡用牛刀的意思,不推荐)Q实际上jbuilder在启动web目时它会在工程目录下徏立一个tomcat文gӞ它会去读conf下的server8080.xml文gQ?080Z为tomcat讑֮的端口)Q所以我们要惛_jbuilder中启动数据源Q必要在该配置文g中加上数据源信息Q,具体的是server8080.xml中的一条注释删掉,Q否则它仍然会是临时文gQ会被覆盖的Q在<host>l点中加?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">Resource </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="jdbc/***"</span><span style="COLOR: #ff0000"> auth</span><span style="COLOR: #0000ff">="Container"</span><span style="COLOR: #ff0000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                  type</span><span style="COLOR: #0000ff">="javax.sql.DataSource"</span><span style="COLOR: #ff0000"> password</span><span style="COLOR: #0000ff">="****"</span><span style="COLOR: #ff0000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                  driverClassName</span><span style="COLOR: #0000ff">="com.microsoft.jdbc.sqlserver.SQLServerDriver"</span><span style="COLOR: #ff0000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                  maxIdle</span><span style="COLOR: #0000ff">="2"</span><span style="COLOR: #ff0000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                  maxWait</span><span style="COLOR: #0000ff">="5000"</span><span style="COLOR: #ff0000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                  username</span><span style="COLOR: #0000ff">="sa"</span><span style="COLOR: #ff0000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                  url</span><span style="COLOR: #0000ff">="jdbc:microsoft:sqlserver://192.168.*.*:1433;DatabaseName=***"</span><span style="COLOR: #ff0000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                  maxActive</span><span style="COLOR: #0000ff">="4"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span></div>注意q里<context>l点可用它自w的Q不要修改,重启目Q这时你可以用数据源了。之所以在jbuilder中启动web目有点ȝQ是它没有把目发布到tomcat的webapp下面去,而是把tomcat的一些东西拿q来了(相当?Q象eclispe或idea没有这U问题了?br />以上所说的配置数据源是在tomcat5.5.9下实验的Q估?.5.x应该都没啥问题,要是别的tomcat的版本就不保了,谁叫q的开源的东东了,版本的兼容就不能恭维了!<img src ="http://www.aygfsteel.com/siliconchip/aggbug/78214.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/siliconchip/" target="_blank">Java初心</a> 2006-10-31 09:41 <a href="http://www.aygfsteel.com/siliconchip/articles/78214.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">½</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ڻ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ǰ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ͷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ľ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">µ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ǧ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ǭ</a>| <a href="http://" target="_blank">ֱ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank">ͤ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">޳</a>| <a href="http://" target="_blank">ƽɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʲ</a>| <a href="http://" target="_blank">÷</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>