Re: Hibernate Configuration and SessionFactory startup time

2005-05-07 Thread Kent Tong
John Anderson semiosix.com> writes: > 10-20 seconds to reload the app, of which Hibernate is usually 5 - 8. > Which doesn't seem like much, except when you do a change that takes 20 > or 30 seconds, and you do an hour of that, you spend 15-20 minutes of > that hour waiting for app reloads. How m

Re: Hibernate Configuration and SessionFactory startup time

2005-05-07 Thread John Anderson
On Fri, 2005-05-06 at 10:27 +, Kent Tong wrote: > John Anderson semiosix.com> writes: > > > Exactly. But usually after one has made a change to a .class file, one > > wants to see that the change did what one expected it to, not so? > > It only takes a couple of seconds to configure the Conf

Re: Hibernate Configuration and SessionFactory startup time

2005-05-07 Thread John Anderson
On Fri, 2005-05-06 at 16:46 -0500, Javier Sanchez wrote: > Just use JNDI. JBoss 3.2.7 supports Hibernate in native form making > this configuration easier. You just have to build the .har file, > DS,... JBoss understands those files with no extra effort. The configuration itself is fine. What I'

Re: Hibernate Configuration and SessionFactory startup time

2005-05-06 Thread Javier Sanchez
Just use JNDI. JBoss 3.2.7 supports Hibernate in native form making this configuration easier. You just have to build the .har file, DS,... JBoss understands those files with no extra effort. JAVIER SANCHEZ On 5/6/05, Kent Tong <[EMAIL PROTECTED]> wrote: > John Anderson semiosix.com> writes: >

Re: Hibernate Configuration and SessionFactory startup time

2005-05-06 Thread Kent Tong
John Anderson semiosix.com> writes: > Exactly. But usually after one has made a change to a .class file, one > wants to see that the change did what one expected it to, not so? It only takes a couple of seconds to configure the Configuration object for each test run. How does it bother you? If i

Re: Hibernate Configuration and SessionFactory startup time

2005-05-05 Thread John Anderson
On Thu, 2005-05-05 at 08:11 +, Kent Tong wrote: > John Anderson semiosix.com> writes: > > > Thanks for your suggestion. I tried that, but the Global class seems to > > be destroyed every time one of the .class files in the app changes. > > But it will not be recreated until an http request h

Re: Hibernate Configuration and SessionFactory startup time

2005-05-05 Thread Kent Tong
John Anderson semiosix.com> writes: > Thanks for your suggestion. I tried that, but the Global class seems to > be destroyed every time one of the .class files in the app changes. But it will not be recreated until an http request hits your app again. --

Re: Hibernate Configuration and SessionFactory startup time

2005-05-05 Thread John Anderson
On Thu, 2005-05-05 at 01:01 +, Kent Tong wrote: > John Anderson semiosix.com> writes: > > > What I don't like is that every time I change something in the .java > > files for the project, I have to wait 8-15 seconds for the restart to > > happen. Which adds up to lots of what when it's part

Re: Hibernate Configuration and SessionFactory startup time

2005-05-04 Thread Kent Tong
John Anderson semiosix.com> writes: > What I don't like is that every time I change something in the .java > files for the project, I have to wait 8-15 seconds for the restart to > happen. Which adds up to lots of what when it's part of the > change/compile/reload cycle. > > What exactly do you

Re: Hibernate Configuration and SessionFactory startup time

2005-05-04 Thread John Anderson
On Wed, 2005-05-04 at 01:41 +, Kent Tong wrote: > John Anderson semiosix.com> writes: > > > Here's the problem: in order to get changes to the Java files showing up > > via Tomcat, I need to enable reloading in Tomcat. But then every time > > a .class file in the classes subdir changes, the a

Re: Hibernate Configuration and SessionFactory startup time

2005-05-03 Thread Kent Tong
John Anderson semiosix.com> writes: > Here's the problem: in order to get changes to the Java files showing up > via Tomcat, I need to enable reloading in Tomcat. But then every time > a .class file in the classes subdir changes, the app reloads. Which is > fine except for the long Hibernate star

Hibernate Configuration and SessionFactory startup time

2005-05-03 Thread John Anderson
Hi everyone A little background: I'm working on my first Tapestry app. I've been involved with Java since 1.0, and involved with software dev for a lot longer. I'm using Hibernate for db access, having had much joy with it on previous projects. The Hibernate Configuration and SessionFactory take