These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: connection pooling, app server, and tests
PostPosted: Tue May 25, 2004 5:09 am 
Newbie

Joined: Fri May 07, 2004 6:05 am
Posts: 17
When running an application in an app server, the advice that comes the most often is to rely on the server db connection pooling system, rather than on a third party like c3p0, proxool or dbcp.

Why ?
Are these 3rd party pools not fully stable - or considered as less than those from app servers vendors - or is it simply to rationalize, not doubling a fonctionnality already present in the server ?

My problem is that the application I am working on is based on XML/RPC for communcation between an java application client, and business classes (not EJB). Hence there is only a frontend servlet needed by XML/RPC, but the business classes aren't strictly dependent on the app server.

Which has a great advantage : unit tests can be done without launching the server, both on mapped objects and on business classes.

How could I preserve this advantage and build a production grade application with app server pooling ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 25, 2004 6:37 am 
Newbie

Joined: Wed May 12, 2004 5:12 pm
Posts: 8
Location: Frankfurt / Germany
what about using two different hibernate configuration files. one that uses the connection pool provided by the app server and one that uses dbcp?

in your build script (I just guess you are using ant) you could easily switch between the hibernate config files!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 25, 2004 6:59 am 
Newbie

Joined: Fri May 07, 2004 6:05 am
Posts: 17
The problem is that what you test isn't striclty what you put in production.

For example, I encounter a strange problem with c3p0 right now, and I'm trying to solve it. But if I don't manage to, I would have to make significant changes in my code, just to have it work correctly. And that would introduce large diff


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.