Daily Archives: April 23, 2012

OpenAM: Deploy on GlassFish v2

OpenAM Community Logo OpenAM 10.0.0 supports GlassFish v2 as a container.

Before You Deploy

  1. Install GlassFish v2. I found a file called glassfish-installer-v2-b58g.jar on the download site, and installed it on Linux.
  2. Start GlassFish and login to the admin console (default port: 4848).
  3. 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=192m to -XX:MaxPermSize=256m.
    • Change -client to -server.
    • Change -Xmx512m to -Xmx1024m.
  4. Restart GlassFish for your changes to take effect.

Deploying OpenAM

  1. 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 as laptop.example.com or desktop.example.com. If you have never done so before, it’s not too hard. See the Wikipedia entry on the hosts file.
  2. Login to the GlassFish admin console.
  3. Under Common Tasks > Deployment, select Deploy Web Application (.war).
  4. Deploy the OpenAM .war. (I usually rename this one to openam.war.)
  5. Launch OpenAM after deployment, and configure OpenAM.

Enjoy.

1 Comment

Filed under Access Management, Docs