3 Replies Latest reply on Aug 29, 2007 6:44 PM by khkachn

    Answer to Why Spring in Jboss question

    khkachn

      Hi,

      I am trying to find an article or post that could answer the 'Why bother to add Spring to Jboss' question. I did read This
      and that explains how, not why.

      We have an existing J2EE application running in Jboss and other developers are planning to convert it to Spring. I think they are doing it wrong and destroying the J2EE design pattern but I need to understand Spring to steer them in the correct direction.

      Is there any benefit in changing an MBean service into a Spring bean? I can see no point in this.

      Thanks,

      Ken

        • 1. Re: Answer to Why Spring in Jboss question
          khkachn

          OK. I am going to take the lack of responses as a response to this question.

          • 2. Re: Answer to Why Spring in Jboss question
            alesj

            This kind of global questions are un-answerable on the forum.
            Catch me at some conference - JBWorld is coming up in Februar ;-) - and I'll be glad to discuss this with you.

            One benefit that comes to my mind is that Spring takes plain POJOs.
            But then MBeans can also be POJOs, but they need additional information or must implement -MBean interface.

            If your system changes a lot, then you need something more powerful than plain Spring beans - that's what JBoss JMX provides. Hot (re)deployment, finegrained lifecycle, real dependencies, ...

            Or have a look at the new cool stuff we're doing - JBoss Microcontainer project --> the new JBoss5 Kernel.

            • 3. Re: Answer to Why Spring in Jboss question
              khkachn

              Yes, you are right, it was a unfair question for the forum. Thanks for taking a stab at it and I will check out the items you have mentioned.

              Ken