Please help me for any springboot example for these

24 views
Skip to first unread message

Patartimotius Tambunan

unread,
Mar 14, 2018, 8:13:04 PM3/14/18
to memcached-session-manager
Hi all,
 
Can you share any working springboot for modifying tomcatcontainer.?
I don'thave any it. though i already check them on google

Its like below

@Bean
public EmbeddedServletContainerFactory tomcat() {
    return new TomcatEmbeddedServletContainerFactory() {

        @Override
        protected void postProcessContext(Context context) {
            MemcachedBackupSessionManager manager = new MemcachedBackupSessionManager();
            manager.setMemcachedNodes("n1:servidor-memcached:11211");
            manager.setRequestUriIgnorePattern(".*\\.(ico|png|gif|jpg|css|js)$");
            context.setManager(manager);
        }

    };
}

Martin Grotzke

unread,
Mar 14, 2018, 9:31:34 PM3/14/18
to memcached-se...@googlegroups.com
Hi Patartimotius,

I cannot provide a running springboot app with msm integrated. But the test setup using an embedded tomcat might help, this shows the tomcat setup: https://github.com/magro/memcached-session-manager/blob/master/tomcat8/src/test/java/de/javakaffee/web/msm/integration/Tomcat8Builder.java

Cheers, 
Martin 


--

---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages