[jboss-dev-forums] [Design of JBoss Portal] - Questions about database connections between portlets

twalex do-not-reply at jboss.com
Thu Oct 4 23:13:26 EDT 2007


Currently, I am trying to find out how the portlets can share database connections among them. However, I could not get any information from the documentation, hopefully I can get some here.

The scenario is that we use dbcp to manage our db connection pool. And I guess that each portlet instance might consume a db connection, so, if a page has 10 portlets, that means 10 db connections will be used. Then what else if thousand of people visit this page, 10 times db connections will be consumed, this is horrible. Therefore, I am wondering how the db connections can be share among the portlet instances.

I read some article saying to use the datasource should be a good idea, however, to remain using dbcp is ideally first place in our consideration.

So any comment is appreciated:)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091787#4091787

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091787



More information about the jboss-dev-forums mailing list