You need a jbosscmp-jdbc.xml file as well. Thet's where you define what datasource to use for your entities and perform field/relationship mapping
Thank you very much, my friend.
That was exactly what I was missing.
My fingers are hurting, but at last I now have it working.
Thanks for the tip!
I think the problem is solved. In fact, I was thinking of starting a new thread for my problem but as it is quite related to this thread and so, I am "extending" this thread!
Sorry for any inconvenience and thanks!!
PROBLEM : I am deploying a .war file onto JBoss 3.2.3. Previously I had this .war file working fine on Tomcat.
What changes should I make to make my .war working here. I have very basic knowlege of JBoss.
WHAT I DID :
1. Copied the .war under default/deployed.
2. To use Oracle, copied Oracle-ds.xml from examples/jca and modified. Now it looks like --
<datasources> <local-tx-datasource> <jndi-name>DefaultDS</jndi-name> <connection-url>jdbc:oracle:oci:@ABC</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>username</user-name> <password>password</password> <min-pool-size>5</min-pool-size> <max-pool-size>20</max-pool-size> </local-tx-datasource> </datasources>
What other changes am I supposed to make and in which Files?
Can anybody guide please?
Thanks for all your help!
By The Way -- Is there any relationship between the JNDI name and name of the file?