Though we can provide database connection parameters with the help of persistence.xml,But can we use an external file which provides connection properties,need of this simply being able to make changes easily whenever required after you create a war file of your application.Say like for example using ResourceBundle class.How can you do it in openxava.
in persistence.xml you only write the JNDI name of the datasource, not the connection parameters. The datasource is defined in your application server that is independent of the war or your application.
Help others in this forum as I help you.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.