Hi Ben,
I assume you mean that you configured a JNDI datasource on your application server. I'm assuming that you are asking if you can access the datasource with non-hibernate code.
JNDI is not a hibernate-only technology: I've used it with vanilla
JDBC plenty of times. This is a bit Off-Topic for the ORM forum, but the code would look something like this (without exception checking):
If this isn't what you were asking, my apologies.
Jason
Originally posted by ben oliver:
I created a data source in a pplication server. My hibernate code is stand alone java code. can I use that data source to access database without deploying my hibernate code to the server ? How ?
Thanks.