GithubHelp home page GithubHelp logo

jboss-db-example's Introduction

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

jboss-db-example's People

Contributors

michaelneale avatar stevengharris avatar swashbuck1r avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.