magro / memcached-session-manager

A tomcat session manager that backups sessions in memcached and pulls them from there if asked for unknown sessions
Apache License 2.0
758 stars 348 forks source link

Configuring the Manager from within a Java Application #382

Closed mosheeshel closed 6 years ago

mosheeshel commented 6 years ago

I want to use the session manager, however I don't know which memcached servers I'm about to use until the application actually loads (working on AWS and have to query the stack to know what the servers will be). I can probably workaround this by writing a shell script that does the same query and exports result to an env variable, but I would prefer not to do this if possible.

Is this possible - basically modifying the Tomcat Context from within? Thanks!