[jboss-user] [JBoss Portal] - Re: Questions about database connections between portlets
ebrennan@hotmail.com
do-not-reply at jboss.com
Mon Oct 8 08:58:37 EDT 2007
This might be just one of those "Any comments" as I am still learning this stuff also.
A couple things about database connections.
1. JBoss AS and Portal uses Hibernate for there connections and it looks like this technology is making good progress in the development world. Hibernate and other similar technologies (toplink) do the db connections for you. They set these connections into a pool and hand them out to the portlet as needed. Once the request is finished, it is returned to the pool. You should be closing the connection as soon load the data (a few milliseconds).
2. I don't know how customized each users portal will be but you can increase efficiency by caching the data. You should be using enity beans to load the items from the database. It you make the bean global you should able to share it across multiple users.
Hope this puts you in the right direction.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092533#4092533
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092533
More information about the jboss-user
mailing list