Hi,
I would like to configure the Hibernate3BeanReplicator as a singleton in Spring, so that I can invoke the copy function on it. Is that recommended?
Regards,
Hari.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, Hibernate3BeanReplicator is NOT thread-safe. It is designed to be constructed, configured as necessary, used, and then immediately "thrown away". It is NOT recommended to use a Hibernate3BeanReplicator instance as a singleton.
Cheers,
Hanson
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I would like to configure the Hibernate3BeanReplicator as a singleton in Spring, so that I can invoke the copy function on it. Is that recommended?
Regards,
Hari.
Hi Hari,
No, Hibernate3BeanReplicator is NOT thread-safe. It is designed to be constructed, configured as necessary, used, and then immediately "thrown away". It is NOT recommended to use a Hibernate3BeanReplicator instance as a singleton.
Cheers,
Hanson