This content has been marked as final. Show 1 reply
Accessing a database from a portlet is no different from accessing a database from a servlet or any other Java EE app. First, I recommend that you do not use the portal's database, instead use your own database. For example, if you are using MySQL, create a new database. Then create and deploy a *-ds.xml file for your database. Then write your code to acccess that database.