1 2 Previous Next 17 Replies Latest reply on Aug 9, 2012 5:59 AM by nishant_k123 Go to original post
      • 15. Re: Question about SEAM-CONFIG
        nishant_k123

        It appears that when the bean is specified in the seam-beans.xml, the @postConstruct method is not called.

        I have several instances of the same class specified in the seam-beans.xml with a different @Named (using <s:Named/> ). but it appears that the post construct on these instances are not called even though they are created correctly.

        I also noticed that none of the injections seem to happen for a bean created via the seam-beans.xml. Is this by design that the post construct and injection get ignored for beans created via seam-beans.xml. or is there something i am missing entirely ?

        • 16. Re: Question about SEAM-CONFIG
          lightguard

          I asked Stuart Douglas to comment on this, I'm not sure.

          • 17. Re: Question about SEAM-CONFIG
            nishant_k123

            ok i figured this one out. i did not have the <s:modifies/> tag as part of the bean configuration in the xml. And while without this the bean was still being created the post construct and injections into the bean were not happening. With this tag it works.

            1 2 Previous Next