5 Replies Latest reply on Nov 2, 2006 11:35 AM by sateh

    SpringDeployer compatible with Spring2.0 final

    alesj

      http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=161914

      I also added 'bean by type' lookup - thanks to c.vidal for providing almost full impl.

      So now you can simply just set spring module's jndiName, and if there is exactly one bean of your required type or if there are multiple the one with default name (field name or setter/getter name) - if exists - will be injected - otherwise exception will be thrown.

       @Spring(jndiName = "en-pojo")
       private RandomGenerator randomGenerator;
      


      Also there is work in progress to remove that jndiName attribute - replaced by module's default - as in EJB3 presistence context unit name.

      Another thing in progress is rewriting SpringDeployer to JBoss5 deployers - JIRA JBMICROCONT-26 - along with other IoC frameworks.

      Rgds, Ales

        • 1. Re: SpringDeployer compatible with Spring2.0 final
          c.vidal

          Hi Ales,

          That's great news ! and thanx for the credit :)

          Kind regards,

          Cédric Vidal

          PS: Looking forward to the jndiName attribute removal ;)

          • 2. Re: SpringDeployer compatible with Spring2.0 final
            apaeth

            Excellent news. Thanks again

            • 3. Re: SpringDeployer compatible with Spring2.0 final
              sateh

              All I see on sf.net is a .jar file with compiled classes. Where is the complete release with 2.0 support? Including the deployer.sar?

              Also, where is the source code for that release? I got http://anonsvn.jboss.org/repos/jbossas/trunk/spring-int but that doesn't compile against AS 4.0.5 so I assume that is actually code for 5.0?

              S.

              • 4. Re: SpringDeployer compatible with Spring2.0 final
                alesj

                Yep, more instructions would be helpful, I totally agree.
                But unfortunately I'm really short on time - just wanted to release the really main part (this jar) of Springframework v2.0-final support. So I hope this post will help you in some way.

                "Stefan Arentz" wrote:
                All I see on sf.net is a .jar file with compiled classes. Where is the complete release with 2.0 support? Including the deployer.sar?


                This .jar is the whole SpringDeployer code base - for JDK5. It really didn't change much from previous releases - the service/deployer xml descriptor in META-INF is unchanged.

                Simply change the old jar with this one, update Springframework libraries to v2.0-final, and it should work.
                If you need SpringDeployer for JDK1.4, let me know.

                "Stefan Arentz" wrote:

                Also, where is the source code for that release? I got http://anonsvn.jboss.org/repos/jbossas/trunk/spring-int but that doesn't compile against AS 4.0.5 so I assume that is actually code for 5.0?


                Yep, that's the code.
                And it is for AS 4.0.x branch.
                What's the problem / exception with not compiling against 4.0.5?

                Working on the JBoss5 deployers.

                • 5. Re: SpringDeployer compatible with Spring2.0 final
                  sateh

                  Hi Ales. I got it working now. Excellent.

                  But, I realized that this is not working like I want to. I would like a .spring archive be much like an ear; I need to be able to bundle my Spring app togehter with all it's dependend jar files in one .spring file and then deploy that as a whole.

                  Guess I'll have a little project to work on :-)

                  S.