valeu, acho que � alguma coisa desse tipo que preciso. Vou testar Jefferson
-----Original Message----- From: Frederico Andrade Ramos [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 6:15 PM To: '[EMAIL PROTECTED]' Subject: RES: [enterprise-list] problemas com TOMCAT O seguinte trecho foi extra�do de dentro do arquivo de configura��o do Tomcat (estou com a vers�o 4.0.3) Procure por algo parecido no seu server.xml... Frederico --- server.xml : <!-- PersistentManager: Uncomment the section below to test Persistent Sessions. saveOnRestart: If true, all active sessions will be saved to the Store when Catalina is shutdown, regardless of other settings. All Sessions found in the Store will be loaded on startup. Sessions past their expiration are ignored in both cases. maxActiveSessions: If 0 or greater, having too many active sessions will result in some being swapped out. minIdleSwap limits this. -1 means unlimited sessions are allowed. 0 means sessions will almost always be swapped out after use - this will be noticeably slow for your users. minIdleSwap: Sessions must be idle for at least this long (in seconds) before they will be swapped out due to maxActiveSessions. This avoids thrashing when the site is highly active. -1 or 0 means there is no minimum - sessions can be swapped out at any time. maxIdleSwap: Sessions will be swapped out if idle for this long (in seconds). If minIdleSwap is higher, then it will override this. This isn't exact: it is checked periodically. -1 means sessions won't be swapped out for this reason, although they may be swapped out for maxActiveSessions. If set to >= 0, guarantees that all sessions found in the Store will be loaded on startup. maxIdleBackup: Sessions will be backed up (saved to the Store, but left in active memory) if idle for this long (in seconds), and all sessions found in the Store will be loaded on startup. If set to -1 sessions will not be backed up, 0 means they should be backed up shortly after being used. To clear sessions from the Store, set maxActiveSessions, maxIdleSwap, and minIdleBackup all to -1, saveOnRestart to false, then restart Catalina. --> <!-- <Manager className="org.apache.catalina.session.PersistentManager" debug="0" saveOnRestart="true" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" maxIdleBackup="-1"> <Store className="org.apache.catalina.session.FileStore"/> </Manager> --> ______________________________________________ Frederico Andrade Ramos IT Developer Nextel Telecomunica��es > -----Mensagem original----- > De: Jefferson Silva [mailto:[EMAIL PROTECTED]] > Enviada em: ter�a-feira, 26 de novembro de 2002 15:05 > Para: [EMAIL PROTECTED] > Assunto: [enterprise-list] problemas com TOMCAT > > > Pessoal, tenho uma aplica��o rodando no tomcat e a seguinte > situa��o: inicio > o tomcat, inicio a aplicacao. > Clico em um link (pagina A), e um servlet � chamado, busca > umas informa��es > na base, coloca um determinado objeto O > na sess�o e devolve outra p�gina (pagina B). > > Finalizo o tomcat e mantenho o internet explorer na p�gina B. > > Inicio o tomcat novamente. Clico em um bot�o na p�gina B que > chama o mesmo > servlet, porem para > uma outra a��o. O servlet verifica se h� um objeto O na > sess�o, e aqui est� > o fato estranho > (pelo menos pra mim). > > H� um objeto O na sess�o. Mas como, se eu acabei de startar o > TOMCAT, e n�o > passei pelo ponto > onde o objeto � colocado na sess�o ? > > O que n�o estou enxergando aqui ? > > Jefferson > > --------------------------------------------------------------------- > Para cancelar a subscri��o, envie mensagem para: > [EMAIL PROTECTED] > Para comandos adicionais, envie mensagem para: > [EMAIL PROTECTED] > --------------------------------------------------------------------- Para cancelar a subscri��o, envie mensagem para: [EMAIL PROTECTED] Para comandos adicionais, envie mensagem para: [EMAIL PROTECTED] --------------------------------------------------------------------- Para cancelar a subscri��o, envie mensagem para: [EMAIL PROTECTED] Para comandos adicionais, envie mensagem para: [EMAIL PROTECTED]
