@Ian: Good question. Yes, jOOQ explicitly avoids features like
connection pooling, transaction handling, second-level caching etc.
For all of these issues, there are already excellent tools out there
that suit end users' needs better than what I could re-implement with
jOOQ.
@Vladislav: That's a nice Stack Overflow question with good research.
I would probably have recommended c3p0, I wasn't aware that it has
gotten somewhat outdated. Good to know. Do you have working examples
with BoneCP and jOOQ? That might be something interesting for the jOOQ
manual...
@Andreas: Thanks for your input. You're probably right in this
specific setup (MySQL / newbie). Pooling a couple of
Oracle-connections in a J2EE system with 2000 - 10000 concurrent
sessions is worth the trouble, if you don't want to kill the database.
Tuning queries is another story :-)
Cheers
Lukas
2012/3/6 Andreas <andreas...@gmail.com>:
> I eventually went with BoneCP and it was fairly painless. I was a little
> puzzled that all of their examples involve grabbing a connection, and then
> closing it. Initially I thought that if you closed the connection it
> wouldn't return to the pool, but I then realized that this is probably the
> way you indicate that the connection can be returned to the pool.
Yes, with connection pooling, closing a connection has a new
semantics, just like "opening" a connection, which doesn't open a new
one, but gets one from the pool. In a way, the JDBC Connection's
lifecycle is still the same, though.
> It's been a while since I've done this kind of J2EE stuff, so much of the
> tooling is grossly overengineered, poorly documented, and they all manage to
> make the simplest use-cases seriously over-complicated (I'm looking at you
> Jersey). jOOQ is a nice exception to that :-)
Thank you. You might enjoy these readings about architecture astronauts :-)
http://www.joelonsoftware.com/articles/fog0000000018.html
http://www.joelonsoftware.com/items/2005/10/21.html
http://www.joelonsoftware.com/items/2008/05/01.html
Cheers
Lukas
Thank you. You might enjoy these readings about architecture astronauts :-)
http://www.joelonsoftware.com/articles/fog0000000018.html
http://www.joelonsoftware.com/items/2005/10/21.html
http://www.joelonsoftware.com/items/2008/05/01.html
Oops, then you probably don't like jOOQ's move from .properties files
to XML for jooq-codegen configuration :-)
I wouldn't worry too much about these things. I'm sure, we'll rant
about JSON in 5 years as much as we have ranted about XML/J2EE in the
past 5 years.
Cheers
Lukas
> XML is the worst, use of XML for anything other than its intended purpose, aOops, then you probably don't like jOOQ's move from .properties files
> text MARKUP language, is a sure sign of an architecture astronaut. Whoever
> decided that XML was a great language for config files needs a good kicking
> IMHO. I'm looking at you Maven.
to XML for jooq-codegen configuration :-)
I wouldn't worry too much about these things. I'm sure, we'll rant
about JSON in 5 years as much as we have ranted about XML/J2EE in the
past 5 years.
@Vladislav: That's a nice Stack Overflow question with good research.
I would probably have recommended c3p0, I wasn't aware that it has
gotten somewhat outdated. Good to know. Do you have working examples
with BoneCP and jOOQ? That might be something interesting for the jOOQ
manual...
Thanks for the example. True, there isn't much magic to it...