Closed GoogleCodeExporter closed 9 years ago
GrailsMelodyCponfig.groovy
/*
You can find all detailed parameter usage from
http://code.google.com/p/javamelody/wiki/UserGuide#6._Optional_parameters
Any parameter with 'javamelody.' prefix configured in this file will be add as
init-param of java melody MonitoringFilter.
*/
/*
The parameter disabled (false by default) just disables the monitoring.
*/
javamelody.disabled = false
/*
The parameter system-actions-enabled (true by default) enables some system
actions.
*/
javamelody.'system-actions-enabled' = true
/*
Turn on Grails Service monitoring by adding 'spring' in displayed-counters
parameter.
*/
javamelody.'displayed-counters' = 'http,sql,error,log,spring,jsp'
/*
The parameter url-exclude-pattern is a regular expression to exclude some urls
from monitoring as written above.
*/
//javamelody.'url-exclude-pattern' = '/static/.*'
/*
Specify jndi name of datasource to monitor in production environment
*/
/*environments {
production {
javamelody.datasources = 'java:comp/env/myapp/mydatasource'
}
}*/
*******************************************************************************
DataSource.groovy
dataSource {
pooled = true
driverClassName = "com.mysql.jdbc.Driver"
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = false
cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
environments {
development {
dataSource {
dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
url = "jdbc:mysql://localhost:3306/eblast?useUnicode=true&characterEncoding=utf8&autoReconnect=true"
username="root"
password="root"
}
}
test {
dataSource {
dbCreate = "update"
url = "jdbc:mysql://localhost:3306/eblast?useUnicode=true&characterEncoding=utf8&autoReconnect=true"
}
}
production {
dataSource {
dbCreate = "update"
url = "jdbc:mysql://localhost:3306/eblast?useUnicode=true&characterEncoding=utf8&autoReconnect=true"
pooled = true
username="root"
password="root"
properties {
maxActive = -1
minEvictableIdleTimeMillis=1800000
timeBetweenEvictionRunsMillis=1800000
numTestsPerEvictionRun=3
testOnBorrow=true
testWhileIdle=true
testOnReturn=true
validationQuery="SELECT 1"
}
}
}
}
Original comment by anandkus...@gmail.com
on 19 Mar 2013 at 6:35
It seems to be a duplicate of issue 165.
In particular the following thread has MissingMethodException:
https://groups.google.com/forum/?fromgroups=#!topic/javamelody/Ewc4vfxaUOg
It was said in the thread that changing (removing) the type of the parameters
in the method declaration workarounds the problem.
I am open to any patch to fix the issue:
https://svn.codehaus.org/grails-plugins/grails-grails-melody/trunk/GrailsMelodyG
railsPlugin.groovy
Original comment by evernat@free.fr
on 19 Mar 2013 at 10:27
any news?
Original comment by evernat@free.fr
on 28 Mar 2013 at 11:07
Hi anandkushwahakiet (quite a good and unique name by the way!),
No response from you, so resolving the issue as duplicate of issue 165.
Original comment by evernat@free.fr
on 4 Apr 2013 at 8:31
Original issue reported on code.google.com by
anandkus...@gmail.com
on 19 Mar 2013 at 5:57