datasource « EJB « JPA Q&A





1. How to create datasource for standalone application using JPA    java-forums.org

In the persistence.xml configuration file, we have data source got it from web server configuration file, and created by server like Jboss or tomcat. I just wonder how to create this same data source via Java stand-alone application? I have Java standalone application embedded Jetty server running with JPA module. Question is how to setup or create data source from my ...