Re: Large number of EventManager threads causing OutOfMemoryException

2010-04-30 Thread Andrus Adamchik
Or actually, client can be a problem as well. Each ClientChannel that you create would start an EventManager. So you may want to do ClientChannel.getEventManager().shutdown() before a ClientChannel goes out of scope. Andrus On May 1, 2010, at 1:09 PM, Andrus Adamchik wrote: I don't think

Re: Large number of EventManager threads causing OutOfMemoryException

2010-04-30 Thread Andrus Adamchik
I don't think running things on the same server vs. separate server is an issue. Hw is your business tier implemented though? Is that an EJB or a web app? Something in its lifecycle makes Cayenne start multiple times and this is what you need to figure out. Andrus On Apr 30, 2010, at 11:14

servlet filter and the Configuration

2010-04-30 Thread MGargano
Okay, So I think I've made some progress since my question yesterday. I have a bean in Spring that is a ConfigurationFactory. It returns a singleton and the dataSource can be obtained from that. Now I just need to get that configuration loaded on web startup. I guess I need to write