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.
Well, if you are in the container you get all the nice services provided for your. Out of the container, you will need to include them. For instance, JPA requires a Connection Pool, so outside the container you will need to include a Connection Pool API, say for instance C3PO. Same thing with Transactions.