Buzzing the Cloud with CloudBees and Roo
Join the DZone community and get the full member experience.
Join For FreeLooking to try out CloudBees for your Spring application?
Here is how you can get started quickly with CloudBees Run@Cloud platform.
- Get a CloudBees Account
- Configure a MySql instance on CloudBees
- Build a Spring Roo application
see script below - Create a cloudbees-web.xml file in WEB-INF
same directory as web.xml - Add Maven CloudBees Plugin
- Build and deploy with Maven
mvn clean install bees:deploy
Roo 1.2.0 Script
Here is a simple item manager application script you can use/customize to create your application
Roo 1.1.5 Script
Here is a simple item manager application script you can use/customize to create your application
cloudbees-web.xml
Maven CloudBees Plugin
Add the CloudBees repository to the pluginRepositories section.
Add the CloudBees Maven plugin to the plugins section.
Database Properties File
Edit the /src/main/resources/META-INF/spring/database.properties file.
Set the database.url to jdbc:cloudbees://yourmysqlinstance.
Set the database.driverClassName to com.cloudbees.jdbc.Driver.
Download the Demo App
The demo app is in Git https://github.com/gordonad/roo-1.2-cloudbees for Spring Roo 1.2.
From http://gordondickens.com/wordpress/2011/09/26/buzzing-the-cloud-with-cloudbees-and-roo/
Opinions expressed by DZone contributors are their own.
Comments