I've been using intellij for years for servlet development in tomcat. But something has always been a mystery to me.
Sometimes with some combinations of Intellij/Tomcat, when I stop and then start tomcat the sessions will be serialized and deserialized so that they will still be valid. Other times over the years, this doesn't happen.
I've searched the forums and the web, and there is a lot of chatter about this and similar topics, much of it old and seemingly applying to older versions of Intellij/Tomcat. There is a lot of talk about setting 'reloadable=true' somewhere, but not clear where in server.xml, or some servlet specific xml file that may or may not exist. I'm not even sure that has anything to do with my particular problem. I'm not sure if this is tomcat or intellij or just a weird interaction of the two.
Note that I'm not talking about recompiling/redeploying, although that's currently not preserving sessions either for some reason. I'm talking about stopping tomcat, then starting it again.
This works fine for my app without Intellij. On tomcat servers the sessions persist just fine.
I'm currently running IntelliJ 9.0 Ultimate IU-93.19 and Tomcat 6.0.20.
Where's the magic switch that turns on/off session persistence?