<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[friend365]]></title>
<link>http://www.friend365.cn/</link>
<description><![CDATA[敬业是对渴望成功的人对待工作的基本要求，思想决定行为，行为形成习惯，习惯决定性格，性格决定命运。永久域名www.friend365.cn]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005-2009 friend365.cn]]></copyright>
<webMaster><![CDATA[friend365@163.com(美丽人生)]]></webMaster>
<generator>friend365.cn</generator> 
<image>
	<title>friend365</title> 
	<url>http://www.friend365.cn/images/logomy.gif</url> 
	<link>http://www.friend365.cn/</link> 
	<description>friend365</description> 
</image>

			<item>
			<link>http://www.friend365.cn/default.asp?id=1144</link>
			<title><![CDATA[db2恢复数据库,不能连接或激活数据库]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[数据库]]></category>
			<pubDate>Fri,03 Sep 2010 11:51:32 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1144</guid>	
		<description><![CDATA[从远程测试或生产服务器上备份DB2 V9.1(Windows操作系统),某一个数据库，<br/><br/>如:friend, 本人的想法是将远端的数据库备份，然后还原到本地，这样可以在家或其它访<br/><br/>问你想要的数据库了。<br/><br/>使用命令备份大家都知道;<br/><br/><span style="color:Blue">&nbsp;&nbsp;C:&gt;db2 backup db friend to D:</span><br/><br/>&nbsp;&nbsp; 本地安装了DB2，想要恢复远程的数据库，可以使用如下操作，有时候不一定成功，<br/>但不要着急，肯定有办法解决。<br/><br/>&nbsp;&nbsp;C:&gt;db2 restore db friend from D: taken at 20100902110122<br/><br/>&nbsp;&nbsp;先说一下，之前本地没有创建任何数据库;<br/><br/>&nbsp;&nbsp;执行回车，当提示恢复成功，我想连接本地数据库，查看是否正常访问，但是出问题了<br/><br/>&nbsp;&nbsp;报错：SQL1117N 由于 ROLL-FORWARD PENDING，不能连接或激活数据库<br/><br/>&nbsp;&nbsp;可以采用下面的方法；<br/><br/>&nbsp;&nbsp;C:&gt;db2 rollforward db friend to end of logs and stop<br/><br/>&nbsp;&nbsp;然后执行<br/><br/>&nbsp;&nbsp;C:&gt;db2 connect to friend<br/>&nbsp;&nbsp;显示连接正常信息，以上是本人在使用过程中遇到的问题，然后通过找资料解决了上面<br/><br/>的问题，希望对你有帮助（借鉴）<br/><br/>&nbsp;&nbsp;还有一点：我在配置助手添加了远程的friend,本地新恢复的数据库则要采用新的别名了<br/><br/>&nbsp;&nbsp;如friend_db]]></description>
		</item>
		
			<item>
			<link>http://www.friend365.cn/default.asp?id=1143</link>
			<title><![CDATA[xp操作系统安装db2出现乱码]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[数据库]]></category>
			<pubDate>Wed,01 Sep 2010 09:26:35 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1143</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 研究发现是db2在安装的时候会调用IE，如果没有把IE设成默认的浏览器，<br /><br />比如把遨游或360设成默认的话，db2安装的时候会出错的，修改IE为默认的浏览器之后db2正常安装。
<p style="TEXT-INDENT: 2em">修改ie为默认浏览器：</p>
<p style="TEXT-INDENT: 2em">控制面板---添加/删除程序------设定程序访问和默认值-----点自定义-----选择IE----确认</p>
<br />
<p style="TEXT-INDENT: 2em"><img title="DB2安装时弹出乱码对话框的解决方法" alt="DB2安装时弹出乱码对话框的解决方法" src="http://pddl02.mofile.com/p/1/2008/5/1/K/KTCV93WDU7_203.jpg" border="0" /></p>
<p style="TEXT-INDENT: 2em">&nbsp;</p>
<br />
<p style="TEXT-INDENT: 2em">&nbsp;<img title="DB2安装时弹出乱码对话框的解决方法" alt="DB2安装时弹出乱码对话框的解决方法" src="http://pddl02.mofile.com/p/1/2008/5/1/5/5P0L2OBBYD_203.jpg" border="0" /> </p>]]></description>
		</item>
		
			<item>
			<link>http://www.friend365.cn/default.asp?id=1142</link>
			<title><![CDATA[一口气看完《我的美丽人生》]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[微博365]]></category>
			<pubDate>Tue,24 Aug 2010 16:26:07 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1142</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 上周未和家人在一起看完了，我的美丽人生，觉得自己应该向王小早学习，<br/>人应该有梦想和追求。保姆在许多眼里，觉得工作是农村人做的，没有身份。<br/>记得从一本书上看到；人不能太穷，穷了就比别人矮一截。]]></description>
		</item>
		
			<item>
			<link>http://www.friend365.cn/default.asp?id=1141</link>
			<title><![CDATA[梦苑工作室将更名为friend365]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[微博365]]></category>
			<pubDate>Tue,24 Aug 2010 16:17:08 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1141</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dear梦苑工作室全体会员，经过几天的思考，正式更名为： friend365 请大家和以前关注本站，谢谢！]]></description>
		</item>
		
			<item>
			<link>http://www.friend365.cn/default.asp?id=1140</link>
			<title><![CDATA[J2EE框架的优点]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[J2EE框架]]></category>
			<pubDate>Tue,29 Jun 2010 19:44:48 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1140</guid>	
		<description><![CDATA[<p>【Java开源 J2EE框架】 Spring是一个解决了许多在J2EE开发中常见的问题的强大框架。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Spring提供了管理业务对象的一致方法并且鼓励了注入对接口编程而不是对类编程的良好习惯。Spring的架构基础是基于使用JavaBean属性的Inversion of Control容器。然而，这仅仅是完整图景中的一部分：Spring在使用IoC容器作为构建完关注所有架构层的完整解决方案方面是独一无二的。 <br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp; Spring提供了唯一的数据访问抽象，包括简单和有效率的JDBC框架，极大的改进了效率并且减少了可能的错误。Spring的数据访问架构还集成了Hibernate和其他O/R mapping解决方案。Spring还提供了唯一的事务管理抽象，它能够在各种底层事务管理技术，例如JTA或者JDBC事务提供一个一致的编程模型。</p>
<p><br />&nbsp;&nbsp;&nbsp;&nbsp; Spring提供了一个用标准Java语言编写的AOP框架，它给POJOs提供了声明式的事务管理和其他企业事务--如果你需要--还能实现你自己的aspects。这个框架足够强大，使得应用程序能够抛开EJB的复杂性，同时享受着和传统EJB相关的关键服务。Spring还提供了可以和IoC容器集成的强大而灵活的MVC Web框架。</p>
<p>.Struts </p>
<p>【Java开源 Web框架】 Struts是一个基于Sun J2EE平台的MVC框架，主要是采用Servlet和JSP技术来实现的。由于Struts能充分满足应用开发的需求，简单易用，敏捷迅速，在过去的一年中颇受关注。Struts把Servlet、JSP、自定义标签和信息资源(message resources)整合到一个统一的框架中，开发人员利用其进行开发时不用再自己编码实现全套MVC模式，极大的节省了时间，所以说Struts是一个非常不错的应用框架。<br />【StrutsIDE：用于Struts辅助开发的一个Eclipse插件】 </p>
<p>.Hibernate </p>
<p>【Java开源 持久层框架】<br />Hibernate是一个开放源代码的对象关系映射框架，它对JDBC进行了非常轻量级的对象封装，使得Java程序员可以随心所欲的使用对象编程思维来操纵数据库。 Hibernate可以应用在任何使用JDBC的场合，既可以在Java的客户端程序实用，也可以在Servlet/JSP的Web应用中使用，最具革命意义的是，Hibernate可以在应用EJB的J2EE架构中取代CMP，完成数据持久化的重任。Eclipse平台下的Hibernate辅助开发工具:</p>]]></description>
		</item>
		
			<item>
			<link>http://www.friend365.cn/default.asp?id=1139</link>
			<title><![CDATA[值得大家去看的电子书籍]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[电子书籍]]></category>
			<pubDate>Mon,21 Jun 2010 08:55:39 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1139</guid>	
		<description><![CDATA[<p>1.&nbsp; 人月神话</p>
<p>&nbsp;&nbsp; 觉得这本书不错，从事项目管理方面的建议去看一下。</p>
<p>2.&nbsp;&nbsp; 走出软件作坊</p>
<p>&nbsp;&nbsp;&nbsp;在CSDN很受欢迎的一本电子书，作者是国内一从事架构、管理的CTO，网名是：阿朱;</p>
<p>很佩服他的技术和管理;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.friend365.cn/default.asp?id=1138</link>
			<title><![CDATA[jar连接数据库出现断开的解决方案]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[Java专栏]]></category>
			<pubDate>Mon,10 May 2010 11:40:38 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1138</guid>	
		<description><![CDATA[<p>1. 采用JDBC连接数据库，如：DB2</p>
<p>&nbsp;/**<br />&nbsp; * 建立联接<br />&nbsp; * <br />&nbsp; * @return<br />&nbsp; */<br />&nbsp;public Connection getConnection() {<br />&nbsp;&nbsp;try {<br />&nbsp;&nbsp;&nbsp;conn = null;<br />&nbsp;&nbsp;&nbsp;Class.forName(driverClassName).newInstance();<br />&nbsp;&nbsp;&nbsp;log.debug(&quot;创建Mon连接&hellip;&hellip;&quot;);<br />&nbsp;&nbsp;&nbsp;conn = DriverManager.getConnection(app_url, app_user, app_password);<br />&nbsp;&nbsp;&nbsp;log.debug(&quot;Mon连接创建成功!&quot;);<br />&nbsp;&nbsp;} catch (Exception e) {<br />&nbsp;&nbsp;&nbsp;log.debug(&quot;Mon连接创建失败!&quot;);<br />&nbsp;&nbsp;&nbsp;log.error(e);<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;return conn;<br />&nbsp;}</p>
<p>2. 实际应用</p>
<p>&nbsp;</p>
<p>public class Dao extends DbFactory {</p>
<p>&nbsp;private static Logger log = Logger.getLogger(Dao.class);</p>
<p>&nbsp;private Dao() {<br />&nbsp;}</p>
<p>&nbsp;private static Dao instance = new Dao();</p>
<p>&nbsp;public static Dao getInstance() {<br />&nbsp;&nbsp;return instance;<br />&nbsp;}</p>
<p>&nbsp;/**<br />&nbsp; * @return<br />&nbsp; */<br />&nbsp;public Map findAllTasks() {<br />&nbsp;&nbsp;Map map = new HashMap();<br />&nbsp;&nbsp;try {<br />&nbsp;&nbsp;&nbsp;getConnection();<br />&nbsp;&nbsp;&nbsp;if (conn == null) {<br />&nbsp;&nbsp;&nbsp;&nbsp;throw new SQLException(&quot;数据库连接未创建!&quot;);<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;ps = conn.prepareStatement(SQL.YTPUB_BPCTA_LOAD);<br />&nbsp;&nbsp;&nbsp;rs = ps.executeQuery();<br />&nbsp;&nbsp;&nbsp;while (rs.next()) {<br />&nbsp;&nbsp;&nbsp;&nbsp;Task entry = new Task();<br />&nbsp;&nbsp;&nbsp;&nbsp;entry.setId(rs.getString(0));<br />&nbsp;&nbsp;&nbsp;&nbsp;map.put(entry.getId(), entry);<br />&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;} catch (SQLException e) {</p>
<p>&nbsp;&nbsp;&nbsp;return null;<br />&nbsp;&nbsp;} finally {<br />&nbsp;&nbsp;&nbsp;this.close();<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;return map;<br />&nbsp;}</p>
<p>}</p>
<p>&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.friend365.cn/default.asp?id=1137</link>
			<title><![CDATA[java读取资源文件信息]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[Java专栏]]></category>
			<pubDate>Wed,05 May 2010 19:30:38 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1137</guid>	
		<description><![CDATA[<p>&nbsp;private static final String CONFIG = &quot;conf&quot;;<br />&nbsp;private static ResourceBundle CONFIG_S = ResourceBundle.getBundle(CONFIG);</p>
<p>&nbsp;private Conf() {<br />&nbsp;}</p>
<p>&nbsp;public static String getString(String key) {<br />&nbsp;&nbsp;try {<br />&nbsp;&nbsp;&nbsp;return CONFIG_S.getString(key);<br />&nbsp;&nbsp;} catch (MissingResourceException e) {<br />&nbsp;&nbsp;&nbsp;e.printStackTrace();<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;return &quot;&quot;;<br />&nbsp;}</p>]]></description>
		</item>
		
			<item>
			<link>http://www.friend365.cn/default.asp?id=1136</link>
			<title><![CDATA[ibatis+Spring框架集成]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[J2EE框架]]></category>
			<pubDate>Sun,04 Apr 2010 13:25:28 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1136</guid>	
		<description><![CDATA[<p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;<br />&nbsp;xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;<br />&nbsp;xmlns:aop=&quot;http://www.springframework.org/schema/aop&quot;<br />&nbsp;xmlns:tx=&quot;http://www.springframework.org/schema/tx&quot;<br />&nbsp;xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd&quot;<br />&nbsp;default-autowire=&quot;byName&quot; default-lazy-init=&quot;true&quot;&gt;</p>
<p>&nbsp;&lt;bean id=&quot;dataSource&quot; class=&quot;org.springframework.jndi.JndiObjectFactoryBean&quot;&gt;<br />&nbsp;&nbsp;&lt;property name=&quot;jndiName&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&lt;value&gt;java:comp/env/Friend365.cn&lt;/value&gt;<br />&nbsp;&nbsp;&lt;/property&gt;<br />&nbsp;&lt;/bean&gt;</p>
<p>&nbsp;&lt;bean id=&quot;lobHandler&quot; class=&quot;org.springframework.jdbc.support.lob.DefaultLobHandler&quot; /&gt;&nbsp;&nbsp;</p>
<p>&nbsp;&lt;bean id=&quot;sqlMapClient&quot;<br />&nbsp;&nbsp;class=&quot;org.springframework.orm.ibatis.SqlMapClientFactoryBean&quot;&gt;<br />&nbsp;&nbsp;&lt;property name=&quot;configLocation&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&lt;value&gt;classpath:map-config.xml&lt;/value&gt;<br />&nbsp;&nbsp;&lt;/property&gt;<br />&nbsp;&nbsp;&lt;property name=&quot;dataSource&quot; ref=&quot;dataSource&quot; /&gt;<br />&nbsp;&nbsp;&lt;property name=&quot;lobHandler&quot; ref=&quot;lobHandler&quot;/&gt; <br />&nbsp;&lt;/bean&gt;</p>
<p>&nbsp;&lt;bean id=&quot;transactionManager&quot; class=&quot;org.springframework.jdbc.datasource.DataSourceTransactionManager&quot;&gt;<br />&nbsp;&nbsp;&lt;property name=&quot;dataSource&quot; ref=&quot;dataSource&quot; /&gt;<br />&nbsp;&lt;/bean&gt;</p>
<p>&lt;/benas&gt;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.friend365.cn/default.asp?id=1135</link>
			<title><![CDATA[java提前N天的日期]]></title>
			<author>friend365@163.com(51itcn)</author>
			<category><![CDATA[Java专栏]]></category>
			<pubDate>Sun,04 Apr 2010 13:20:52 +0800</pubDate>
			<guid>http://www.friend365.cn/default.asp?id=1135</guid>	
		<description><![CDATA[<p>&nbsp;/**<br />&nbsp; * 提前N天的日期<br />&nbsp; * <br />&nbsp; * @param date<br />&nbsp; * @param days<br />&nbsp; * @return<br />&nbsp; */<br />&nbsp;public static Date beforeDate(Date date, int days) {<br />&nbsp;&nbsp;java.util.Calendar c = java.util.Calendar.getInstance();<br />&nbsp;&nbsp;c.setTime(date);<br />&nbsp;&nbsp;c.add(java.util.Calendar.DAY_OF_YEAR, -days);<br />&nbsp;&nbsp;return c.getTime();</p>
<p>&nbsp;}</p>
<p>比如取当天的前一天日期时间：类文件.beforeDate(new Date(),1)</p>]]></description>
		</item>
		
</channel>
</rss>