OpenAM 10.0.0 supports GlassFish v2 as a container.
Before You Deploy
- Install GlassFish v2. I found a file called glassfish-installer-v2-b58g.jar on the download site, and installed it on Linux.
- Start GlassFish and login to the admin console (default port: 4848).
- Under Application Server > JVM Settings > JVM Options, adjust at least the heap and permanent generation sizes, and use the server option. The following list shows changes for evaluation:
- Change
-XX:MaxPermSize=192mto-XX:MaxPermSize=256m. - Change
-clientto-server. - Change
-Xmx512mto-Xmx1024m.
- Change
- Restart GlassFish for your changes to take effect.
Deploying OpenAM
- OpenAM needs an FQDN at configuration time.
To get started quickly, fake an FQDN on your laptop or desktop by giving the system an alias such aslaptop.example.comordesktop.example.com. If you have never done so before, it’s not too hard. See the Wikipedia entry on thehostsfile. - Login to the GlassFish admin console.
- Under Common Tasks > Deployment, select Deploy Web Application (.war).
- Deploy the OpenAM .war. (I usually rename this one to openam.war.)
- Launch OpenAM after deployment, and configure OpenAM.
Enjoy.
