Overriding the default session manager with embedded tomcat 7 java -



Overriding the default session manager with embedded tomcat 7 java -

i trying override tomcat session manager embedded tomcat.

these steps preformed in-order load context.xml defines manager entity.

.. context context = tomcat.addwebapp(contextpath, appbase); file configfile = new file ("d:\\context.xml"); context.setconfigfile(configfile.touri().tourl()); tomcat.start(); ..

the session manager seems recognized it's constructor beingness invoked startinternal() method never invoked , session manager beingness used old tomcat session manager.

the weird thing when defining same configuration in non embedded tomcat, session manager beingness overridden without problems.

would appriciate help on subject.

non embedded tomcat uses server.xml , embedded tomcat not uses server.xml file rather need pass arguments in method.

session tomcat

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -