@Jürgen
If you like some hibernate cache functionality in the dummy database simulator, then you can add this patch and the previous patch to the project.
My changes are on the affected Java-sources relative to the commit [e44b99].
The dummy database simulator "net.sf.hibernate.jconsole.tester.HibernateContextTester" and all unit tests working properly. :D
Trying to use this plugin with Hibernate 4....no luck :-(
run jconsole like:
jconsole -pluginpath C:\temp\projects\hibernate-jcons-code\modules\jconsole-plugin\target\jconsole-plugin-1.0.8-SNAPSHOT.jar -J-Xdebug\
-J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000\
-J-Dhibernate.searchpath=C:\temp\projects\hibernate-jcons-code\modules\hibernate-tester\3-6-tester\target\lib
Have an error: Warning: Fail to load plugin: com.sun.tools.jconsole.JConsolePlugin: Provider net.sf.hibernate.jconsole.HibernateJConsolePlugin could not be instantiated: java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actual no answer is possible, when I click this link Hibernate 4.x test support. For myself it is read only! :(
So, I put the answer now in this place ...
For a better overview, I would separate it into three parts:
a) project configuration Maven upgrade
(affects all pom.xml)
a.1) introduce project width management dependencies
a.2) introduce project width management plugins
a.3) feature: introducing optional Maven profiles
b) support of different JDK version depends on the used environment JAVA_HOME
(affects modules/jconsole-plugin/pom.xml)
c) cache test driver (Ehcache configuration with different version of hibernate version)
(affects HibernateSessions.java)
d) optional and maybe overdesigned ;) in project use slf4j instead of commons-logging
all good Java frameworks using this logging-facade, see sample
Last edit: Udo Kuehne 2013-01-10
@Jürgen
The attached patch resolve part a (without a.3), b and d, see above.
My changes on all pom.xml is relative to the commit [e44b99].
To add this patch, try exec in unix like shell follow command
Related
Commit: [e44b99]
Last edit: Udo Kuehne 2013-01-10
-
Last edit: Udo Kuehne 2013-01-10
add attachment ... try again#2
It resolves error dynamicly ehcache configuration with hibernate version 3.5
@Jürgen
If you like some hibernate cache functionality in the dummy database simulator, then you can add this patch and the previous patch to the project.
My changes are on the affected Java-sources relative to the commit [e44b99].
The dummy database simulator "net.sf.hibernate.jconsole.tester.HibernateContextTester" and all unit tests working properly. :D
Related
Commit: [e44b99]
Last edit: Udo Kuehne 2013-01-10
-- (.ucking error code 500)
Last edit: Udo Kuehne 2013-01-10
see two comments above
Trying to use this plugin with Hibernate 4....no luck :-(
run jconsole like:
jconsole -pluginpath C:\temp\projects\hibernate-jcons-code\modules\jconsole-plugin\target\jconsole-plugin-1.0.8-SNAPSHOT.jar -J-Xdebug\
-J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000\
-J-Dhibernate.searchpath=C:\temp\projects\hibernate-jcons-code\modules\hibernate-tester\3-6-tester\target\lib
Have an error: Warning: Fail to load plugin: com.sun.tools.jconsole.JConsolePlugin: Provider net.sf.hibernate.jconsole.HibernateJConsolePlugin could not be instantiated: java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread