Hibernate version:
2.14
What I would like to do is use the same code and sessionfactory for both batch and web work. However, I cannot seem to find anything that will make a jndi datasource when you run standalone. I can certainly use 2 different config files, but I would like to avoid that if I can. Have I missed something in the documentation that would allow this. If not, has anyone else tried to do something like this. This is not only a hibernate issue for me. Every time I do some jdbc thing, I find that I have a batch (Regular Driver) implementation and a servlet (Datasource) implementation. If I could just get something to be a jndi datasource provider without a full-fledged app server, then everything would work alike. Thanks in advance.
Wayne
|