I have an application that runs out-of-container but I am trying to use EJB persistence in it.I was wondering if there is a good example of using EntityManagerFactrory to obtain EntityManager?thanks,Khalid