This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
If the web host of your company do have a servlet container like Tomcat, but do not have an EJB container, what can you do with your web application in order to communicate with the database? I know you can use JDBC codes to directly communicate with the database. But isn't their any other API (or something else) so that we can use it to communicate with the database easily, in the given Tomcat environment? Isn't their something like a "Portable EJB Api" so that we can use it without having an EJB container?
Hibernate is just POJO based, and runs without any container, EJB or even web. Just a main method is all you need to use Hibernate and persist your objects against a database. JPA is a big part of EJB3, and Hibernate can use JPA annotations, but that doesn't bind it to an EJB container by any means.
Check out my signature links for some simple Hibernate examples and tutorials.