2 Replies Latest reply on Jun 10, 2009 1:47 AM by t0m.guenter

    Tutorials basic question

    t0m.guenter

      Hi,

       

      I'm quite new to smx and while working through Ade's screencast tutorials, I got a bit confused about OSGi, NMR and JBI. Maybe one of you guys can clarify my thoughts.

       

      Ade creates and deploys the pojo service, the soap and rest endpoints as OSGi bundles and injects the pojo service into the endpoint implementors. More or less the same is done in the payments-batch-processor where the incomming message is comming from a activemq queue and is forwarded to the injected pojo service.

       

      The question is the following: why is NMR nowhere used? As far as I understood, the NMR is generally used to decouple the services from each other but when using the injected services the coupling is increased again (imho).

       

      Until now I couldn't find a part in the documentation regarding this issue

       

      I appreciate every hint!

       

      Thanks in advance,

      tom

        • 1. Re: Tutorials basic question
          gseben

          Hi Tom,

           

          I think that Ade used OSGi injection because it is new to SMX 4 and he was trying to get people started with. I haven't watched all the screencasts but I think that NMR could have been used as well.

           

          -Gio

          • 2. Re: Tutorials basic question
            t0m.guenter

            Hi Gio,

             

            thanks for your response.

            But basically the use of OSGi injection couples the services a bit more than a use of NMR, right?

             

            Does someone know if there are any tutorials (similar to ade's great ones), which show the use of the NMR?

             

            Thanks,

            tom