1 Reply Latest reply on Aug 14, 2008 11:12 AM by Peter Johnson

    how to use my database

    yf guo Newbie

      The doc says:
      Tables are automatically created the first time JBoss Portal starts. When deployed for the first time, JBoss Portal checks for the existence of the initial tables, which have not been created yet.

      I guess if I want to use my database, I should create a database with tables which would be used by my business logic, then place my xxx-ds.xml to deploy dir. When the portal server starts, it will append its tables in the database. Is that right?

      I want to customize my security.

      I know that portal can achieve this at runtime by admin portlet or before runing by xml configuration. The second approach may be the more appropriate for me. But I found that role and user must be stored in database. If the above is true, it seems that what I can do is inserting roles and users into the tables after all the tables were created for the first time. But where is the point? Or is there a better way?

      Thanks!

      taocore

        • 1. Re: how to use my database
          Peter Johnson Master

          I recommend that you do not sue the same database as the portal uses to store your data. Instead, create a separate database and place your tables there. This makes it easier if you later need to wipe one of the databases and start from scratch.

          If you want to initialize the portal database with an initial set of users, edit the file:

          jboss-portal.sar/conf/hibernate/user/setup.txt