Freitag, 17. Juni 2016

Start your ADF Essentials Application on Glassfish within 5 min with docker

Thanks to the official glassfish docker images on docker hub (https://blogs.oracle.com/theaquarium/entry/glassfish_images_on_docker_hub) you can run your ADF Essentials enabled glassfish server within 5 minutes. As a first step you have to download the ADF essentials runtime and configure your machine to run docker images. After that, you can easily create your glassfish server with the next few lines of cone:

Start your docker image and add the ADF Essentials libs

  1. docker run --name=glassfishadf -ti -p 4949:4848 -p 8001:8080 glassfish/nightly
  2. docker cp ~/Downloads/adf-essentials.zip glassfishadf:/adf-essentials.zip
  3. docker exec glassfishadf unzip /adf-essentials.zip
  4. docker exec glassfishadf find /modules -name '*.jar' -exec cp {} /glassfish4/glassfish/domains/domain1/lib/ \;


Configure the glassfish server


After we installed the ADF Essentials libraries in our glassfish docker images, we have to configure and restart the server. You can start the admin console with
https://localhost:4949 (admin/glassfish).


Then you go to "Configuration -> server-config -> JVM Settings -> JVM Options"
Add the parameter "-Doracle.mds.cache=simple" and change the MaxPermSize to "-XX:MaxPermSize=512m".



Restart the server with "server -> restart"


Deploy and run your application


Now you can deploy your ADF Essentials application via the admin console. Maybe you have to enable the application after deployment.


Your ADF Essentials application should be up and running. Have fun!