Here is a screen cast to show case how you can easily push a Java EE application to Oracle Application Container Cloud from your command line
Overview
- start with a Java EE 7 Maven archetype —
mvn archetype:generate -Dfilter=com.airhacks:javaee7-essentials-archetype
- modify the code — add a simple JAX-RS resource and build the project with
mvn clean install
- add (tiny bit of) metadata (
deployment.json
)
{
“instances”:1,
“memory”:”1G”
}
- install and configure PSM (matter of few minutes!)
- and push to cloud —
psm accs push -n demoapp -r javaee -s hourly -d deployment.json -p target/sample.war
- test —
curl -x GET https://demoapp-<domain>.apaas.us2.oraclecloud.com/rest/
Further reading
- Oracle Application Container Cloud documentation and (lots of!) tutorials
- PaaS Service Manager CLI documentation
Cheers!