Skip to content

Creating of Spring beans takes a long time when the application is deployed through webstart / jnlp with Java 6 and above [SPR-9117] #13755

@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits fe57f74, 6fd476e

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions