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.

About these ads

1 Comment

Filed under Access Management, Docs

One response to “OpenAM: Deploy on GlassFish v2

  1. Pingback: Tab Sweep: Thread Safety, JSF 2.0 and Cloud, OpenFaces, IIS, OpenAM, File realm, CDI, … « oracleidentitymanagement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s