I assume you mean repository.xml....

If so:
   <jdbc-connection-descriptor
            jcd-alias="test-database"
            default-connection="true"
            platform="PostgreSQL"
            jdbc-level="2.0"
            driver="org.postgresql.Driver"
            protocol="jdbc"
            subprotocol="postgresql"
            dbalias="//testserver.auckland.ac.nz/test-database"
            username="dbusername"
            password="password"
        >
        <sequence-manager className= 
"org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl">
            <attribute attribute-name="autoNaming" attribute-value="false"/>
        </sequence-manager>
   </jdbc-connection-descriptor>   

This uses Postgre's sequences to generate keys for different extents. See the tutorial 
docs and the sequence manager docs for more information.

Thanks,
Rob :)


-----Original Message-----
From: Fabiano Fernandes de Souza [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 30 December 2003 10:22 a.m.
To: [EMAIL PROTECTED]
Subject: Ojb samples


Please,

Can anyone send to me some resource.xml source code fragment where is declared the 
jdbc-connection-descriptor for a postgresql jdbc?

I am a newbie and my bigest problems is to start to use it on my Web application. I 
couldnt find any samples how to use it on Web Applications. Some codes of config files 
and servlets using the ojb framework for inserts or queries would be fine.

Thanks.
-- 
Fabiano F. Souza
Tecnologia da Informação
Estudar Soluções em Treinamento Corporativo.
(31) 32849294 - [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • Ojb samples Fabiano Fernandes de Souza
    • Coup, Robert Muir

Reply via email to