Installation Guides › SiteMinder Agent for JBoss Guide › Configure JBoss to Work with the SiteMinder Agent › Set the JBoss Environment on UNIX
Set the JBoss Environment on UNIX
Before the SiteMinder Agent can operate with the JBoss Application Server, you must configure SiteMinder Agent-related environment settings on UNIX by editing the JBoss run.sh script.
To configure SiteMinder Agent-related environment settings
- Navigate to the JBOSS_HOME/bin directory
- Open the run.bat file in a text editor.
- Add the following entry to specify the installed location of the SiteMinder Agent for JBoss
set SOA_HOME=SMAGENT_HOME
- Add the following entry to define required JVM system properties for the SiteMinder agent:
set JAVA_OPTS=%JAVA_OPTS% -DJAVA_AGENT_ROOT=%SOA_HOME% -Dlog.log-config-properties=%SOA_HOME%/config/log-config.properties
- Add the following entry to include directories required for SiteMinder Agent operation in the JBOSS_CLASSPATH:
JBOSS_CLASSPATH=$JBOSS_CLASSPATH;$SOA_HOME/config;$JBOSS_HOME/server/default/lib/cryptojFIPS.jar
- By default, JBoss only listens for requests on the localhost IP address. To configure JBoss to listen on all IP addresses, locate the entry following the remark line "Execute the JVM in the background" and change "org.jboss.Main" to "org.jboss.Main -b 0.0.0.0". For example:
"%JAVA%" %JAVA_OPTS% -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%"
-classpath "%JBOSS_CLASSPATH%" org.jboss.Main -b 0.0.0.0 %*
- Save your changes.
- Restart the JBoss Application Server to apply the changes.