In Shades all methods of the DatabaseSession interface have Connection as a 
parameter. So it never holds on to your Connection.
So when the DatabaseSession gets serialized, i's not hanging on to the 
connection. Connection management is not part of Shades, by design.

If you want to checkout the shades code, just browse the shadesdb subversion 
repo on sourceforge. Now that I have been added to wicket stuff, I can update 
the phonebook example, sometime over the next few weeks, and you can see that 
code too.


-geoff



Message: 2
Date: Fri, 29 Sep 2006 10:39:46 +0200
From: "Korbinian Bachl" <[EMAIL PROTECTED]>
Subject: Re: [Wicket-user] Fw: Shades phonebook example complete
To: <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;    charset="iso-8859-1"

Hi Geoff,

you write: 
> I am loving the way Shades works with Wicket. I think the 
> Serializable DatabaseSession in Shades could provide some 
> significant performance improvements for Wicket applications 
> beyond what is possible with JDO apps, because of the fact 
> that the jdo PersistenceManager is not serializable (thus 
> forcing queries by ID when sessions are deserialized).

i havent had to do anything with JDO, but the case you are writing seems as
a design question for me. 
Serializible DatabaseSession... wouldnt this drive the DB out of connections
in high volume deployments?
or are you meaning with this that you still use a ConnectionFactory or
PoolingFactory or sth like that and only hold references to this??? 
If not, then a single google-dance could take out your whole webapp...

However, im really interested in seeing your code :) 

Best Regards

Korbinian


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to