<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for Martens Blog</title>
	<link>http://blog.deinum.biz</link>
	<description>My surface interval on the internet.</description>
	<pubDate>Fri, 05 Sep 2008 22:38:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>Comment on One application, per client database by Cemil</title>
		<link>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-2280</link>
		<author>Cemil</author>
		<pubDate>Tue, 06 May 2008 10:43:11 +0000</pubDate>
		<guid>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-2280</guid>
		<description>Hi,

Thanks for the article.

I implemented some functionality that use HotSwappableTargetSource to switch from multiple datasources . The problem is when user1 goes into application he will use dataSource1 for finding some data .When user2 goes into application he will use dataSource2 to find some data , and I have only swappable target datasource , then when the user1 will try to made a new search he will find the datasource swap to datasource2 which is not good .

How can I bound the datasource used from the user session?

Or how can i prevent this from occuring by maybe thread/transaction binding the datasource switching ?

Any suggestions ?
From Cemil</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the article.</p>
<p>I implemented some functionality that use HotSwappableTargetSource to switch from multiple datasources . The problem is when user1 goes into application he will use dataSource1 for finding some data .When user2 goes into application he will use dataSource2 to find some data , and I have only swappable target datasource , then when the user1 will try to made a new search he will find the datasource swap to datasource2 which is not good .</p>
<p>How can I bound the datasource used from the user session?</p>
<p>Or how can i prevent this from occuring by maybe thread/transaction binding the datasource switching ?</p>
<p>Any suggestions ?<br />
From Cemil</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Converting String to Date and Date-formatting in Spring-MVC by ccerb</title>
		<link>http://blog.deinum.biz/2007/02/09/converting-string-to-date-and-date-formatting-in-spring-mvc/#comment-1819</link>
		<author>ccerb</author>
		<pubDate>Wed, 20 Feb 2008 17:31:41 +0000</pubDate>
		<guid>http://blog.deinum.biz/2007/02/09/converting-string-to-date-and-date-formatting-in-spring-mvc/#comment-1819</guid>
		<description>I solved the problem myself already by reading Spring's source code this morning. When using PropertyEditor-s and when users are providing values which can't be converted to the expected type, Spring produces exceptions of type TypeMismatchException which are error coded, ie they implement ErrorCoded interface. The error code produced for an invalid startDate, for example, would be (by default) "typeMismatch.command.startDate" which you can map thru messages.properties file to a user-friendly message etc. There's more to it, but this is the idea. Good luck!</description>
		<content:encoded><![CDATA[<p>I solved the problem myself already by reading Spring&#8217;s source code this morning. When using PropertyEditor-s and when users are providing values which can&#8217;t be converted to the expected type, Spring produces exceptions of type TypeMismatchException which are error coded, ie they implement ErrorCoded interface. The error code produced for an invalid startDate, for example, would be (by default) &#8220;typeMismatch.command.startDate&#8221; which you can map thru messages.properties file to a user-friendly message etc. There&#8217;s more to it, but this is the idea. Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Converting String to Date and Date-formatting in Spring-MVC by ccerb</title>
		<link>http://blog.deinum.biz/2007/02/09/converting-string-to-date-and-date-formatting-in-spring-mvc/#comment-1817</link>
		<author>ccerb</author>
		<pubDate>Wed, 20 Feb 2008 01:11:58 +0000</pubDate>
		<guid>http://blog.deinum.biz/2007/02/09/converting-string-to-date-and-date-formatting-in-spring-mvc/#comment-1817</guid>
		<description>Do you have any idea how can the message displayed for invalid dates customized? Currently I happen to use exactly the same approach as you suggested. But when invalid dates are typed in such as 27-07-xxxx, I get this message: 

Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property startDate; nested exception is java.lang.IllegalArgumentException: Could not parse date: Unparseable date: "27-07-xxxx"

Is there a way to control this message and replace it with something more user-friendly?

Thanks.
CC</description>
		<content:encoded><![CDATA[<p>Do you have any idea how can the message displayed for invalid dates customized? Currently I happen to use exactly the same approach as you suggested. But when invalid dates are typed in such as 27-07-xxxx, I get this message: </p>
<p>Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property startDate; nested exception is java.lang.IllegalArgumentException: Could not parse date: Unparseable date: &#8220;27-07-xxxx&#8221;</p>
<p>Is there a way to control this message and replace it with something more user-friendly?</p>
<p>Thanks.<br />
CC</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on One application, per client database by mdeinum</title>
		<link>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-1261</link>
		<author>mdeinum</author>
		<pubDate>Fri, 21 Dec 2007 10:01:51 +0000</pubDate>
		<guid>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-1261</guid>
		<description>In the mean time we already changed some of the implemenation to 1 sessionfactory and 'just' 50 datasources, that was the only differences. (We had some increase in clients :) ).

Regarding the maintainability that isn´t an issue, all the database are in the same version and use the same version of the application. The other option was to deploy an application per client, that would have been a maintainability issue, managing 50 apps, multiple app servers etc. now we have 1 server serving 50 clients. Very managable.

Especially because we only have to create a view, the rest is updated/looked up dynamically. So new view means new client. </description>
		<content:encoded><![CDATA[<p>In the mean time we already changed some of the implemenation to 1 sessionfactory and &#8216;just&#8217; 50 datasources, that was the only differences. (We had some increase in clients <img src='http://blog.deinum.biz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).</p>
<p>Regarding the maintainability that isn´t an issue, all the database are in the same version and use the same version of the application. The other option was to deploy an application per client, that would have been a maintainability issue, managing 50 apps, multiple app servers etc. now we have 1 server serving 50 clients. Very managable.</p>
<p>Especially because we only have to create a view, the rest is updated/looked up dynamically. So new view means new client.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on One application, per client database by al0</title>
		<link>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-1260</link>
		<author>al0</author>
		<pubDate>Fri, 21 Dec 2007 09:36:18 +0000</pubDate>
		<guid>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-1260</guid>
		<description>Yes, it was not 100% clear from description that they are different DB instances, not just different schemas.
But 40 session factories seems terrible expensive to create. 

BTWmaintability of this solution is as well questionable (what to do if structure for some schemas was updated and for others - not?).</description>
		<content:encoded><![CDATA[<p>Yes, it was not 100% clear from description that they are different DB instances, not just different schemas.<br />
But 40 session factories seems terrible expensive to create. </p>
<p>BTWmaintability of this solution is as well questionable (what to do if structure for some schemas was updated and for others - not?).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on One application, per client database by mdeinum</title>
		<link>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-1219</link>
		<author>mdeinum</author>
		<pubDate>Tue, 18 Dec 2007 08:53:50 +0000</pubDate>
		<guid>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-1219</guid>
		<description>@al0 if it was that simple I would have done it but they where also physically different database so on different machines/ports. It wasn't as easy/simple as switching the schema name.</description>
		<content:encoded><![CDATA[<p>@al0 if it was that simple I would have done it but they where also physically different database so on different machines/ports. It wasn&#8217;t as easy/simple as switching the schema name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on One application, per client database by al0</title>
		<link>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-1218</link>
		<author>al0</author>
		<pubDate>Tue, 18 Dec 2007 08:39:29 +0000</pubDate>
		<guid>http://blog.deinum.biz/2007/01/05/one-application-per-client-database/#comment-1218</guid>
		<description>I would possible use much simpler solution - connection customizer (supported by c3p0 that you use anyway AFAIK). And in this customizer issue single SQL-command "set schem DESIRED_SCHEMA" (or, in case of Oracle, "alter session set current_schema=DESIRED_SCHEMA").

Regards,
Oleksandr</description>
		<content:encoded><![CDATA[<p>I would possible use much simpler solution - connection customizer (supported by c3p0 that you use anyway AFAIK). And in this customizer issue single SQL-command &#8220;set schem DESIRED_SCHEMA&#8221; (or, in case of Oracle, &#8220;alter session set current_schema=DESIRED_SCHEMA&#8221;).</p>
<p>Regards,<br />
Oleksandr</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using multiple validators in Controllers and FormAction by Confused</title>
		<link>http://blog.deinum.biz/2006/12/13/using-multiple-validators-in-controllers-and-formaction/#comment-1164</link>
		<author>Confused</author>
		<pubDate>Wed, 12 Dec 2007 15:49:21 +0000</pubDate>
		<guid>http://blog.deinum.biz/2006/12/13/using-multiple-validators-in-controllers-and-formaction/#comment-1164</guid>
		<description>Thank you for posting this. I haven't laughed so hard for ages. Don't worry son, you will gain experience over the next few years and one day you too will look back on this post with an embarrassed smile. Priceless.</description>
		<content:encoded><![CDATA[<p>Thank you for posting this. I haven&#8217;t laughed so hard for ages. Don&#8217;t worry son, you will gain experience over the next few years and one day you too will look back on this post with an embarrassed smile. Priceless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Converting String to Date and Date-formatting in Spring-MVC by Lijin</title>
		<link>http://blog.deinum.biz/2007/02/09/converting-string-to-date-and-date-formatting-in-spring-mvc/#comment-39</link>
		<author>Lijin</author>
		<pubDate>Sat, 17 Feb 2007 07:33:09 +0000</pubDate>
		<guid>http://blog.deinum.biz/2007/02/09/converting-string-to-date-and-date-formatting-in-spring-mvc/#comment-39</guid>
		<description>Hi Sir,

Nice site and really helpful to me to learn more in Spring. Thanks for your effort.

Lijin</description>
		<content:encoded><![CDATA[<p>Hi Sir,</p>
<p>Nice site and really helpful to me to learn more in Spring. Thanks for your effort.</p>
<p>Lijin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
