Fornax-Platform
Forum

 « Return to Thread: Defining Datasource Properties.

Defining Datasource Properties.

by deepshar027 :: Rate this Message:

Reply to Author | View in Thread

Hey Guys,

I generated code with sculptor using version 1.6.Not sure where I need to define properties for my datasource.

I see two files which refer to datasource.

persistence.xml
<non-jta-data-source>java:comp/env/jdbc/MyProjDS</non-jta-data-source>

Also SessionFactory.xml has
<prop key="hibernate.connection.datasource">java:jdbc/MyProjDS</prop>  

Where should I specify DB URL , driver and other properties like connection parameters for my datasource MyProjDS.

Please post with an example.

Thanks,
Deepak.

 « Return to Thread: Defining Datasource Properties.