当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Singleton object scope between spring IOC container and Application server Level

问题描述:

We have an EJB application where the singleton classes are initialized on server start up (these classes are packed in application lib as common jar). Instance for this singleton classes created successfully. But When these singleton classes where getting access through spring container (MVC), new instanceof the same singleton class getting created. ie The instance which are created at the time of server start up unknown to spring container.

Can anyone help how to create a single class instance which can be access across the container?

分享给朋友:
您可能感兴趣的文章:
随机阅读: