Issue Details (XML | Word | Printable)

Key: GLASSFISH-18994
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Rajiv Mordani
Reporter: rickyepoderi
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

Impossible to use a CUSTOM session manager

Created: 11/Aug/12 10:37 AM   Updated: 15/Aug/12 12:10 AM
Component/s: web_container
Affects Version/s: 3.1.2_b23
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File distributable.log (8 kB) 11/Aug/12 10:37 AM - rickyepoderi
2. Text File non-distributable.log (8 kB) 11/Aug/12 10:37 AM - rickyepoderi

Environment:

Linux 3.2.0-3-amd64 x86_64 GNU/Linux (debian wheezy)


Tags:
Participants: Rajiv Mordani and rickyepoderi


 Description  « Hide

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).