1 Reply Latest reply on Feb 15, 2010 10:20 AM by peterj

    JBOSS Portal server framework & DB Interaction

      Hi All,

       

      I ma new to JBOSS Portal  server, I have succesfully developed JSP & Struts based portlet,  presently i am trying to develop a portlet with database interaction,

      please   help me in understanding the Jboss portal framework and database  interaction, Do i need to create a table in the appropriate db (or)  portlet configuration will create the table in db when deploying the  portlet,

       

      Please   help me !

       

      Thanks,

      Aiswarya

        • 1. Re: JBOSS Portal server framework & DB Interaction
          peterj
          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.