How to create datasource for standalone application using JPA
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 Java application just like web server; which called by persistence.xml?