<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>// CODING IN JAVA</title>
	<atom:link href="http://guanyu.info/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://guanyu.info/blog</link>
	<description>simplicity is the key to brilliance</description>
	<lastBuildDate>Sat, 16 Jan 2010 00:26:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dynamically create Quartz jobs with Spring and Hibernate</title>
		<link>http://guanyu.info/blog/?p=82</link>
		<comments>http://guanyu.info/blog/?p=82#comments</comments>
		<pubDate>Sat, 16 Jan 2010 00:26:44 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[quartz]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=82</guid>
		<description><![CDATA[Quartz is a great tool by which you could set up cron jobs inside your Java application. Spring makes even easier, but Spring doesn't provide one function I want to achieve -- dynamically managing Quartz jobs such as changing cron expression at runtime.

It was really easy to set up a Quartz job via Spring xml configuration based on the documentation (http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/scheduling.html#scheduling-quartz.). But once the application starts up, configuration cannot be changed or in another word the change will not be accepted until a server bounce, which is an issue in the production environment. Also my Quartz jobs require my service layer and need to update database. Since they run separately from sessions controlled by OSIV and interceptor, my old friend 'no session or session was close' error was back.]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=82</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running multiple Tomcat instances in Windows</title>
		<link>http://guanyu.info/blog/?p=76</link>
		<comments>http://guanyu.info/blog/?p=76#comments</comments>
		<pubDate>Mon, 31 Aug 2009 22:13:48 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=76</guid>
		<description><![CDATA[It is done by using one code base.
It turns out pretty easy..
I decide to run them as services so that they can be easily spotted in the Services GUI.
1. Download tomcat zip (not the windows installer one) and unzip to your destination.
2. Modify service.bat under bin by setting CATALINA_BASE to one of your instance directory [...]]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=76</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to show Axis soap message sent</title>
		<link>http://guanyu.info/blog/?p=74</link>
		<comments>http://guanyu.info/blog/?p=74#comments</comments>
		<pubDate>Fri, 27 Mar 2009 21:50:22 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[axis]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[soap]]></category>
		<category><![CDATA[tcpmon]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=74</guid>
		<description><![CDATA[I have been having troubles to make soap calls and didn&#8217;t know how to debug or show the soap messages sent until my co-worker advised me to try TCPMon.
intercept the soap message by using TCPMon.

change target web service URI:port in your soap client to your server:port, e.g. localhost:8888
create a new TCPMon and listen on the [...]]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=74</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>@ManyToMany association delete then reinsert problem</title>
		<link>http://guanyu.info/blog/?p=69</link>
		<comments>http://guanyu.info/blog/?p=69#comments</comments>
		<pubDate>Wed, 10 Dec 2008 06:16:20 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[@ManyToMany]]></category>
		<category><![CDATA[annotation]]></category>
		<category><![CDATA[hibernate]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=69</guid>
		<description><![CDATA[I have a @ManyToMany property. When I do an update, hibernate issues a delete statement to delete all the related records in the cross reference table for the collection and then issues an insert statements to re-insert all the records back into the cross reference table again. The update performs correctly, but the id which [...]]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=69</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>BeanNotOfRequiredTypeException错误</title>
		<link>http://guanyu.info/blog/?p=62</link>
		<comments>http://guanyu.info/blog/?p=62#comments</comments>
		<pubDate>Sun, 07 Dec 2008 02:55:38 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=62</guid>
		<description><![CDATA[Have you ever encountered the following error message?

org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'add' must be of type [org.springframework.web.servlet.View], but was actually of type [your.package.Controller]
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:309)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:174)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:174)
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:887)
org.springframework.web.servlet.view.ResourceBundleViewResolver.loadView(ResourceBundleViewResolver.java:188)
org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:159)
org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:78)
org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1190)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1139)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

I had that when I tried to set up two view handlers in my Spring configuration file. It was working when I only had SimpleUrlHandlerMapping, until I added ResourceBundleViewResolver. Here was my problem configurations.


&#60;bean [...]]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=62</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Open Session in View in Spring Web MVC</title>
		<link>http://guanyu.info/blog/?p=56</link>
		<comments>http://guanyu.info/blog/?p=56#comments</comments>
		<pubDate>Sun, 23 Nov 2008 06:35:41 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[lazy loading]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[transaction]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=56</guid>
		<description><![CDATA[配置Hibernate和Spring的Open Session in View模式和事务
At work, I took on a job to manage a new web application with Spring and Hibernate. I really have been through a tough time to learn and to work with Spring and Hibernate frameworks. I don’t have a lot of experience with them, and also no one around me has, which makes [...]]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=56</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>some useful linux combo commands</title>
		<link>http://guanyu.info/blog/?p=48</link>
		<comments>http://guanyu.info/blog/?p=48#comments</comments>
		<pubDate>Mon, 17 Nov 2008 08:05:31 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=48</guid>
		<description><![CDATA[tar directory structure and its sub directories only, not including any files under them (只压缩文件夹和文件里子文件夹的结构，不包括其中文件)
tar cf dirstructure.tar --no-recursion --files-from &#60;(find . -type d)
Finds all files that contains targeted texts (查找所有包含所需文字的文件)
find /path/to/your/directory -name "*" -exec grep -l "your text" {} \;
In case these are helpful to someone..
]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=48</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom IdentifierGenerator for JPA</title>
		<link>http://guanyu.info/blog/?p=45</link>
		<comments>http://guanyu.info/blog/?p=45#comments</comments>
		<pubDate>Sun, 16 Nov 2008 05:27:11 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[annotation]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[IdentifierGenerator]]></category>
		<category><![CDATA[jpa]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=45</guid>
		<description><![CDATA[Recently, I have been using an Oracle function a lot to generate sequence numbers for the id field for a POJO.

@javax.persistence.SequenceGenerator(name = &#34;seq&#34;, sequenceName = &#34;id_seq&#34;)

@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = &#34;seq&#34;)
@Column(name = &#34;ID&#34;)
private Long id;

Some of the time, I would like to specify an id instead of a random one assigned automatically. Annotation is not [...]]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=45</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用Spring的PropertyEditorSupport来处理数据类型转换</title>
		<link>http://guanyu.info/blog/?p=37</link>
		<comments>http://guanyu.info/blog/?p=37#comments</comments>
		<pubDate>Sun, 02 Nov 2008 05:59:44 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[CustomCollectionEditor]]></category>
		<category><![CDATA[CustomDateEditor]]></category>
		<category><![CDATA[PropertyEditorSupport]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=37</guid>
		<description><![CDATA[犹豫了半天，还是写英文吧，中文实在是说不清楚。
Recently, I have been dealing with a lot of OneToMany or ManyToMany database table relationships. For instance, one product can be in different categories. So I have to provide a multiple select list to user. Because spring MVC is the framework I work with and I use Spring taglib (http://www.springframework.org/tags) like &#8217;spring:bind&#8217;, I have to [...]]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=37</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在commit之前恢复CVS remove</title>
		<link>http://guanyu.info/blog/?p=26</link>
		<comments>http://guanyu.info/blog/?p=26#comments</comments>
		<pubDate>Sun, 26 Oct 2008 04:47:07 +0000</pubDate>
		<dc:creator>guanyu</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[cvs]]></category>

		<guid isPermaLink="false">http://guanyu.info/blog/?p=26</guid>
		<description><![CDATA[如果想恢复cvs remove过的文件(在commit之前)，只要进行简单的cvs add就好了。
重新考入该文件，然后cvs add是不好用的，会得到&#8221;should be removed and is still there (or is back again)&#8221;的错误信息。

cvs remove test.java (删除test.java)
cvs add test.java (不要试图加入一个新的test.java文件，add会找回之前删除的文件。如果想更新原来的test.java，在add之后，考入新的test.java)

]]></description>
		<wfw:commentRss>http://guanyu.info/blog/?feed=rss2&amp;p=26</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
