﻿<?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-谈笑有鸿儒，往来无白丁-文章分类-webserver</title><link>http://www.blogjava.net/badboyryan/category/12923.html</link><description>&lt;hr color=red&gt;
&lt;marquee  direction=left bgcolor= aaaaee behavior=scroll scrollamount=2 onmouseover="this.stop();" onmouseout="this.start();" width=500&gt;
&lt;font color=green&gt; 在恰当的时间、地点以恰当的方式表达给恰当的人...&lt;/font&gt;&amp;nbsp;&amp;nbsp;&lt;font color=blue&gt;阅读的时候请注意分类，佛曰我日里面是谈笑文章，其他是各个分类的文章，积极的热情投入到写博的队伍中来，支持blogjava做大做强！向dudu站长致敬&gt;&gt; &gt;  （qq群侠客岛:26858781）&lt;/font&gt;
&lt;/marquee&gt; 
&lt;hr color=blue&gt;
&lt;marquee  direction=right bgcolor= aabbee behavior=scroll scrollamount=2 onmouseover="this.stop();" onmouseout="this.start();" width=500&gt;
&lt;font color=green&gt;精品推荐:&lt;/font&gt;&lt;a href="http://www.blogjava.net/badboyryan/category/13259.html"&gt;谈笑有鸿儒&lt;/a&gt;
&amp;nbsp;&amp;nbsp;&lt;font color=green&gt;&lt;a href="http://www.blogjava.net/badboyryan/category/14653.html"&gt;&lt;font color=red&gt;资源整合，门户网站&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;
&lt;a href="http://www.blogjava.net/badboyryan/category/15148.html"&gt;JAVA名人堂&lt;/a&gt;
&lt;/marquee&gt; 
&lt;hr color=red&gt;</description><language>zh-cn</language><lastBuildDate>Tue, 27 Feb 2007 10:01:16 GMT</lastBuildDate><pubDate>Tue, 27 Feb 2007 10:01:16 GMT</pubDate><ttl>60</ttl><item><title>TRS欢乐、浪漫日照行</title><link>http://www.blogjava.net/badboyryan/articles/68199.html</link><dc:creator>谈笑有鸿儒</dc:creator><author>谈笑有鸿儒</author><pubDate>Thu, 07 Sep 2006 02:37:00 GMT</pubDate><guid>http://www.blogjava.net/badboyryan/articles/68199.html</guid><wfw:comment>http://www.blogjava.net/badboyryan/comments/68199.html</wfw:comment><comments>http://www.blogjava.net/badboyryan/articles/68199.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/badboyryan/comments/commentRss/68199.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/badboyryan/services/trackbacks/68199.html</trackback:ping><description><![CDATA[
		<a href="http://www.trs.com.cn/company/wenhua/t20060807_5364.htm">http://www.trs.com.cn/company/wenhua/t20060807_5364.htm</a>
		<br />
		<br />如果你在作方案的时候，我推荐一下TRS作全文检索内容管理之用<br /><br />http://www.sdjtcx.com<br /><br />上面的探路者搜索引擎就是TRS实现的效果，下一篇文档写写trs的设计<br /><br />待续....<img src ="http://www.blogjava.net/badboyryan/aggbug/68199.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/badboyryan/" target="_blank">谈笑有鸿儒</a> 2006-09-07 10:37 <a href="http://www.blogjava.net/badboyryan/articles/68199.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Can't find java executable in d:\jdk5 </title><link>http://www.blogjava.net/badboyryan/articles/67689.html</link><dc:creator>谈笑有鸿儒</dc:creator><author>谈笑有鸿儒</author><pubDate>Mon, 04 Sep 2006 14:50:00 GMT</pubDate><guid>http://www.blogjava.net/badboyryan/articles/67689.html</guid><wfw:comment>http://www.blogjava.net/badboyryan/comments/67689.html</wfw:comment><comments>http://www.blogjava.net/badboyryan/articles/67689.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/badboyryan/comments/commentRss/67689.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/badboyryan/services/trackbacks/67689.html</trackback:ping><description><![CDATA[Can't find java executable in d:\jdk5<br />Couldn't start  "(null)" -classpath "d:\jdk5 \lib\tools.jar -Djava.util.logging.manager=com.caucho.log.LogManagerImpl<br />-Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl com.cau<br />cho.server.resin.Resin -socketwait 1126. <br />发生上面的提示是在运行httpd.exe的时候报的错误，错误的原因是java_home设置的时候在变量值的后面居然多了一个空格，奥天呢，这种错误可不能发生在我们搞技术的人身上阿，幸好是发生在BOSS身上的事情不然，道上的弟兄们知道了可怎么混阿！<img src ="http://www.blogjava.net/badboyryan/aggbug/67689.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/badboyryan/" target="_blank">谈笑有鸿儒</a> 2006-09-04 22:50 <a href="http://www.blogjava.net/badboyryan/articles/67689.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>计算机关闭很慢，WINDOWS在背后干了什么，如何解决？</title><link>http://www.blogjava.net/badboyryan/articles/66850.html</link><dc:creator>谈笑有鸿儒</dc:creator><author>谈笑有鸿儒</author><pubDate>Thu, 31 Aug 2006 06:00:00 GMT</pubDate><guid>http://www.blogjava.net/badboyryan/articles/66850.html</guid><wfw:comment>http://www.blogjava.net/badboyryan/comments/66850.html</wfw:comment><comments>http://www.blogjava.net/badboyryan/articles/66850.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/badboyryan/comments/commentRss/66850.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/badboyryan/services/trackbacks/66850.html</trackback:ping><description><![CDATA[
		<p>
				<font size="2">The idea of this program is to reclaim resources when a task is finished (memory, handles, etc). It accomplishes this by monitoring for users to log off and verifying that unused resources are reclaimed. This approach is superior as it works for any known reason that profiles do not unload and also will keep working to address new unknown issues</font>
				<a href="/Files/badboyryan/profileclean.rar">
						<br />
						<br />http://www.blogjava.net/Files/badboyryan/profileclean.rar</a>   <br /><br />下载、解压缩、运行<br /><br />关机试试看<br /><br />声明：是MicroSoft发布的</p>
<img src ="http://www.blogjava.net/badboyryan/aggbug/66850.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/badboyryan/" target="_blank">谈笑有鸿儒</a> 2006-08-31 14:00 <a href="http://www.blogjava.net/badboyryan/articles/66850.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Portlet Session处理-转载</title><link>http://www.blogjava.net/badboyryan/articles/60943.html</link><dc:creator>谈笑有鸿儒</dc:creator><author>谈笑有鸿儒</author><pubDate>Mon, 31 Jul 2006 02:07:00 GMT</pubDate><guid>http://www.blogjava.net/badboyryan/articles/60943.html</guid><wfw:comment>http://www.blogjava.net/badboyryan/comments/60943.html</wfw:comment><comments>http://www.blogjava.net/badboyryan/articles/60943.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/badboyryan/comments/commentRss/60943.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/badboyryan/services/trackbacks/60943.html</trackback:ping><description><![CDATA[
		<table cellspacing="0" cellpadding="0" width="98%" align="center" border="0">
				<tbody>
						<tr>
								<td bgcolor="#e8e8e8" height="30">
										<div align="center">
												<font color="#ff0000" size="4">
														<strong>Portal开源实现-Liferay的Portlet Session处理(1)</strong>
												</font>
										</div>
								</td>
						</tr>
						<tr>
								<td>
										<!--内容开始-->
										<p>一、规范中的SESSION描述</p>
										<p>（PortletSession objects must be scoped at the portlet application context level. Each portlet application has its own distinct PortletSession object per user session. The portlet container must not share the PortletSession object or the attributes stored in it among different portlet applications or among different user sessions.）<br />上面这段话是portlet规范里的一段。很明白的可以看出，每个Portlet Application应该在Process Action和Render的时候应该拥有自己私有的Session对象，来为当前用户服务。也就是说，如果某一个用户在一个PORTAL系统中操作不同的PORTLET，而且这些PORTLET属于不同的PORTLET APPLICATION，则，这个用户将操作多个SESSION对象，用户在每个PORTLET中操作SESSION时，这个SESSION都将是属于该PORTLET所在的上下文的私有SESSION 对象。比如，用户当前页面有三个PORTLET，每个PORTLET都属于不同的PORTLET APPLICATION。则当该用户在第一个PORTLET里面有对SESSION的操作后，该PORTLET所属的APPLICATION将为这个用户生成一个SESSION；当该用户又操作第二个PORTLET中的SESSION时，该上下文有会对此用户产生一个新的SESSION对象；第三个依然如此。加上PORTAL系统的SESSION，也就是该用户实际和四个SESSION在大交道。</p>
										<p>另外要说明一点的是，PORTLET APPLICATION和WEB APPLICATION的关系。规范中有如下的定义：<br />（Portlets, servlets and JSPs are bundled in an extended web application called portlet application. Portlets, servlets and JSPs within the same portlet application share class loader, application context and session. ）<br />这说明PORTLET APPLICATION其实就是一个WEB APPLICATION。规范中还有一段话更是说明了这个问题，同时也强调了PORTLET SESSION 和普通的该APPLICATION的SESSION的关系：<br />（A Portlet Application is also a Web Application. The Portlet Application may contain servlets and JSPs in addition to portlets. Portlets, servlets and JSPs may share information through their session. The PortletSession must store all attributes in the HttpSession of the portlet application. A direct consequence of this is that data stored in the HttpSession by servlets or JSPs is accessible to portlets through the PortletSession in the portlet application scope. Conversely, data stored by portlets in the PortletSession in the portlet application scope is accessible to servlets and JSPs through the HttpSession. If the HttpSession object is invalidated, the PortletSession object must also be invalidated by the portlet container. If the PortletSession object is invalidated by a portlet, the portlet container must invalidate the associated HttpSession object.）</p>
										<p>最后一点要说明的是怎样得到PORTLET SESSION对象。规范中有这样一个例子：<br />PortletSession session = request.getSession(true);<br />URL url = new URL(“http://www.foo.com“);<br />session.setAttribute(“home.url”,url,PortletSession.APPLICATION_SCOPE);<br />session.setAttribute(“bkg.color”,”RED”,PortletSession.PORTLET_SCOPE);</p>
								</td>
						</tr>
				</tbody>
		</table>
<img src ="http://www.blogjava.net/badboyryan/aggbug/60943.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/badboyryan/" target="_blank">谈笑有鸿儒</a> 2006-07-31 10:07 <a href="http://www.blogjava.net/badboyryan/articles/60943.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jsp环境:IIS6.0与Resin_3.0.8的整合</title><link>http://www.blogjava.net/badboyryan/articles/57423.html</link><dc:creator>谈笑有鸿儒</dc:creator><author>谈笑有鸿儒</author><pubDate>Mon, 10 Jul 2006 01:37:00 GMT</pubDate><guid>http://www.blogjava.net/badboyryan/articles/57423.html</guid><wfw:comment>http://www.blogjava.net/badboyryan/comments/57423.html</wfw:comment><comments>http://www.blogjava.net/badboyryan/articles/57423.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/badboyryan/comments/commentRss/57423.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/badboyryan/services/trackbacks/57423.html</trackback:ping><description><![CDATA[转载：<a href="http://www.gamvan.com/web/jsp/2005/1/233.html">http://www.gamvan.com/web/jsp/2005/1/233.html</a><br /><br />       
<p>经过两天的尝试，今天终于将整合了IIS6.0和Resin_3.0.8。下面我把这两天的心得写出来与大家交流一下。<br />    在此之前，我想从网上找些资料。不过，关于IIS与Resin整合的文章很少，而有关IIS6.0整合的文章就更少了。到Resin的官方<a href="http://www.gamvan.com/web/" target="_blank">网站</a>上，虽然是有关IIS与Resin整合的文章。不过是英文，而且版本很低，是Resin_2.1的。最后只有一点一点的摸索。后来又看到了Resin_3.0.8里面自带的文档中有一部分是关于IIS6.0与Resin_3.0.8整合的内容。按照上面说的，终于将IIS6.0与Resin_3.0.8整合好了。Resin的官方文挡写的不是很清楚。特别有些地方很中文版的IIS6.0有些出入。<br />    1、安装好J2SDK和Resin.（我J2SDK是安装在D:\J2SDK下的，Resin是解压缩在D:\Resin_3.0.8文件夹下的）。<br />    2、环境变量。在我的电脑上单击鼠标右键→属性→高级→环境变量。<br />         1）新建两个系统变量（单击下面的新建）：<br />         ①变量名：JAVA_HOME<br />           变量值：D:\J2SDK（J2SDK安装的目录）<br />         ②变量名：classpath<br />           变量值：.;%JAVA_HOME%\lib\tools.jar（注：前面是一个小数点加个分<br />                   号，直接复制就可以）<br />         ③变量名：RESIN_HOME<br />           变量值：D:\Resin_3.0.8（Resin安装的目录）<br />         2）编辑系统变量Path<br />           在变量值后面追加;%JAVA_HOME%\bin\<br />    3、复制文件。在windows2003下面是不能使用Rensin_3.0.8\bin\setup.exe。运行setup回报错。这就需要我们自己来复制文件。我的IIS是安装在C:\Inetpub下的。<br />         1）C:\Inetpub下面新建一个文件夹，重命名为scripts<br />         2）把Rensin_3.0.8\libexec下的isapi_srun.dll复制到<br />            C:\Inetpub\scripts下<br />         3）在C:\Inetpub\scripts新建一个resin.ini文件。<br />            文件内容下面两行数据：<br />            ResinConfigServer localhost 6802<br />            IISPriority high<br />            （官方的文档上说只有需要建立多个站点的时候才必须使用<br />             resin.ini。如果只有一个站点就没必要新建resin.ini。推荐使用）<br />    4、设置IIS。<br />         1）在默认<a href="http://www.gamvan.com/web/" target="_blank">网站</a>上单击右键→属性→ISAPI筛选器→添加<br />            筛选器名称：Resin_3.0.8（可随便填）<br />            可执行文件：C:\Inetpub\scripts\isapi_srun.dll<br />         2）在默认<a href="http://www.gamvan.com/web/" target="_blank">网站</a>上单击右键→新建→虚拟目录<br />            别名：scripts<br />            本地路径：C:\Inetpub\scripts<br />         3）单击WEB服务扩展→添加一个新的WEB服务扩展<br />            扩展名：Resin（可随便添）<br />            要求文件：C:\Inetpub\scripts\isapi_srun.dll<br />            选中设置扩展状态为允许<br />    5、设置Resin_3.0.8\conf\resin.conf。<br />       在文件中找到（大概是在最后）<br />       &lt;host id=''&gt;<br />         &lt;document-directory&gt;doc&lt;/document-directory&gt;<br />       改成<br />       &lt;host id=''&gt;<br />         &lt;document-directory&gt;c:/inetpub/wwwroot&lt;/document-directory&gt;<br />       （c:/inetpub/wwwroot，为你的默认<a href="http://www.gamvan.com/web/" target="_blank">网站</a>的目录）<br />    好，到这里，我们就完全设置完了。<br />    然后先运行net stop w3svc关闭IIS服务。<br />    再运行net start w3svc重新启动IIS。<br />    打开Resin_3.0.8\bin\httpd.exe。<br />    现在IIS6.0与Resin_3.0.8已经成功整合了。我们可以将httpd.exe作为服务启动。那么，计算机启动的时候就会启动httpd.exe。<br />    安装服务<br />    d:\resin_3.0.8\bin\httpd.exe -install<br />    取消服务<br />    d:\resin_3.0.8\bin\httpd.exe -remove</p><p>    IIS6.0与Resin_3.0.8的整合困扰了我好几天。现在写出来跟大家交流一下。有什么错误请大家指出来。</p><img src ="http://www.blogjava.net/badboyryan/aggbug/57423.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/badboyryan/" target="_blank">谈笑有鸿儒</a> 2006-07-10 09:37 <a href="http://www.blogjava.net/badboyryan/articles/57423.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>