Making Granny work on OpenShift with lower amounts of effort

So one of my old JBoss buddies, Max Rydahl Andersen of Hibernate fame, improved on our process for making Granny's Addressbook deploy on Red Hat's PaaS, OpenShift and told me over on G+. You can find his Granny running here on OpenShift.

The crux of it is that JBoss AS 7 broke compatibility with the Spring Framework whereas JBoss EAP (their pay-for with EULA version of AS) supports Spring more easily. You just use our main branch of Granny from git and then add this in persistence.xml:

<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
<class>com.osintegrators.example.Address</class>

According to Max this can work from JBoss Developer Suite, the Eclipse IDE by:

Import Example app
Change the persistence.xml to have the right datasource
Create new OpenShift App of type "jbosseap-6.0"
The tool will import this openshift app - but you just need it for the deploying, not editing.
Drag Example to the Server created and voila the app is deployed.

If I had chosen to enable postgresql-8.4 on the app I would have to have set the postgres info as you did.

Or via the command-line tools by selecting the jbosseap-6.0 type instead.

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
Are you for real?
Image CAPTCHA
Enter the characters shown in the image.