9 Replies Latest reply on May 8, 2012 5:38 AM by ravikumarrs

    Spring Hibernate!

    ravikumarrs

      Hi,

       

      This is my first post here.

       

      I am looking for a simple example of using spring and hibernate integration withing Service Mix.

       

      Any examples/suggestions/links are greatly received.

       

      Thanks,

      Ravi

        • 1. Re: Spring Hibernate!
          ffang

          Hi,

           

          Please take a look at jpa-osgi example shipped with kit.

          But recommend to use openjpa but not hibernate,  as openjpa works better in OSGi container.

           

          Freeman

          • 2. Re: Spring Hibernate!
            ravikumarrs

            Hi Freeman,

             

            Thanks for your quick reply.

             

            I have successfully done the example using OpenJPA. But my requirement is to use the Hibernate for User Security. And hibernate provides some good features for row-level security.

             

            If I get an example of Spring & Hibernate integration within Service-Mix, would be very much helpful.

             

            Thanks once again.

             

            Thanks,

            Ravi

             

            Edited by: ravikumarrs on May 2, 2012 12:16 PM

            • 3. Re: Spring Hibernate!
              ffang

              Hi,

               

              The jpa-osgi example I pointed to you is using hibernate.

               

              Freeman

              • 4. Re: Spring Hibernate!
                ravikumarrs

                Hi,

                 

                Thanks for your reply.

                 

                Can you please send a link or anything where I can download this example?

                 

                Ravi

                • 5. Re: Spring Hibernate!
                  ffang

                  Hi,

                   

                  If you download FUSE ESB 4.4.x kit, you can see $FUSE_ESB/examples/jpa-osgi example.

                   

                  Freeman

                  • 6. Re: Spring Hibernate!
                    ravikumarrs

                    Hi,

                     

                    Thank you so much for your help. I could deploy application successfully and it's working as expected.

                     

                    Thanks again..

                     

                    Ravi

                    • 7. Re: Spring Hibernate!
                      ravikumarrs

                      In continuation with the same question.

                      • 8. Re: Spring Hibernate!
                        ravikumarrs

                        Hi,

                         

                        I am able to configure spring-hibernate and deploy successfully in Service-Mix-4.4.1. But when I am trying to access from other bundle(client), getting the exception. Please have a look at attached file.

                         

                        Any suggestion/links are greatly received.

                         

                        Awaiting for reply.

                         

                        Ravi

                        • 9. Re: Spring Hibernate!
                          ravikumarrs

                          Hi,

                           

                          I am able to configure spring-hibernate and deploy successfully in Service-Mix-4.4.1. But when I am trying to access from other bundle(client), getting the exception. Please have a look at attached file.

                           

                          Any suggestion/links are greatly received.

                           

                          Awaiting for reply.

                           

                          Ravi