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
 
Rob Bygrave  
View profile  
 More options Nov 26 2009, 3:26 pm
From: Rob Bygrave <robin.bygr...@gmail.com>
Date: Fri, 27 Nov 2009 09:26:27 +1300
Local: Thurs, Nov 26 2009 3:26 pm
Subject: Re: [ebean] Re: Shutting down Ebean

> where can I get the artifact com.oracle-oracle:10.2.0.2.0 from?

I'm keen to put the non-maven dependencies (aka like the oracle jdbc driver)
into svn so that people don't have to find it. Mario had a mechanism to do
that with maven via 'system dependencies' I believe so I think (if I
understood correctly) so I think we just need to re-instate that.

Yes, at the moment it's a PITA for anyone as they have to track down the
Oracle jdbc drivers to compile from source.

Mario, if you have time you can re-instate that 'system dependency' thing
you did and stick the oracle jdbc jar into svn.

NB: Just as a reminder ... the reason why we have a dependency on the Oracle
jdbc drivers is that they don't fully support JDBC statement batching via
the standard api (PreparedStatement.executeBatch()) - specifically it
doesn't currently return the row counts from the batched statement execution
(which we need for optimistic concurrency control). So for Oracle we need to
use the OraclePreparedStatement - joy.

On Fri, Nov 27, 2009 at 8:17 AM, Alex <alxa...@googlemail.com> wrote:
> 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.