1 Reply Latest reply on Sep 28, 2002 7:17 AM by Maxim

    Postgres for CMP 2.0

    Ignacio de Cordoba Novice

      Hi!!!
      I don't want to use Jaws as persistence engine, but Postgres (the same I am using with pramati) but I am not sure that in the commercial documentation I have a good doc on this. I just need to configure a "data source" to the Postgres data base and map the EJB fields and relations. For Pramati server all this is done with 2 files: pramati-j2ee-server.xml and pramati-or-mapping.xml
      I guess the rest of the project files (web.xml and ejb-jar.xml are the same for any EJB container, right?)
      Which are the equivalent for JBoss and where I can find documentation on how to map the EJB properties and relations to the database? (I use CMP 2.0, of course).

      Thanks for any help.

        • 1. Re: Postgres for CMP 2.0
          Maxim Newbie

          Hi,
          find out and download quickstart pdf document draft 4 - it is avaiable. U may find information about configuration of a special jboss cmp file jbosscmp-jdbc.xml: datasource mapping, and bean-table, cmpField/row, relations mapping. If u want to change jndi names of your beans - create jboss.xml file for it.
          Then, Postgres template conf file is available under the
          %root%/docs folder of jboss. Edit this file and put it under the deploy folder. Take attention to the name of this resource - it have to math 'java:/%name%' in the jbosscmp-jdbc.xml file element.

          Then, take a look on the server/default/conf file that defines java-jdbc-ds mapping.

          It is a good start point. And btw, go and RTFM now.;-)

          --mk.