cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject [SOT] SingleThreaded components vs. Singletons
Date Sun, 12 Dec 2004 07:38:56 GMT

For a quick hack I wrote a singleton (simple Java class) that manages the 
Hibernate SessionFactory. As it is only a Cocoon/Hibernate-demo I haven't 
thought much about it, but if I use Hibernate in production, I would write a 
SingleThreaded Avalon component. I would do it because Cocoon is based on 
Avalon, but are there any technical reasons?

-- 
Reinhard

Mime
View raw message