[quote="Roma"]
[EMAIL PROTECTED] wrote:

Where does JBoss get the database name, driver, login/pass for my (PostgreSQL) 
database? Don't I have to configure a JNDI datasource?
(end of quote)




I figured it out (should read more before I ask [Wink] )



I had to create a database configuration file in the deploy directory (examples 
can be found in <jboss-home>/docs/examples/jca) and set the  dsJndiName module 
option to this datasource name.



The file should look something like this:

<datasources>

&nbsp; <local-tx-datasource>

&nbsp; &nbsp; <jndi-name>MyDS</jndi-name>

&nbsp; &nbsp; <connection-url>

&nbsp; &nbsp; jdbc&#58;postgresql&#58;//localhost&#58;5432/database-name

&nbsp; &nbsp; </connection-url>

&nbsp; &nbsp; <driver-class>org.postgresql.Driver</driver-class>

&nbsp; &nbsp; <user-name>username</user-name>

&nbsp; &nbsp; <password>password</password>

&nbsp; </local-tx-datasource>

</datasources>



-The file-name has to end with the suffix "-ds.xml".

-The database driver should be placed in <jboss-home>/server/<configuration>/lib
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=625#625
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to