Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Shutting down Ebean
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex  
View profile  
 More options Nov 26 2009, 2:17 pm
From: Alex <alxa...@googlemail.com>
Date: Thu, 26 Nov 2009 20:17:54 +0100
Local: Thurs, Nov 26 2009 2:17 pm
Subject: Re: [ebean] Re: Shutting down Ebean
Thanks, with ebean 2.2.0 it works fine now. By the way, where can I get
the artifact com.oracle-oracle:10.2.0.2.0 from? I've created a dummy
oracle jdbc in order to compile ebean, but it would be nice if it were
possible to have references of closed source software out of
ebean-core. Maybe an ebean-oracle artifact?

Cheers, alx

2009/11/17 Rob Bygrave <robin.bygr...@gmail.com>

> Ok, I reproduced it and found the problem with Ebean not shutting down
> in a timely fashion.

> Logged as BUG 176 : Shutdown taking 30 secs or so ... should be
> immediate

> http://www.avaje.org/bugdetail-176.html

> The problem was there is optionally a Timer that is used to warm the
> Ebean server cache. That Timer was not a daemon ... so effectively
> stopped the JVM from shutting down - hence hanging for 30 secs or so.
> The fix was to make the Timer a daemon - I also made the thread names
> a bit more meaningful.

> Fixed in HEAD.

> Cheers, Rob.

> On Oct 19, 7:38 pm, Rob Bygrave <robin.bygr...@gmail.com> wrote:
> > Hmmm. Well, I wasn't able to reproduce... in that it terminated in about 1
> > second or so.

> > I wonder if it is specific to a particular JDK/JVM.

> > On Mon, Oct 19, 2009 at 7:00 PM, Alex <alxa...@googlemail.com> wrote:

> > > Hi

> > > > I haven't tried this yet.  The code looks fine ... the line
> > > > "serverConfig.addClass(Hello.class);" ... should probably be outside that
> > > if
> > > > statement (you always register the bean even if you don't run the DDL).
> > > ok

> > > > You don't (shouldn't) need that explicit call to
> > > > ShutdownManager.shutdown();  Ebean registers a shutdown hook ... we
> > > should
> > > > never need to code that ourselves. I'm pretty sure you added that after
> > > you
> > > > got this issue.
> > > yes, that was the reason why I've added that.

> > > > I think we are running different JVM's (Linux, MacOS and I'm using
> > > Windows
> > > > mostly).

> > > > So yeah, I'll give it a go tonight. A ~1min wait/hang at shutdown ...
> > > I'll
> > > > probably look to use MySql so as to discount H2 background threads from
> > > the
> > > > issue.
> > > great, thanks, alx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.