Play
From Stax
Note: The Play framework is a clean alternative to bloated Enterprise Java stacks. It focuses on developers productivity and targets RESTful architectures. Play is a perfect companion for agile software development. The Play framework’s goal is to ease web applications development while sticking with Java.
A Stax module is now available for the Play! Framework
Contents |
Initial setup
First, create a [Play! Framework] project.
Learn |
Add to your project repository the stax-application.XML file
./yourProject/war/WEB-INF/stax-web.xml
<?xml version="1.0"?>
<stax-web-app xmlns="http://www.stax.net/xml/webapp/1">
</stax-web-app>
Edit your Application.conf for the database connection
# Database configuration # 01:07, 8 January 2010 (UTC) #db=mysql db=java:/comp/env/jdbc/yourProject db.url=jdbc:stax://yourDataBaseName db.driver=com.staxnet.jdbc.Driver db.user=login db.pass=password jpa.dialect=org.hibernate.dialect.MySQLDialect
Deploy your app
./play/play war ./yourProject/ -o war jar cvf ../war.war -C war . stax app:deploy -a login/yourProject -u login -p pass ../war.war
