[wildfly-dev] How-to create Custom SessionManager and SessionConfig implementations?

Eric B ebenzacar at gmail.com
Sun Mar 26 09:29:02 EDT 2017


I've been trying to figure out how to build my own custom SessionManager to
push my sessions into Redis with a custom SessionConfig implementation, but
am having trouble finding any documentation to that extent.

For the SesisonManager, I've read that I need to:


   1. Develop SessionManager which implements io.undertow.server.session.
   SessionManager
   2. Develop SessionManagerFactory which implements
   io.undertow.servlet.api.SessionManagerFactory
   3. Develop startup extension which implements
io.undertow.servlet.ServletExtension,
   and in handleDeployment(Deployment) method change sessionManagerFactory
   with new SessionManagerFactory.
   4. Register new ServletExtension by adding ../META-INF/services/io.
   undertow.servlet.ServletExtension file (file should contain the name of
   new ServletExtension. for example com.my.utils.StartupExtension)


But I can't seem to find anything that indicates how to provide my own
SessionConfig implementation.  How do I register a custom SessionConfig
implementation?  Is there any documentation to that extent?

Are there any examples that can show me how to create my own SessionManager
and SessionConfig object?

Thanks,

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20170326/f592c104/attachment-0001.html 


More information about the wildfly-dev mailing list