if your bean implemenents implements Lifecycle  it is likely that you 
LifecycleBean is not running in which case you'll need to restart it e.g

 <bean id="lifecycle" class="test.beans.LifecycleBean" 
init-method="declaredInitMethod">
  <property name="initMethodDeclared"><value>true</value></property>
 </bean>


if(!context.getBean("lifecycle").isRunning()) 
context.getBean("lifecycle").start();


if your bean implelements FactoryBean<Ehcache> then increase the 
timeToLive(default is 120sec) or maxElementsInMemory(default is 10000) or 
maxElementsOnDisk(default is 10000000)

 

post your code if you need further assistance
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.Ce message est confidentiel et peut être 
privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec 
bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non 
autorisée ou la copie de ceci est interdite. Ce message sert à l'information 
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant 
donné que les email peuvent facilement être sujets à la manipulation, nous ne 
pouvons accepter aucune responsabilité pour le contenu fourni.



 

> Date: Thu, 10 Jun 2010 10:25:37 +0100
> From: p...@pidster.com
> To: users@tomcat.apache.org
> Subject: Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem
> 
> On 08/06/2010 15:03, kitikat wrote:
> > 
> > Hello,
> > I have been searching a solution for my problem and I haven't found an
> > answer, so I decided to write here. I have a system, consisting of J2EE
> > (Spring) server-side LifeCycle Data Services for my Adobe Flex client
> > application. Synchronization of files plays a major role in that system - I
> > repeatedly call in flex one remote method from my Spring services
> > (downloadPhoto) and that method returns the content of requested file - from
> > 10 to 1000 KB. 
> > Unfortunately, from time to time, the whole process is broken during
> > downloading one of the photos. It happens to different photos; they have
> > different size, etc. After successful sending request for a photo there is
> > 20 seconds' long period of time, and then Tomcat returns http code: 0 (I've
> > used Charles 3.5.1 to analyse http request/response - request is ok). I
> 
> Chuck is *software*!?
> 
> It sounds like a timeout, rather than an empty response.
> Please remove all comments and any passwords from your server.xml and
> post it here.
> 
> > don't have any other information about response. I've checked that this
> > situation occurs _before_ my java method code is executed. So it happens
> > between accepting my request and calling my code. Server's performance (it's
> > VPS) is rather good (there's 50 MB memory free and a lot of cached; there's
> > plenty of hard disk space and top/load don't reveal any CPU strain). Of
> 
> 50Mb free isn't a meaningful number. More useful to know how much
> memory the JVM is currently using and what it's heap is configured to use.
> 
> > course there is no trace of any bugs in logs (catalina.out and others). I
> > suppose that it might be a bug in Tomcat, but maybe some of you have
> > experienced similar problems?
> 
> If you think it's a bug in Tomcat, you could try using the latest
> release instead of an older one.
> 
> 
> p
> 
> > I'm looking forward to hearing from you.
> > Best regards,
> > Kitikat
> 
> 
                                          
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4

Reply via email to