[GLASSFISH-18994] Impossible to use a CUSTOM session manager Created: 11/Aug/12 Updated: 15/Aug/12
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Linux 3.2.0-3-amd64 x86_64 GNU/Linux (debian wheezy)
I am trying to implement a couchbase session manager for glassfish (see https://github.com/rickyepoderi/couchbase-manager) and it is absolutely impossible to add it as a CUSTOM type (which seems to be the more reasonable way of integrating).
The following link http://docs.oracle.com/cd/E18930_01/html/821-2415/gkmhr.html explains how to include a new manager but it does not work. You have to follow one of the specified persistence types defined by this class: http://java.net/projects/glassfish/sources/svn/content/trunk/main/appserver/web/web-glue/src/main/java/com/sun/enterprise/web/session/PersistenceType.java. So, at first time, I decided to use "custom" type (I repeat that it seems the more reasonable way) but again it was impossible. If you set your PersistenceStrategyBuilder as "custom" the class http://java.net/projects/glassfish/sources/svn/content/trunk/main/appserver/web/web-glue/src/main/java/com/sun/enterprise/web/SessionManagerConfigurationHelper.java backs the application to "meemory" type (no matter the application was distributable or not).
I'm going to attach some logs with javax.enterprise.system.container.web.level=FINEST that shows that that class fails back to memory type (setting the application to <distributable/> and not setting).
Now I am re-using the "coherence-web" type but I think is not the proper way (besides it gives me another problems). Please it would be possible that the "custom" tag could just pass through this class with no interference (custom means custom, so let me do whatever I want).