﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Robin's Java World</title><link>http://www.blogjava.net/fastzch/</link><description>I Love Java As My Life!</description><language>zh-cn</language><lastBuildDate>Sat, 05 Jul 2008 11:31:10 GMT</lastBuildDate><pubDate>Sat, 05 Jul 2008 11:31:10 GMT</pubDate><ttl>60</ttl><item><title>Dudu老大，给你提个大Bug</title><link>http://www.blogjava.net/fastzch/archive/2008/05/29/203854.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Thu, 29 May 2008 07:39:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/05/29/203854.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/203854.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/05/29/203854.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/203854.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/203854.html</trackback:ping><description><![CDATA[
		<p>
				<strong>前几天看到有人提过，直接用二级域名就会跳到<a href="http://www.cnblogs.com">www.cnblogs.com</a>,你后来告诉兄弟们说已经改了，可是我今天用二级域名（<a href="http://fastzch.blogjava.net">http://fastzch.blogjava.net</a>）的时候，还是跳过去了。</strong>
		</p>
<img src ="http://www.blogjava.net/fastzch/aggbug/203854.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-05-29 15:39 <a href="http://www.blogjava.net/fastzch/archive/2008/05/29/203854.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>关于时间管理和利用的一些观念摘抄</title><link>http://www.blogjava.net/fastzch/archive/2008/05/16/200900.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Fri, 16 May 2008 06:25:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/05/16/200900.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/200900.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/05/16/200900.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/200900.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/200900.html</trackback:ping><description><![CDATA[
		<p>当你独自工作时，很容易整日在办公桌上碌碌无为，却只完成一些毫无价值的工作。如果你不清楚自己想干什么时，几乎总是会出现这种情况。而当意识到问题时，应该扪心自问：“我在这里到底试图想实现什么目标？”你必须尽量清楚自己的目标。将其具体化，然后用笔写下来。<br />就具体目标的定义和工作的展开而言，我发现一个有用的关键周期是九十天，即一个季度。在这个周期中，如果你设定了清楚万分的目标，那么就一定有能力做出显著而可估量的变化。所以建议你停下来片刻，用笔写下简要描述，从现在开始九十天后想让自己的生活成为什么样的生活。每月的收入将成为多少？体重将是多少？谁将会是你的朋友？你在职业生涯中的位置是何处？你的人际关系将是如何？你的网站将变为什么样子？一定要具体。绝对具体的描述将为你提供前进道路上的边界。</p>
		<p>一旦我开始完成一项任务，我便会一直工作到其百分比地被完成乃至交付。<br />这个简单的惯例为我节约了大量的时间。首先，它让我集中精力于每件事情，并且在工作的时候保持高效。在不同任务之间相互转换会耗费大量的时间，因为每次你都必须花时间重新适应新的情境（re-load the context）。事实上，只要有可能，我都会将一些主题类似的事情集中到一起，在切换到其他主题的事情之前来完成它们。在大学里，我往往先连续完成所有的数学作业，然后开始做编程工作直至全部完成，最后着手做所有通识教育（general education ）的作业。只有这样，我才会将精力集中到数学思维、编程思维、写作思维或者是艺术思维，尽量将任何一个思维模式保持到最长时间。其次，我认为这个习惯有助于减轻我的压力，让我保持放松，因为我的思维不会因为太多要做的事情而发生混乱。这种每次只做一件事的习惯，让我可以忘却与当前情境无关的其他事情。</p>
		<p>
				<br />不要害怕去做那些能够提高工作效率的尝试。有时知晓某件事情是否可行的最快方法就是立即开始动手去做。<br />在大学期间，我尝试了大量的疯狂念头，因为我想他们或许能够节约我的时间。我不停地阅读时间管理的资料然后将所学的东西应用于实践，不过同时也调整我原先的那些念头。我自己的大部分想法都是失败的，不过有些的确有效。我之所以愿意一而再再而三地失败，是因为总是有那么一丁点机会，让我能偶然发现一些可以额外提升自我的东西。</p>
		<p>如果想有效率地工作，就需要大块不被打扰的时间，这样就能完成有意义的工作。当你确保自己不被打扰的时候，你的工作效率就会高的多得多。当你坐下来要去完成一项特别复杂的工作的时候，专心致志地去做吧，而不要在这段时间里再去做其他的事情。我发现，一个不少于90分钟的时间段，对于完成一项单独的工作很理想。 </p>
		<p>在一段时间里，除了做眼前的工作以外不要考虑其他任何事情。不要检查邮箱、泡论坛或者随便上网溜达。如果有这个念头，在工作的时候断开互联网连接。关掉电话或者拒接。<br />需要休息就休息，应当工作就工作。要是100%的集中精神，干脆不工作。想休息多久就休息多久是没错的，只是别让休息时间占用了工作时间。<br />当你活动的时候，比如开车、做饭、购物或者走路，听磁带或者读点东西吧。</p>
<img src ="http://www.blogjava.net/fastzch/aggbug/200900.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-05-16 14:25 <a href="http://www.blogjava.net/fastzch/archive/2008/05/16/200900.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用MKVMerge GUI合并MKV文件</title><link>http://www.blogjava.net/fastzch/archive/2008/04/15/193246.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Tue, 15 Apr 2008 15:49:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/04/15/193246.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/193246.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/04/15/193246.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/193246.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/193246.html</trackback:ping><description><![CDATA[
		<div>喜欢看美剧，无赖听力不好，常常只好借助字幕。 </div>
		<div>前几天在EMule上下载了《The.Assassination.Of.Jesse.James》,分成3个MKV文件，没有提供相应的字幕。只好跑到shooter.cn上下字幕，发现下载下来的字幕是一整集用的，怎么办了？ </div>
		<div>­</div>
		<div>1，自己拆分字幕。 </div>
		<div>用“SRT字幕制作助手V1.6”折腾一翻，发现不行，拆分后好多对不上。 </div>
		<div>­</div>
		<div>2，在<a href="http://www.g.cn" target="_blank">www.g.cn</a><wbr>上搜了一把MKV合并，发现还真的有这样的工具：MKVMerge GUI，赶快下载下来一试。 </wbr></div>
		<div>其官方网站为：<a href="http://www.bunkus.org/videotools/mkvtoolnix/index.html" target="_blank">http://www.bunkus.org/videotools/mkvtoolnix/index.html</a><wbr></wbr></div>
		<div>使用很简单，注意：加文件时，第一个文件使用Add加进来，后面的文件使用Append加进来才行，千万莫搞错了。</div>
<img src ="http://www.blogjava.net/fastzch/aggbug/193246.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-04-15 23:49 <a href="http://www.blogjava.net/fastzch/archive/2008/04/15/193246.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Quartz与Spring结合时如何动态更新Job的启动时间</title><link>http://www.blogjava.net/fastzch/archive/2008/03/31/189790.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Mon, 31 Mar 2008 07:34:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/03/31/189790.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/189790.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/03/31/189790.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/189790.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/189790.html</trackback:ping><description><![CDATA[
		<font color="#ff0000">本Blog所有内容不得随意转载，版权属于作者所有。如需转载请与作者联系（</font>
		<a href="mailto:fastzch@163.com">
				<font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">fastzch@163.com</font>
				<font color="#1a8bc8">
				</font>
		</a>
		<font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">）。<br />未经许可的转载，本人保留一切法律权益。<br /></font>
		<br />今天早上一朋友问我如何在Spring中动态更新Quartz的启动时间，我试了一把，记录如下：<br /><br />动态更新的Java类如下：<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.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> org.quartz.CronTrigger;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> org.quartz.JobDetail;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> org.quartz.Scheduler;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> org.springframework.context.support.ClassPathXmlApplicationContext;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img id="Codehighlighter1_189_915_Open_Image" onclick="this.style.display='none'; Codehighlighter1_189_915_Open_Text.style.display='none'; Codehighlighter1_189_915_Closed_Image.style.display='inline'; Codehighlighter1_189_915_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_189_915_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_189_915_Closed_Text.style.display='none'; Codehighlighter1_189_915_Open_Image.style.display='inline'; Codehighlighter1_189_915_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> QuartzTest </span><span id="Codehighlighter1_189_915_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_189_915_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    ClassPathXmlApplicationContext context </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> ClassPathXmlApplicationContext(<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">/applicationContext.xml</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> String INSTANCE_NAME </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">DEFAULT</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img id="Codehighlighter1_388_754_Open_Image" onclick="this.style.display='none'; Codehighlighter1_388_754_Open_Text.style.display='none'; Codehighlighter1_388_754_Closed_Image.style.display='inline'; Codehighlighter1_388_754_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_388_754_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_388_754_Closed_Text.style.display='none'; Codehighlighter1_388_754_Open_Image.style.display='inline'; Codehighlighter1_388_754_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> test() </span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000"> Exception </span><span id="Codehighlighter1_388_754_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_388_754_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        Scheduler sch </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (Scheduler) context.getBean(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">BatchJobStarting</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        JobDetail myJob </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> sch.getJobDetail(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">CleanLogJob</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, INSTANCE_NAME);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        CronTrigger newTrigger </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> CronTrigger(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">trig_batch</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, INSTANCE_NAME,<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">0/3 * * * * ?</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        JobDetail newJob </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (JobDetail) myJob.clone();<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        sch.deleteJob(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">CleanLogJob</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, INSTANCE_NAME);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        sch.scheduleJob(newJob, newTrigger);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img id="Codehighlighter1_797_913_Open_Image" onclick="this.style.display='none'; Codehighlighter1_797_913_Open_Text.style.display='none'; Codehighlighter1_797_913_Closed_Image.style.display='inline'; Codehighlighter1_797_913_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_797_913_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_797_913_Closed_Text.style.display='none'; Codehighlighter1_797_913_Open_Image.style.display='inline'; Codehighlighter1_797_913_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> main(String[] args) </span><span id="Codehighlighter1_797_913_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_797_913_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        QuartzTest qt </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> QuartzTest();<br /><img id="Codehighlighter1_841_859_Open_Image" onclick="this.style.display='none'; Codehighlighter1_841_859_Open_Text.style.display='none'; Codehighlighter1_841_859_Closed_Image.style.display='inline'; Codehighlighter1_841_859_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_841_859_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_841_859_Closed_Text.style.display='none'; Codehighlighter1_841_859_Open_Image.style.display='inline'; Codehighlighter1_841_859_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span style="COLOR: #0000ff">try</span><span style="COLOR: #000000"> </span><span id="Codehighlighter1_841_859_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_841_859_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            qt.test();<br /><img id="Codehighlighter1_881_909_Open_Image" onclick="this.style.display='none'; Codehighlighter1_881_909_Open_Text.style.display='none'; Codehighlighter1_881_909_Closed_Image.style.display='inline'; Codehighlighter1_881_909_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_881_909_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_881_909_Closed_Text.style.display='none'; Codehighlighter1_881_909_Open_Image.style.display='inline'; Codehighlighter1_881_909_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        }</span></span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000"> (Exception e) </span><span id="Codehighlighter1_881_909_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_881_909_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            e.printStackTrace();<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div>代码写得比较简陋，主要是test()方法，大家可以根据自己的实际情况再发挥，例如，如果你是用Web方式改的话，context的获取可以直接从WebApplicationContext中获取。<br /><br />applicationContext.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.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">bean </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="CleanLogJob"</span><span style="COLOR: #ff0000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        class</span><span style="COLOR: #0000ff">="org.springframework.scheduling.quartz.JobDetailBean"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="jobClass"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">com.***.***.biz.log.CleanLogJob</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="jobDataAsMap"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">map</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">entry </span><span style="COLOR: #ff0000">key</span><span style="COLOR: #0000ff">="logService"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                    </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">ref </span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="LogService"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">entry</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">map</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">bean </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="CleanLogJobTrigger"</span><span style="COLOR: #ff0000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        class</span><span style="COLOR: #0000ff">="org.springframework.scheduling.quartz.CronTriggerBean"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="jobDetail"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">ref </span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="CleanLogJob"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="cronExpression"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">0 0 0 * * ?</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">bean </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="BatchJobStarting"</span><span style="COLOR: #ff0000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        class</span><span style="COLOR: #0000ff">="org.springframework.scheduling.quartz.SchedulerFactoryBean"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="triggers"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">list</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">ref </span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="CleanLogJobTrigger"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">list</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">&gt;</span></div><br />网上也有一些其它的解法，但似乎比我这个都要复杂，呵呵。。。<img src ="http://www.blogjava.net/fastzch/aggbug/189790.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-03-31 15:34 <a href="http://www.blogjava.net/fastzch/archive/2008/03/31/189790.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>WebSphere Portal V6.1安装手记</title><link>http://www.blogjava.net/fastzch/archive/2008/03/22/187910.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Sat, 22 Mar 2008 09:40:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/03/22/187910.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/187910.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/03/22/187910.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/187910.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/187910.html</trackback:ping><description><![CDATA[WebSphere Portal 最新的版本是V6.1  Beta3，其下载地址为：<br /><a href="https://www14.software.ibm.com/webapp/download/search.jsp?pn=WebSphere+Portal">https://www14.software.ibm.com/webapp/download/search.jsp?pn=WebSphere+Portal</a><br /><br />最天花了我一晚上来安装，安装主要包括三个部分：<br />1，Portal Express V6.1<br />2，WebSphere Application Server ND V6.1<br />3，DB2 9<br /><br />启动到安装第一步，发现可以选择简体中文，当然，我就直接选择了。<br />安装到最后，提示建议wpdb2ins不成功，原因就是我C盘空间不够了。<br />没办法，删除Portal，删除自动建立的wpdb2ins用户。<br /><br />这次准备好4.5G的安装空间，再次开始安装。<br />这次安装到最后，提示建立portal configuration建立不成功。<br /><br />没办法，只好再次删除掉，然后重装。<br /><br />在前两次安装的过程中，我发现安装界面上显示的是我在安装Portal V6.0.2，这似乎有些不对头。<br />这次我想再也不选中文了。果然，安装界面上的提示正确了。<br />最终经过一个半小时的安装，终于安装成功了。<br /><br />结论：由于Portal V6.1还是Beta版，所以对中文的支持还很差，所以请不要选择使用简体中文的安装程序。<br />安装之后，进入Portal的管理界面，中文依然是不能用的。请把你的概要文件中的语言设置成英文。<img src ="http://www.blogjava.net/fastzch/aggbug/187910.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-03-22 17:40 <a href="http://www.blogjava.net/fastzch/archive/2008/03/22/187910.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Apache Http Server与BEA WebLogic整合手记</title><link>http://www.blogjava.net/fastzch/archive/2008/03/08/184615.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Fri, 07 Mar 2008 16:24:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/03/08/184615.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/184615.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/03/08/184615.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/184615.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/184615.html</trackback:ping><description><![CDATA[
		<p>
				<font color="#ff0000">本Blog所有内容不得随意转载，版权属于作者所有。如需转载请与作者联系（</font>
				<a href="mailto:fastzch@163.com">
						<font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">fastzch@163.com</font>
						<font color="#1a8bc8">
						</font>
				</a>
				<font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">）。<br />未经许可的转载，本人保留一切法律权益。</font>
				<br />
				<br />今天周末，晚上不想那么早就睡去，索性来研究一些小东东，作为一种乐趣。<br />想想，很久以前就一直在看一些有关WebLogic与Apache的文章，但一直没有这种实施的需求，但今天突然想起以前总是将IHS（IBM  Http Server）与WebSphere整合，所以也来搞搞Apache与WebLogic的整合。<br /><br />硬件环境：IBM R50e  （老爷车本本）<br />软件环境：Windows XP SP2, Weblogic 9.2中文版，apache_2.0.63-win32-x86-openssl-0.9.7m.msi<br /><br />Step1，安装WebLogic和Apache，这自然就不必说了，但要提醒大家，装WebLogic的时候，要用custome方式，将plugin勾上，否则呆会儿你会找不到Apache需要的文件。<br /><br />Step2，复制文件，以我机器上安装的实际路径为例：<br />            将C:\bea\weblogic92\server\plugin\win\32目录下的mod_wl_20.so文件复制到<br />                  C:\Program Files\Apache Group\Apache2\modules这个目录下。<br /><br />Step3，修改Apache的httpd.conf文件，增加如下内容：<br />LoadModule weblogic_module modules/mod_wl_20.so<br />&lt;IfModule mod_weblogic.c&gt;<br />   Include conf/Weblogic.conf<br />&lt;/IfModule&gt;<br /><br />Step4，在httpd.conf相同的目录下增加文件 Weblogic.conf(这个文件就是第3步中定义的文件)，内容如下：<br /># Weblogic.conf file<br />WebLogicHost localhost          #看看这里，我们的Apache也可以不跟WebLogic装同一台机器上的<br />WebLogicPort 7001<br />MatchExpression /AAA_Web/**    #比如这是WebLogic上发布的应用的Web Root<br />MatchExpression *.jsp<br />MatchExpression *.do<br />WLLogFile /tmp/wlproxy.log<br />注意，这个文件里面最好不要有多余的空格之类的东西，否则Apache启动时可能报错。<br /><br />Step5，重启Apache，测试。<br />例如原来输入的地址为：<a href="http://192.168.1.30:7001/index_zh_CN.jsp">http://192.168.1.30:7001/index_zh_CN.jsp</a><br />现在只用输入地址：<a href="http://192.168.1.30/index_zh_CN.jsp">http://192.168.1.30/index_zh_CN.jsp</a><br />看到画面，表示成功，已经通过Apache做了转发。<br /><br /><br /></p>
<img src ="http://www.blogjava.net/fastzch/aggbug/184615.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-03-08 00:24 <a href="http://www.blogjava.net/fastzch/archive/2008/03/08/184615.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>广州出差日记（2.15－2.22）</title><link>http://www.blogjava.net/fastzch/archive/2008/02/24/181701.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Sat, 23 Feb 2008 17:14:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/02/24/181701.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/181701.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/02/24/181701.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/181701.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/181701.html</trackback:ping><description><![CDATA[
		<font color="#ff0000">本Blog所有内容不得随意转载，版权属于作者所有。如需转载请与作者联系（</font>
		<a href="mailto:fastzch@163.com">
				<font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">fastzch@163.com</font>
				<font color="#1a8bc8">
				</font>
		</a>
		<font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">）。<br />未经许可的转载，本人保留一切法律权益。</font>
		<br />
		<br />来广州一个星期了，也来记记这些天的流水帐。<br /><br />2008.2.15.<br />一大早，起床往机场赶，路上不堵，11点到机场，今天人真多，大多是春节后回家的人和去工作地的人。排队办登机排，约到11：06分左右，结果告诉我说晚了一分钟，赶紧到18号柜台办理（紧急情况处理柜台），花3秒飞奔向柜台，结果被告知没了座位，只能等下一班了。<br />没办法，等吧，边等边给GF发短信聊天，她说她会带好运给我的，她说她是我的福星，结果还真是的，终于等到了一班三点的飞机，赶忙走紧急通道，过安检都不用排队，真爽，然后直接去登机口，上飞机，还被安排到空警的边上坐着。<br />今天的飞机上的吃食真难吃，小小的一包花生，两口就被我干掉了，由于中午没吃饭，只好把带的干粮拿出来充饥，喝了杯咖啡茶，看看报纸，不一会儿就到广州了。<br />Sean已经帮我租好三房一厅，是一个比较好的小区，业主刚装修不久，比酒店住得舒服多了，正在住处等我，第一次见到Sean，是个阳光帅气的小伙子，人挺不错的，其实公司的同事都挺不错的，呵呵。<br />然后一起去super market买床上用品和生活用品，等我们回到家时，两个人都已经累得不想动了，打了必胜客的电话，叫了外卖，今天觉得这披萨真香，平时都不觉得好吃的东西原来也可以这样香。<br />要命的是，这地方现在还不能上网。<br /><br />2008.2.16<br />周六，没事干，天气晴朗，一大早，学着在广州坐公汽。<br />坐了趟177，去员村二横路那边买了张动感地带的卡，发现广州人就是会赚钱，号码稍微好一点的就是88，很乱的号码也是78元，最终买了个80的，含50元话费，我就纳闷了，在武汉，35块钱可以买个含110块钱话费的号，买完后发现包装上中国移动明明写着“统一零售价50元”，大呼上当。<br />然后赶紧给GF发短信告诉我的新手机号，呵呵。到现在为止也不记得自己的号码。<br />下午，叫了两个保洁公司的人来做卫生，发现她们技术还不错，就是服务态度不够好，还好我心态好，我想这与他们的受教育水平有关，年轻的那位就懂得拿了钱就要做干净的道理，年长的那位就没有这种意识。<br />晚上，同事叫我一起去另一个同事家里做饭吃。<br /><br />2008.2.17<br />周日，还是没事干，一个人步行去super maket逛逛，发现自从跟GF谈朋友后就感染上了购物综合症，看到想要的，想吃的就有冲动，而且还控制不了。不知不觉，又刷去了一百多。<br /><br />2008.2.18<br />周一，一大早穿过天河公园，去见客户，也算是去报到。<br />感受一下另一家大公司的办公环境，工作氛围。觉得环境也就那样，当然比自己公司的环境稍微好一点。觉得比较难以理解的是，那家公司的员工的座位是要以6000块钱一个月的价格分摊到部门成本中去的，所以我去了是没有固定座位的，只能到处打游击。客户也不用我每天都去，每周去一两次就OK了。<br />暗自的想，这正好符合我理想中的状态。<br />工作的内容，对于我来说，也算是轻车熟路，所以不用太担心。<br />客户告诉我，过几天要去佛山呆一段。<br />见到了Mark，不错的客户，人挺好的，热心！<br /><br />2008.2.19<br />今天起就不用去客户那里了，所以在家好好呆着，想工作一下就工作一下。<br />早上9点多才起床，起来后撑撑懒腰，在阳台上晃晃，一上午还没写两行代码，肚子就开始咕咕叫。<br />要命的是，这附近就没什么好吃的快餐。只好去那家“新牛记茶餐厅”试试。<br />吃了那个什么香菇肉片饭，肉片少得可怜，不过我不怕，正好我不太吃荤，那西洋菜，就像我同事所说的一样，广州的菜就像树一样，菜叶子就像树叶子一样。<br />晚上，看《赢在中国》，看到俞敏洪在那里即兴演讲，那是他最擅长的东西，说什么人有两种活法，一种是像草一样，一种是像树一样。<br />看看，同样都是树，在不同人的嘴里，就会有不同的效果。<br /><br />2008.2.20<br />早上，接到steven的电话，有前一个project未处理完的问题，所以得去找个可以上网的地方，搞定那个问题。<br />改好两行代码，然后重新发布应用，一切OK，要命的是另一家厂商的人擅自把他们PHP实现的Web Service服务端的代码改了，本来返回码是一个int型的，结果返回了一个数组给我们，我们的程序中怎么跑也是那一步不成功，奇怪的是e.printStackTrace()居然不能打印出错误信息。最后只好重新写了一个Java Application来做测试，这个错误信息打出来了。<br />到现在为止，也没有想通那样的错误信息为什么打印不出来。有类似经历的朋友可以告诉我为什么，谢谢。<br /><br />2008.2.21<br />周四<br />今天去给客户演示程序开发的进展，客户看了界面说很大气，很高兴能得到客户的认可。<br />又把别人的位子蹭了一天，下周一再去。<br />今天是元宵节，下班了跟两个同事一起去天河公园猜灯谜，结果一个都没猜中，真是笨呀！！！<br />然后又一起去同事家煮汤圆吃。<br /><br /><br />2008.2.22<br />周五<br />今天一天，没有写一行程序。<br />这要是在武汉，可是不可能的事情。<br />下午，ADSL装好了，终于可以上网了，要命的事终于解决了一件，不爽的是，带宽只有512K，自己对自己说：你就知足吧。<br /><br /><br /><img src ="http://www.blogjava.net/fastzch/aggbug/181701.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-02-24 01:14 <a href="http://www.blogjava.net/fastzch/archive/2008/02/24/181701.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Struts与Spring集成时使用AutowiringRequestProcessor产生的问题及解法</title><link>http://www.blogjava.net/fastzch/archive/2008/02/24/181694.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Sat, 23 Feb 2008 16:20:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/02/24/181694.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/181694.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/02/24/181694.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/181694.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/181694.html</trackback:ping><description><![CDATA[
		<font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">本Blog所有内容不得随意转载，版权属于作者所有。如需转载请与作者联系（</font>
		<a href="mailto:fastzch@163.com">
				<font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">fastzch@163.com</font>
		</a>
		<font style="BACKGROUND-COLOR: #ffffff" color="#ff0000">）。<br />未经许可的转载，本人保留一切法律权益。</font>
		<br />
		<br />我曾经在我的文章《<a class="postTitle2" id="homepage1_HomePageDays_DaysList_ctl12_DayItem_DayList_ctl00_TitleUrl" href="/fastzch/archive/2007/11/28/163760.html">搭建SSH时的思考和遇到的几个问题</a>》中写过，我为何要使用AutowiringRequestProcessor来作为Struts与Spring集成时的解决方案，如果不知道这个Processor的作用和不了解用意的朋友，可以再看看那篇文章。<br /><br />今天要说的问题是在使用这个Processor中的一个问题。在那篇文章中，我曾提到过，支持byName和byType两种方式，默认是byType方式，但有时候使用byType可能不行，比如：<br />我想使用Spring自带的声明式事务，这东东很是不错，不用我操心事务的处理，相信大家也都比较喜欢，比如我的事务定义 如下：<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.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">bean </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="TransactionAttributeSource"</span><span style="COLOR: #ff0000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        class</span><span style="COLOR: #0000ff">="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="properties"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">props</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">prop </span><span style="COLOR: #ff0000">key</span><span style="COLOR: #0000ff">="add*"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">PROPAGATION_NESTED</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">prop</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">prop </span><span style="COLOR: #ff0000">key</span><span style="COLOR: #0000ff">="delete*"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">PROPAGATION_NESTED</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">prop</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">props</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">&gt;</span></div>那么我的Service类就应该定义成这样：<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.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">bean </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="groupInfoService"</span><span style="COLOR: #ff0000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        class</span><span style="COLOR: #0000ff">="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="proxyInterfaces"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">list</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                    com.eric.ocgweb.biz.vpmn.IGroupInfoService<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">list</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="target"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">ref </span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="groupInfoServiceImpl"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="transactionManager"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">ref </span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="TransactionManager"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="transactionAttributeSource"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">ref </span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="TransactionAttributeSource"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">&gt;</span></div>然后我还得定义一个groupInfoServiceImpl的Bean，在此省略。<br /><br />根据Spring的DOC所说，如果想使用byName的方式来自动装载，通过如下配置来实现，修改web.xml中对于Struts所用的ActionServlet的定义：<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.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">servlet</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">action</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">servlet-class</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            org.apache.struts.action.ActionServlet<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">servlet-class</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">config</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">/WEB-INF/struts-config.xml</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">autowire</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">byName</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">dependencyCheck</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">true</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">debug</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">3</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">detail</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">3</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">load-on-startup</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">0</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">load-on-startup</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">servlet</span><span style="COLOR: #0000ff">&gt;</span></div><br />但是在我这样修改之后，当应用程序在运行的时候，会提示说找到了两个Bean,一个是groupInfoService，另一个是groupInfoServiceImpl，似乎并没有byName。<br /><br />所以我不得不采用下面这种形式来定义Spring中的Bean：<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.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">bean </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="groupInfoService"</span><span style="COLOR: #ff0000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        class</span><span style="COLOR: #0000ff">="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="proxyInterfaces"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">list</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                    com.eric.ocgweb.biz.vpmn.IGroupInfoService<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">value</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">list</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="target"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">bean </span><span style="COLOR: #ff0000">class</span><span style="COLOR: #0000ff">="com.eric.ocgweb.biz.vpmn.GroupInfoService"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="groupInfoLogic"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                    </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">ref </span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="GroupInfoLogic"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />                </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="transactionManager"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">ref </span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="TransactionManager"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="transactionAttributeSource"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">ref </span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="TransactionAttributeSource"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">&gt;</span></div>这样，自动装载时就只能找到一个Bean的定义了，就不会报不惟一的错了。<img src ="http://www.blogjava.net/fastzch/aggbug/181694.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-02-24 00:20 <a href="http://www.blogjava.net/fastzch/archive/2008/02/24/181694.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Fedora Core 8 使用经验集(不断更新)</title><link>http://www.blogjava.net/fastzch/archive/2008/01/30/178502.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Wed, 30 Jan 2008 05:00:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/01/30/178502.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/178502.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/01/30/178502.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/178502.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/178502.html</trackback:ping><description><![CDATA[最近将工作用的平台全部切换到了Linux平台，选用Fedora Core 8作为OS，使用时候的一些经验和心得记录下来。<br />1，Fedora 8里面没有groupadd命令，这点很奇怪，难道Fedora项目组的人认为大家几乎不用这个命令？<br />不是，原来是你必须在root用户下才能使用这个命令。<br /><br />2，使用mount命令直接挂载一个ISO文件，示例如下：<br />mount －o loop fc8.iso /mnt/fc8<br /><br /><img src ="http://www.blogjava.net/fastzch/aggbug/178502.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-01-30 13:00 <a href="http://www.blogjava.net/fastzch/archive/2008/01/30/178502.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VBA编程心得</title><link>http://www.blogjava.net/fastzch/archive/2008/01/27/178085.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Sun, 27 Jan 2008 15:14:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/01/27/178085.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/178085.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/01/27/178085.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/178085.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/178085.html</trackback:ping><description><![CDATA[最近一直在做Primavera的一些整合工作，我们老大最近喜欢上了Excel，所以我们的做法就是采用Excel作为客户端，服务端采用Java开发的WebService来进行处理，这是一种新的尝试，因为Excel有很强大的功能，所以我们可以少做很多事情，其实这种做法也有一定的好处。<br /><br />以前有接触一下VB，但是VBA还是头一次，说实话，现在对VB/VBA都不是很熟悉，很多语法我都还不会，常常连Debug都要找别人帮忙，呵呵。两周过去了，我居然还搞定了，虽然程序写得很乱，但是还是有不少心得的，所以想在此记录下来，分享给大家。<br /><br />1、终级一招。<br />情景：假如我们想设置一下Excel单元格的样式，如设置成日期显示格式，将2008/01/27显示为1-27，怎么办？像我这样的新手肯定是不会知道该怎么弄的，到底怎么办呀？急死我了。<br />解法：采用宏来录制一个设置日期显示格式的单元格，然后用VBA编辑器打开看看，不就知道了，呵呵。这招是不是很强大？看来如果你不会宏的录制，那就得好好学学了，超级简单的，例如我录制的设置日期的宏显示的代码如下：<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.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">Sub</span><span style="COLOR: #000000"> Macro1()<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008000">'<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />'</span><span style="COLOR: #008000"> Macro1 Macro</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />'</span><span style="COLOR: #008000"> 宏由 Robin 录制，时间: 2008-1-27</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008000"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000">    Selection.NumberFormatLocal </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">m-d;@</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">End Sub</span></div><br />2、VBA是单线程的。<br />情景：如果要用你想像某些软件那样，用户界面看到在做事，而后台又在运行程序的话了，可以自己找一些API来实现，网上也有这样的例子，不过我做过这样的尝试，实现都因为种种原因失败了，因为在自己做的所谓的Thread里面，不能读取Excel的单元格，也不能引用其它库来调用WebService之类的东东，所以当你想这样做的时候，一定要先试试看是不是行得通，行不通就得想想你的架构是不是要改改了。<br />解法：最好是不要用多线程。如果非要用，先要有充分的技术准备。<br /><br />3、找一份好的Excel VBA文档。<br />情景：怎么知道我的Sheet中有多少行数据？怎么办？去搜？文档很重要哟，特别是像我这样的新手。<br />解法：网上有很多，下一份你自己认为好的。如果你们要也可以留下Email我发给你们。<br /><br />暂时写这么多，有心得再来添加。<img src ="http://www.blogjava.net/fastzch/aggbug/178085.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-01-27 23:14 <a href="http://www.blogjava.net/fastzch/archive/2008/01/27/178085.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Fedora Core 8配置SAMBA服务成功</title><link>http://www.blogjava.net/fastzch/archive/2008/01/24/177493.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Thu, 24 Jan 2008 06:29:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/01/24/177493.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/177493.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/01/24/177493.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/177493.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/177493.html</trackback:ping><description><![CDATA[新装了Fedora Core8，虽然我们有可爱的rz/sz命令可用，但是像Windows一样的文件共享更方便，这也我们不得不佩服Windows的地方。同时，我也需要向同事们共享我的文件，所以决定采用SAMBA来配置我的共享服务。<br /><br />1、使用yum命令来安装或更新你的SAMBA包。<br />      yum install samba<br />2、samba的配置文件在如下<br />      /etc/samba/smb.conf<br />      修改其配置如下：<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.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">#</span><span style="COLOR: #000000">=======================</span><span style="COLOR: #000000"> Global Settings </span><span style="COLOR: #000000">=====================================</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="FONT-WEIGHT: bold; COLOR: #800000">[</span><span style="COLOR: #800000">global</span><span style="FONT-WEIGHT: bold; COLOR: #800000">]</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># ----------------------- Netwrok Related Options -------------------------<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># workgroup </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> NT-Domain-Name or Workgroup-Name</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000"> eg: MIDEARTH<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># server string is the equivalent of the NT Description field<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># netbios name can be used to specify a server name not tied to the hostname<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># Interfaces lets you configure Samba to use multiple interfaces<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># If you have multiple network interfaces then you can list the ones<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># you want to listen on (never omit localhost)<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># Hosts Allow/Hosts Deny lets you restrict who can connect</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000"> and you can<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># specifiy it as a per share option as well<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    workgroup </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> robin<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    server string </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> MYSERVER<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    netbios name </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> MYSERVER<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008000">;</span><span style="COLOR: #008000">    hosts allow = 127. 192.168.</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># --------------------------- Logging Options -----------------------------<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># Log File let you specify where to put logs and how to split them up.<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># Max Log Size let you specify the max size log files should reach<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    # logs split per machine<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    log file </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> /var/log/samba/log.%m<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    # max 50KB per log file</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000"> then rotate<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    max log size </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">50</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># ----------------------- Standalone Server Options ------------------------<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># Scurity can be set to user</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000"> share(deprecated) or server(deprecated)<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># Backend to store user information in. New installations should <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># use either tdbsam or ldapsam. smbpasswd is available for backwards <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># compatibility. tdbsam requires no further configuration.<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    security </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> share<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008000">;</span><span style="COLOR: #008000">    encrypt passwords = yes</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000">    guest ok </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> yes<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    guest account </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> root<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />#</span><span style="COLOR: #000000">============================</span><span style="COLOR: #000000"> Share Definitions </span><span style="COLOR: #000000">==============================</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="FONT-WEIGHT: bold; COLOR: #800000">[</span><span style="COLOR: #800000">homes</span><span style="FONT-WEIGHT: bold; COLOR: #800000">]</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    comment </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> Home Directories<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    browseable </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> no<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    writable </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> yes<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008000">;</span><span style="COLOR: #008000">    valid users = %S</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    valid users = MYDOMAIN\%S</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="FONT-WEIGHT: bold; COLOR: #800000">[</span><span style="COLOR: #800000">printers</span><span style="FONT-WEIGHT: bold; COLOR: #800000">]</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    comment </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> All Printers<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    path </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> /var/spool/samba<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    browseable </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> no<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008000">;</span><span style="COLOR: #008000">    guest ok = no</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    writable = No</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000">    printable </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> yes<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># Un-comment the following and create the netlogon directory for Domain Logons<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008000">;</span><span style="COLOR: #008000">    [netlogon]</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    comment = Network Logon Service</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    path = /var/lib/samba/netlogon</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    guest ok = yes</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    writable = no</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    share modes = no</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># Un-comment the following to provide a specific roving profile share<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># the default is to use the user's home directory<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008000">;</span><span style="COLOR: #008000">    [Profiles]</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    path = /var/lib/samba/profiles</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    browseable = no</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    guest ok = yes</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># A publicly accessible directory</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000"> but read only</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000"> except for people in<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /># the </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">staff</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> group<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008000">;</span><span style="COLOR: #008000">    [public]</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    comment = Public Stuff</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    path = /home/samba</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    public = yes</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    writable = yes</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    printable = no</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />;</span><span style="COLOR: #008000">    write list = +staff</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="FONT-WEIGHT: bold; COLOR: #800000">[</span><span style="COLOR: #800000">temp</span><span style="FONT-WEIGHT: bold; COLOR: #800000">]</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    path </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> /root/temp<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    writeable </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> yes<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008000">;</span><span style="COLOR: #008000">    browseable = yes</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000">    guest ok </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> yes</span></div><br />3、重启SAMBA服务<br />      /etc/init.d/smb restart<br /><br />4、Enjoy<br /><br />PS:Fedora Core从V2起都有预装SELinux，这个不会配置的可以先把她关掉，关闭的方法如下：<br />      修改/etc/selinux/config文件中的SELINUX="" 为 disabled ，然后重启FC<img src ="http://www.blogjava.net/fastzch/aggbug/177493.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-01-24 14:29 <a href="http://www.blogjava.net/fastzch/archive/2008/01/24/177493.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>不会安装solaris的兄弟姐妹们有福了</title><link>http://www.blogjava.net/fastzch/archive/2008/01/22/176877.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Mon, 21 Jan 2008 16:31:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/01/22/176877.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/176877.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/01/22/176877.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/176877.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/176877.html</trackback:ping><description><![CDATA[
		<p>
				<font style="BACKGROUND-COLOR: #b7e8bd">夜己深，我还在网上闲逛，在家里其实很少有这样的心情来学习一些东西和上网看看资料。<br />闲逛中发现了Solaris安装宝典，所以拿来与大家共享。<br /><br />有空的朋友可以下载下来安装一下，顺便也学习一下。<br />近段时间老在网上看到“如果没有D版的WINDOWS可用怎么办？”的讨论。<br />还有做开发的朋友我想也应该经常看到招聘条件上总写着熟悉Linux或Unix系统之类的话。<br /><br />不多说了，文件下载地址如下：<br /><a href="http://events.csdn.net/solaris/solaris10/article/0_booksolaris.exe">http://events.csdn.net/solaris/solaris10/article/0_booksolaris.exe</a><br /><br />PS：前段时间操作一套客户的环境，全是solaris的OS，搞得我现在想起退格的时候都还只往DELETE键上按。</font>
		</p>
<img src ="http://www.blogjava.net/fastzch/aggbug/176877.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-01-22 00:31 <a href="http://www.blogjava.net/fastzch/archive/2008/01/22/176877.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux&amp;Unit命令学习(三) </title><link>http://www.blogjava.net/fastzch/archive/2008/01/21/176869.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Mon, 21 Jan 2008 15:58:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/01/21/176869.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/176869.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/01/21/176869.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/176869.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/176869.html</trackback:ping><description><![CDATA[
		<p>最近两周，一直在做一些VBA的事情，一直想把工作用的系统切换到Linux平台，但是还是没有办法做到完整的切换。但继续学习Linux命令不会止步，我会继续努力。<br /><br />2008.1.21.<br />本周来学习后台命令：<br />cron 系统调度进程。使用它在每天或一个循环周期中完成作业。<br />At 使用它在一个特定的时间运行一些特殊的作业。<br />＆　使用它在后台运行一个占用时间不长的进程。<br />Nohup 使用它在后台运行一个命令，即使用户退出时也不受影响。<br /><br />crontab命令允许用户提交、编辑或删除相应的作业。每一个用户都可以有一个crontab文件来保存调度信息，系统管理员通过cron.deny和cron.allow这两个文件来禁止或允许用户拥有自己的crontab文件。<br />crontab的域：<br />分钟　小时　日　月　星期　要运行的命令<br />可以用－来表示一个时间范围，域中可以用逗号(,)表示多个选项，用＊表示连续的时间段。<br />命令格式：crontab [-u user] -e -l -r<br /><br />根用户可以通过/etc目录下的at.allow和at.deny文件来控制哪些用户可以使用at命令，哪些用户不行。<br />at命令格式：at [-f script] [-m -l -r] [time] [date]<br /><br />nohup命令格式：nohup command &amp;<br />默认会将该作业的所有输出重定向到一个名为nohup.out的文件中，可以指定输出文件，如下：<br />nohup command &gt;myout.file 2&gt;&amp;1</p>
<img src ="http://www.blogjava.net/fastzch/aggbug/176869.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-01-21 23:58 <a href="http://www.blogjava.net/fastzch/archive/2008/01/21/176869.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Weblogic问题解决收集</title><link>http://www.blogjava.net/fastzch/archive/2008/01/21/176859.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Mon, 21 Jan 2008 14:53:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/01/21/176859.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/176859.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/01/21/176859.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/176859.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/176859.html</trackback:ping><description><![CDATA[1,Weblogic改密码后不能启动的解决办法：<br />修改domain下面的config.xml、fileRealm.properties、SerializedSystemIni.dat文件，<br />为了安全起见，先把config.xml、fileRealm.properties、SerializedSystemIni.dat文件备份出来，然后新建一个叫fileRealm.properties的文件，其内容为：user.system=weblogic ，其中weblogic就是您想要的明文的密码，在doc窗口下，调用setEnv脚本设置相关的环境变量，然后执行：<br />java weblogic.security.acl.internal.FileRealm fileRealm.properties SerializedSystemIni.dat<br />最后把原来备份过的acl、group的信息copy到新的fileRealm.properties下面，然后见config.xml里面的加密密码改成新的密码即可。重新启动server之后即可。<br /><img src ="http://www.blogjava.net/fastzch/aggbug/176859.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-01-21 22:53 <a href="http://www.blogjava.net/fastzch/archive/2008/01/21/176859.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>XFire完整入门教程</title><link>http://www.blogjava.net/fastzch/archive/2008/01/03/172535.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Thu, 03 Jan 2008 09:53:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2008/01/03/172535.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/172535.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2008/01/03/172535.html#Feedback</comments><slash:comments>26</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/172535.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/172535.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 网上关于XFire入门的教程不少，要么是讲得很简单，就像Hello World一样的程序，要么就是通过IDE集成的工具来开发的，这对于不同的人群有诸多不便，关于XFire的一些详细的信息就不再多讲，可以参考官方网站和相关的文档，这里讲一个完整的入门实例。实例中包括三个情况，我想基本上可以概括所有的需求，或者自己稍加扩展即可。先来看看我们的Interface。 1package test; 2 3i...&nbsp;&nbsp;<a href='http://www.blogjava.net/fastzch/archive/2008/01/03/172535.html'>阅读全文</a><img src ="http://www.blogjava.net/fastzch/aggbug/172535.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2008-01-03 17:53 <a href="http://www.blogjava.net/fastzch/archive/2008/01/03/172535.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux&amp;Unit命令学习(二)</title><link>http://www.blogjava.net/fastzch/archive/2007/12/28/171069.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Fri, 28 Dec 2007 01:33:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2007/12/28/171069.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/171069.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2007/12/28/171069.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/171069.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/171069.html</trackback:ping><description><![CDATA[
		<p>Linux&amp;Unit命令学习的计划已经有两周停止了，原因很简单，12月11－14号去参加BEA World 2007大会，以及回来后的一周在处理很多落下的事，所以一直没继续学习总结，不过这周幸好都在操作solaris。我一向都认为学东西必须要结合实践，最好有实际的实战。慢慢来补上落下的学习内容吧。<br /><br />链接：<a title="Linux&amp;Unit命令学习 " href="/fastzch/archive/2007/11/26/163138.html" target="_blank">Linux&amp;Unit命令学习</a><br /><br /><strong>2007.12.28</strong><br />find命令的一般形式为：<br />find pathname -options [-print -exec -ok]<br />-exec表示命令对匹配的文件执行该参数所给出的shell命令。相应的形式为'command' {} \;<br />-ok跟-exec差不多，但执行前会提示用户确定是否执行。<br />options有很多选项，其中有以下一些项目：name,perm,prune,user,group,mtime -n +n,nogroup,nouser,newer file1 !file2(查找更改时间比文件file1新但比文件file2旧的文件),type,size n[c],depth,fstype,mount,follow,cpio(对匹配的文件进行备份，到磁带设备中).</p>
		<p>样例：<br />查找文件名以a或b开头的，可执行文件，并调用ls命令显示其详细信息<br />find . -name '[a-b]*' -perm 755 -exec ls -l {} \;<br />查找更改时间为5天内的文件<br />find . -mtime -5<br />列出所有的目录名<br />find . -type d</p>
		<p>
				<br />xargs可以使用户对所匹配到的文件执行几乎所有的命令，而不会受到命令长度的限制。如：<br />find . -name '*.txt' -type f|xargs grep "ttt"<br />搜索所有txt文件，并找出这些文档中存在ttt字串的文件。</p>
<img src ="http://www.blogjava.net/fastzch/aggbug/171069.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2007-12-28 09:33 <a href="http://www.blogjava.net/fastzch/archive/2007/12/28/171069.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>WebLogic通过命令部署应用</title><link>http://www.blogjava.net/fastzch/archive/2007/12/27/170946.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Thu, 27 Dec 2007 09:17:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2007/12/27/170946.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/170946.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2007/12/27/170946.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/170946.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/170946.html</trackback:ping><description><![CDATA[
		<p>没有IE的日子现在真是不方便，看看Mouse&amp;Window给我们带来的便利。不扯蛋了，说正题。<br /><br />WebLogic为我们提供了weblogic.Deployer这个Class来进行deploy的工作，即使在我们没有browser的情况下也可以发布程序，当然我上一篇BLOG中有讲text browser--<a title="Solaris下Lynx的安装 " href="/fastzch/archive/2007/12/26/170567.html" target="_blank">Lynx</a>，发现还真的不是很好用，有些功能还不知道怎么用，比如核对框就不知道怎么选中。<br /><br />先来看个实例，我发布时用到的具体命令如下：<br />wlslib=/export/home/bea/weblogic/weblogic81/server/lib<br />export wlslib<br />java -cp $wlslib/weblogic.jar:$wlslib/wlepool.jar:$wlslib/wleorb.jar weblogic.Deployer -adminurl iiop://localhost:7001/ -username weblogic -password weblogic -targets CMSServer -deploy /export/home/bea/weblogic/user_projects/domains/mydomain/cms<br /><br />当然你也可以不像我这样，只要确保weblogic.jar,wlepool.jar,wleorb.jar在classpath中即可。<br />看到了吧，其实很简单，下面来看看这个命令的参数：<br />Usage: java weblogic.Deployer [options] [actions] [File(s)]<br />where options include:<br />    -adminurl &lt;&lt;protocol&gt;://&lt;server&gt;:&lt;port&gt;&gt; Administration server URL:<br />                      default iiop://localhost:7001<br />    -username &lt;username&gt; user name<br />    -password &lt;password&gt; password for the user<br />    -examples         Displays example usage of this tool.<br />    -name &lt;application name&gt; Defaults to the basename of the deployment<br />                      file or directory.<br />    -targets &lt;&lt;target(s)&gt;&gt; A comma separated list of targets for the<br />                      current operation. If not specified, all<br />                      configured targets are used. For a new<br />                      application, the default target is the<br />                      administration server.<br />    -deploy           Make an application available for service.<br />    -redeploy         Replace a running application partially or<br />                      entirely.<br />    -undeploy         Take an application out of service.<br /><br />再来看看一些官方的examples吧：<br />（执行如下命令可得：java -cp $wlslib/weblogic.jar:$wlslib/wlepool.jar:$wlslib/wleorb.jar weblogic.Deployer -examples）<br />Deploy application on admin server:<br />java weblogic.Deployer -adminurl url -username username -password password<br />-name myapp -deploy c:/myapps/myapp.ear</p>
		<p>Deploy individual modules in application to different targets:<br />java weblogic.Deployer -adminurl url -username username -password password<br />-name myapp -targets <a href="mailto:mywar@webserver,myjar@ejbserver">mywar@webserver,myjar@ejbserver</a> -deploy <br />c:/myapps/myapp.ear</p>
		<p>Undeploy application from specified targets:<br />java weblogic.Deployer -adminurl url -username username -password password<br />-name myapp -undeploy -targets server1,server2..</p>
		<p>Redeploy application on current targets:<br />java weblogic.Deployer -adminurl url -username username -password password<br />-name myapp -redeploy </p>
		<p>Redeploy individual module in an application:<br />java weblogic.Deployer -adminurl url -username username -password password<br />-name myapp -redeploy -targets <a href="mailto:moduleA@serverA,moduleA@serverB">moduleA@serverA,moduleA@serverB</a></p>
		<p>Partially redeploy, for example, to update a JSP in a exploded webapp:<br />java weblogic.Deployer -adminurl url -username username -password password<br />-name myapp -redeploy mywar/index.jsp</p>
		<p>        The path of JSP to be updated is relative to the root of the<br />        application. If a directory is specified the entire subtree is updated.</p>
		<p>Multiple servers sharing the same physical deployment:<br />java weblogic.Deployer -adminurl url -username username -password password<br />-name myapp -targets server1,server2 -nostage -deploy c:/myapps/myapp.ear </p>
		<p>        The -nostage option indicates that the application is available<br />        on all target servers at the same path and hence server should not copy<br />        files to the managed servers.    <br /><br />这些英文都很简单，相信不用再多说了。<br /><br />附：<br />1、你可能在发布时遇到这个问题：<br /> &lt;Error&gt; &lt;Management&gt; &lt;BEA-141150&gt; &lt;An error occurred while preparing application component of application Adquira:Location=ServerDC1,Name=adquira,Type=ApplicationConfig with HTTP response 500: Internal Server Error ).&gt;<br />出现此问题的原因是因为发布的对象超过了200M.<br />2、这几天用Solaris的命令行用太多了，没办法，现在在Windows下BackSpace键都习惯性的去按Delete键了。嘻嘻  :)<br />以上所用版本为WLS8.1SP5。</p>
<img src ="http://www.blogjava.net/fastzch/aggbug/170946.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/fastzch/" target="_blank">Robin's Java World</a> 2007-12-27 17:17 <a href="http://www.blogjava.net/fastzch/archive/2007/12/27/170946.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Solaris下Lynx的安装</title><link>http://www.blogjava.net/fastzch/archive/2007/12/26/170567.html</link><dc:creator>Robin's Java World</dc:creator><author>Robin's Java World</author><pubDate>Wed, 26 Dec 2007 05:35:00 GMT</pubDate><guid>http://www.blogjava.net/fastzch/archive/2007/12/26/170567.html</guid><wfw:comment>http://www.blogjava.net/fastzch/comments/170567.html</wfw:comment><comments>http://www.blogjava.net/fastzch/archive/2007/12/26/170567.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/fastzch/comments/commentRss/170567.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/fastzch/services/trackbacks/170567.html</trackback:ping><description><![CDATA[
		<p>这两天上线一套系统，客户提供一堆Solaris的服务器给我，但是有超级严格的fireware，我只能通过一个跳板式的Server去操作其它Server，全是文本界面，导致我上线系统不知道是不是真的有装好，所以我需要验证一下，怎么办？还是用text browser吧，这次我选用的是Lynx，其官方网站为：<a href="http://lynx.isc.org/">http://lynx.isc.org/</a><br />我选用的版本是：Lynx 2.8.5<br /><br />1、先下载ZIP档，然后用unzip 命令解压。<br />$unzip lynx-2.8.5.zip<br />2、进入安装目录：<br />$cd lynx-2-8-5<br /><br />3、安装命令如下：</p>
		<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.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">./</span>
				<span style="COLOR: #000000">configure </span>
				<span style="COLOR: #000000">--</span>
				<span style="COLOR: #000000">prefix</span>
				<span style="COLOR: #000000">=/</span>
				<span style="COLOR: #000000">usr </span>
				<span style="COLOR: #000000">--</span>
				<span style="COLOR: #000000">libdir</span>
				<span style="COLOR: #000000">=/</span>
				<span style="COLOR: #000000">etc </span>
				<span style="COLOR: #000000">--</span>
				<span style="COLOR: #000000">without</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">ssl </span>
				<span style="COLOR: #000000">--</span>
				<span style="COLOR: #000000">with</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">zlib </span>
				<span style="COLOR: #000000">&amp;&amp;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />make </span>
				<span style="COLOR: #000000">&amp;&amp;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />make install </span>
				<span style="COLOR: #000000">&amp;&amp;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />make DOCDIR</span>
				<span style="COLOR: #000000">=/</span>
				<span style="COLOR: #000000">usr</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">share</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">doc</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">2</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">8</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">5</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx_doc </span>
				<span style="COLOR: #000000">\</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />   HELPDIR</span>
				<span style="COLOR: #000000">=/</span>
				<span style="COLOR: #000000">usr</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">share</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">doc</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">2</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">8</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">5</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx_help install</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">doc </span>
				<span style="COLOR: #000000">&amp;&amp;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />make DOCDIR</span>
				<span style="COLOR: #000000">=/</span>
				<span style="COLOR: #000000">usr</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">share</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">doc</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">2</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">8</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">5</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx_doc </span>
				<span style="COLOR: #000000">\</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />   HELPDIR</span>
				<span style="COLOR: #000000">=/</span>
				<span style="COLOR: #000000">usr</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">share</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">doc</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">2</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">8</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #800000">5</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx_help install</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">help </span>
				<span style="COLOR: #000000">&amp;&amp;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />sed s</span>
				<span style="COLOR: #000000">/</span>
				<span style="FONT-WEIGHT: bold; COLOR: #000000">"</span>
				<span style="FONT-WEIGHT: bold; COLOR: #000000">t\/etc</span>
				<span style="FONT-WEIGHT: bold; COLOR: #000000">"</span>
				<span style="COLOR: #000000">/</span>
				<span style="FONT-WEIGHT: bold; COLOR: #000000">"</span>
				<span style="FONT-WEIGHT: bold; COLOR: #000000">t\/usr\/share\/doc\/lynx\-2\-8\-5</span>
				<span style="FONT-WEIGHT: bold; COLOR: #000000">"</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #000000">\</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />   </span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">etc</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx</span>
				<span style="COLOR: #000000">.</span>
				<span style="COLOR: #000000">cfg </span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">etc</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx</span>
				<span style="COLOR: #000000">.</span>
				<span style="COLOR: #000000">bak </span>
				<span style="COLOR: #000000">&amp;&amp;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />mv </span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">etc</span>
				<span style="COLOR: #000000">/</span>
				<span style="COLOR: #000000">lynx</sp