Menu

Is the hibernate replicator thread-safe?

Help
hari
2008-07-18
2013-04-25
  • hari

    hari - 2008-07-18

    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.

     
    • Hanson Char

      Hanson Char - 2008-07-18

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.