DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Securing Your Software Supply Chain with JFrog and Azure
Register Today

Trending

  • DZone's Article Submission Guidelines
  • Structured Logging
  • Effective Java Collection Framework: Best Practices and Tips
  • Understanding Dependencies...Visually!

Trending

  • DZone's Article Submission Guidelines
  • Structured Logging
  • Effective Java Collection Framework: Best Practices and Tips
  • Understanding Dependencies...Visually!
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Hibernate OGM Deployment on OpenShift

Hibernate OGM Deployment on OpenShift

Mitch Pronschinske user avatar by
Mitch Pronschinske
·
Nov. 07, 11 · Interview
Like (0)
Save
Tweet
Share
8.06K Views

Join the DZone community and get the full member experience.

Join For Free
Hibernate Object/Grid Mapper (OGM) is used to provideJava Persistence (JPA) support for NoSQL data stores.  At this year's JUDCon London, Hardy Ferentschik presented a talk on how to deploy this Hibernate variant on JBoss AS 7 and OpenShift Express.  But lucky for you, he posted the code on GitHub - ogm-kitchensink, and gave a link to the README.md so you can get started even if you couldn't attend.  The demo uses OGM 3.0 Alpha 2 so you'll need to define a Hibernate 3 module even though AS 7 comes with Hibernate 4.  Use these instructions.  The demo comes with a handy Arquillian test and last but not least, tells you how to deploy on RedHat's PaaS - OpenShift Express:

Last but not least, let's push the demo into OpenShift Express. This is as simple as signing up for OpenShift, installing the rhc command line tools and then running:

 $ rhc-create-domain -n <domain>
 $ rhc-create-app -a <app> -t jbossas-7.0 --nogit
...
Success!  Your application is now published here:

      http://<name>-<domain>.rhcloud.com/

The remote repository is located here:

    <repo-url>
...
 $ git remote add openshift <repo-url>
 $ git push -f openshift master
The interesting bit here is to get the required modules installed on the server side. It turns out, all you have to do is to check add them to the git repository under .openshift/modules.  --Hardy Ferentschik

If you still have holes in your understanding of the demo, go ahead and read through the README.md, script.md and the presentation slides for more information.

Source: http://relation.to/Bloggers/JUDCon2011LondonOGMIntroductionDemo
Hibernate OpenShift

Opinions expressed by DZone contributors are their own.

Trending

  • DZone's Article Submission Guidelines
  • Structured Logging
  • Effective Java Collection Framework: Best Practices and Tips
  • Understanding Dependencies...Visually!

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: