Skip to content

mlinhard/ogm-kitchensink

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OGM Kitchensink

What is it?

ogm-kitchensink is a OGM demo app for AS 7 based on kitchensink

Prerequisites

How to build it

  • Set the environment variable JBOSS_HOME and ensure that it points to the installation directory of a JBoss AS 7 installation (tested against JBoss AS 7.0.1.Final "Zap")

  • Install the Hibernate 3 and OGM modules (needs to be only executes once)

       $ mvn groovy:execute
    
  • Start JBoss AS 7

       $ $JBOSS_HOME/bin/standalone.sh
    
  • Build:

       $ mvn clean package
    
  • Deploy:

       $ mvn jboss-as:deploy
    

Running tests

Managed container

$ mvn test

Remote container

$ mvn test -DremoteTests=true

How to deploy on OpenShift Express

  • Sign up for OpenShift account at - https://openshift.redhat.com

  • Install OpenShift Express command line tools

      $ gem install rhc
    
  • Create OpenShift domain and app

      $ rhc-create-domain -n <domain>
      $ rhc-create-app -a <app> -t jbossas-7.0 --nogit
    
  • Add the git repo created by rhc-create-app as remote

      $ git remote add openshift <repo-url>
    
  • Push to Openshift

      $ git push -f openshift master
    
  • Demo site - http://<app>-<domain>.rhcloud.com

About

OGM demo on AS 7

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published