-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Description
Tom Jahncke opened SPR-9117 and commented
Creating an instance of a Spring bean takes a long time when the application is deployed via webstart and the client of application is accessing the application over the WAN.
If a client of the application is remote, creating a bean can take up to 6 seconds. Between the following two lines 6 seconds of time elapse.
CachedIntrospectionResults | Getting BeanInfo for class [com.gfs.wms.service.vendor.buyer.dao.impl.JdbcBuyerDao]
CachedIntrospectionResults | Caching PropertyDescriptors for class [com.gfs.wms.service.vendor.buyer.dao.impl.JdbcBuyerDao]
If I drop the network connection while the beans are being created they are created quickly (few ms) and no exception is thrown ...
I was puzzled by this until ... I realized webstart caching of resources changed between Java 5 and Java 6
Java 6 and Java 7
DefaultBeanDefinitionDocumentReader | Loading bean definitions
PathMatchingResourcePatternResolver | Looking for matching resources in jar file [http://wmstst. ...
Java 5
DefaultBeanDefinitionDocumentReader | Loading bean definitions
PathMatchingResourcePatternResolver | Looking for matching resources in jar file [file:C:/Users/tjahncke/AppData/LocalLow/Sun/Java/Deployment/cache/javaws/http/Dwmstst.gfs.com/P8000/VworkflowManager-10.0.0.0.rc1.jar/DMdc9/DMwms/RMworkflowManager-10.0.0.0.rc1.jar]
It seems that Spring is looking for the jars on the remote site rather than the local cached copy.
Any assistance on having Spring look at the local cached copy instead of the remote jars would be very appreciated!
Thanks,
Tom
Issue Links:
- Classpath scanning fails after hot-deploy of a web-application to a container due to JarURLConnection caching [SPR-4639] #9316 Classpath scanning fails after hot-deploy of a web-application to a container due to JarURLConnection caching