Commits

Mihai Glonț committed 4d3c6f7

Disabled JMS and Quartz to prevent memory leaks when JUMMP is stopped in Tomcat.

Commented out the AuthenticationOutdaterJob job as it relied on Quartz. We should
re-implement the functionality differently. Our previous Weceem security policy,
stored in scripts/weceem-security.groovy, threw ClassFormatErrors. For now, use
the default wcm security policy.

Weceem lists Quartz 0.4.2 as a dependency and uses it internally. Be sure to edit
~/.grails/$version/jummp/plugins/weceem*/ and comment out the relevant sections.

  • Participants
  • Parent commits 10be213

Comments (0)

Files changed (3)

grails-app/conf/BuildConfig.groovy

         runtime 'org.apache.commons:commons-compress:1.1'
 
         // jms
-        runtime('org.apache.activemq:activeio-core:3.1.2',
+        /*runtime('org.apache.activemq:activeio-core:3.1.2',
                 'org.apache.activemq:activemq-core:5.5.0',
                 'org.apache.activemq:activemq-spring:5.5.0',
                 'org.apache.xbean:xbean-spring:3.7') {
                     'slf4j-api',
                     'xalan',
                     'xml-apis'
-        }
+        }*/
         runtime "commons-jexl:commons-jexl:1.1"
 
         // dbus
 
     plugins {
         compile ":perf4j:0.1.1"
-        compile ":jms:1.2"
+        //compile ":jms:1.2"
         compile ":executor:0.3"
         compile ":mail:1.0"
-        compile ":quartz:0.4.2"
+        //compile ":quartz:0.4.2"
         compile ":spring-security-acl:1.1"
         compile ":svn:1.0.2"
         runtime ":spring-security-core:1.2.7.2"
     }
 }
 
-grails.plugin.location.'jummp-plugin-jms' = "jummp-plugins/jummp-plugin-jms"
+//grails.plugin.location.'jummp-plugin-jms' = "jummp-plugins/jummp-plugin-jms"
 
 // Remove libraries not needed in productive mode
 grails.war.resources = { stagingDir ->

grails-app/conf/Config.groovy

 
 environments {
     development {
-        weceem.security.policy.path = "scripts/weceem-security.groovy"
+        weceem.security.policy.path = null //"scripts/weceem-security.groovy"
     }
     test {
         weceem.security.policy.path = null

grails-app/jobs/net/biomodels/jummp/core/AuthenticationOutdaterJob.groovy

 package net.biomodels.jummp.core
 
 import org.codehaus.groovy.grails.commons.ConfigurationHolder
-import org.quartz.JobExecutionException
-import org.quartz.JobExecutionContext
+//import org.quartz.JobExecutionException
+//import org.quartz.JobExecutionContext
 
 /**
  * @short Job initializing and executing a trigger removing authentication hashes.
  */
 class AuthenticationOutdaterJob {
     def authenticationHashService
-
+/*
     static triggers = {
         // TODO: find a solution for ConfigurationHolder as it is deprecated
         simple name: 'authenticationRemoveTrigger', startDelay: Long.valueOf(ConfigurationHolder.config.jummp.authenticationHash.startRemoveOffset), repeatInterval: Long.valueOf(ConfigurationHolder.config.jummp.authenticationHash.removeInterval)
     }
-
+*/
     /**
      * Triggers removal of inactive authentications.
      * @param context the JobExecutionContext
      * @throws JobExecutionException
      */
+/*
     def execute(JobExecutionContext context) throws JobExecutionException {
         authenticationHashService.checkAuthenticationExpired()
     }
+*/
 }