Configure GlassFish

After you install the DVN development environment, configure the GlassFish server. Also see the NetBeans IDE configuration.

To configure GlassFish:

  1. In your file browser, copy the following files:
    • Copy the PostgreSQL JDBC driver jar file from the
      /<SVN>/doc/PostgresDriver directory and paste it in the
      /<glassfish>/lib directory.
      An example driver is the postgresql-8.3-603.jdbc4.jar file.
    • Copy the files in the
      /<SVN>/working_directory directory and paste them in /<glassfish>/domains/domain1/config directory.
  2. Start the GlassFish server, and open the Admin Console at http://localhost:4848.
    NetBeans is set up to work with the GlassFish server. You can start the server and open the console from the Services tab of the IDE.
  3. See Configure Resources for JDBC Connections in the Installers Guide for the JDBC settings.
  4. See Configure Resources for JMS Resources in the Installers Guide for the JMS settings.
  5. See Configure Resources for JavaMail Sessions in the Installers Guide for the JavaMail settings.
  6. For the Application Server, configure the JVM Settings:
    1. Add the following JVM Options.
      Note: Be sure to include the dash in front of the option:

      • -Djhove.conf.dir=${com.sun.aas.instanceRoot}/config
      • -Ddvn.inetAddress=localhost:8080
      • -Dvdc.export.log.dir=${com.sun.aas.instanceRoot}/logs/export
      • -Dvdc.temp.file.dir=${com.sun.aas.instanceRoot}/config/files/temp
      • -Dvdc.import.log.dir=${com.sun.aas.instanceRoot}/logs/import
      • -Dvdc.study.file.dir=${com.sun.aas.instanceRoot}/config/files/studies
      • -Dvdc.dsb.host=<DSB component host URL>
      • -Ddsb.rserve.host=<R host machine domain>
      • -Ddsb.rserve.port=<R host machine port>
      • -Dvdc.dsb.rserve.user=<account>
      • -Dvdc.dsb.rserve.pwrd=<password>
      • -Dvdc.dsb.rserve.port=<port number>
      • -Dvdc.dsb.port=<DSB component host port>
      • -Ddvn.index.location=${com.sun.aas.instanceRoot}/config
      • -Ddvn.googleanalytics.key=<googleanalyticsTrackingCode> (Optional)
      • -Djava.util.logging.config.file=${com.sun.aas.instanceRoot}/config/logging.properties (Optional)

      Notes: To customize error logging, edit the <glassfish>/config/logging.properties file and change WARNING to INFO.
      Also, see Install RServe for information about configuring the -Dvdc.dsb.rserve values in the Rserv.conf and Rserv.pwd files.

    2. Change the following options’ settings:
      • Change –client to –server.
      • Change -Xms512m to –Xms1024m.
      • Change -Xmx512m to –Xmx1024m.
      • Note: Make sure that the Xms and Xmx settings have the same value.

  7. See Set Up Configuration for EJB Container in the Installers Guide for the EJB settings.
  8. Restart GlassFish to make the configuration take effect.