4 Replies Latest reply on May 10, 2012 8:13 AM by ravikumarrs

    Spring Hibernate Integration examle..

    ravikumarrs

      Hi,

       

      I am looking for an example using Spring-Hibernate in OSGI.

      There is an example available using JPA-Hibernate. But my requirement is using

      Spring and Hibernate integration. I am following the annotations. It would be very much helpful if I get any help.

       

      Any suggestion/link is greatly received.

       

      Ravi

        • 1. Re: Spring Hibernate Integration examle..
          ffang

          Hi,

           

          Not sure what you mean by "using Spring and Hibernate integration", ensure you already take a look at jpa-osgi example shipped with kit.

           

          FYI we suggest to use OpenJPA but not hibernate as OpenJPA works better in OSGi container.

           

          Freeman

          • 2. Re: Spring Hibernate Integration examle..
            ravikumarrs

            Hi,

             

            Thanks for your reply. I have already used OpenJPA. It's working fine.

            But my requirement is to use Spring & Hibernate configuration.

             

            Does Hibernate works properly in OSGI container?

            If it's not, what is the issue, Hibernate not works in OSGI Container.

            If it is, kindly share an example or links.

            Kindly provide some inputs.

             

            Any help is greatly received.

             

            Ravi

            • 3. Re: Spring Hibernate Integration examle..
              davsclaus

              No Hibernate does not work properly in OSGi. The Hibernate team have not gotten around working on that.

               

              People have got around this with Hibernate, but putting together an uber JAR with all the hibernate JARs in a single JAR, and then install that in OSGi. That have worked for some.

              • 4. Re: Spring Hibernate Integration examle..
                ravikumarrs

                Thanks for your reply. I am trying too much to make hibernate work in SMX. Every time facing new issues.

                 

                I will try again. If any issues, I do post again and need your valuable help.

                 

                Ravi