| Real-World Experiences With Hibernate - Deployment |
| Written by Ben Teese | |||||||||||||
| Thursday, 12 April 2007 00:00 | |||||||||||||
Page 10 of 11
DeploymentIt can be difficult to know which JAR files your particular installation of Hibernate is going to require. Some people just bundle up all of the JARs that come with Hibernate. However, this has a number of problems:
An alternate approach is to only add what you think you need and see if it breaks at runtime. Whilst this is a commendable alternative to just piling everything in, it can take a long time to do and there's a chance you'll still miss something if you don't test thoroughly. The Hibernate distribution contains a file called lib/_README.txt. This lists all of the JARs in the distribution, and says under what circustances they are necessary. We have found it very useful for keeping our deployments as small as possible. |