I am converting a J2EE app - that makes heavy use of remote EJBs - to use Spring. I have it working (Use Spring Simple Session Bean Factory to access the remote EJBs) but the performance is pretty slow. I know the first time you create the initial context, do all the lookups and go through all the required class loading, it should take a while, but with Spring, it seems to take the same amount of time on every request.
Has anyone else run into this? I've created tests that initialize several threads and each makes several requests. I changed the bean from singleton to non-singleton, that took me from 11 seconds to 8 seconds average per request. I expect this to be closer to 2 seconds. My old app used reflection as well but would cache the Homes and Initial Contexts (didn't hang on to the remotes, that would negate Weblogic's container mgmt abilities). Not sure how Spring handles caching/retrieving.
Any advice is appreciated. It's not a network issue, I'm running the two different versions side by side on the same machine. Thanks.