Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CloudBees JBoss Example

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .factorypath
Octocat-spinner-32 .gitignore
Octocat-spinner-32 clickstart.json
Octocat-spinner-32 icon.png
Octocat-spinner-32 pom.xml
Octocat-spinner-32 readme.md
readme.md

Java EE 6 Web Profile with Continuous Deployment

This ClickStart is a full Java EE 6 Web Profile application, with a database and continuous deployment. Launch this ClickStart and it will generate a database, app, source repo and build service for you.

This is an example of the jboss container in action. It showcases JPA and persistence configuration EE 6 style and how to setup an app that uses persistence.xml with a CloudBees database. To make changes, clone your generated repo. Any changes you then push will be build and deployed.

Following are instructions if you want to set this up manually:

Requirements

  • Install Maven 3.0.4+
  • Sign up for an account at www.cloudbees.com
  • Install the CloudBees SDK (for bees commands)

Instructions

Get the source

git clone git://github.com/swashbuck1r/jboss-db-example.git

Build the WAR file

mvn package

Deploy the WAR file

bees app:deploy -t jboss -a MYAPP_ID target/jboss-db-example.war

Create a database for the app

bees db:create -u DB_USER -p DB_PASSWORD DBNAME

Bind the database to the app (using datasource alias "ExampleDS" defined in persistence.xml)

bees app:bind -db DBNAME -a MYAPP_ID -as ExampleDS

Restart the app (to inject the new database binding)

bees app:restart MYAPPID
Something went wrong with that request. Please try again.