3 Replies Latest reply on Feb 9, 2007 4:17 PM by bsmithjj

    Seam Mail - in an .EAR

      Hello,

      I am beginning to dig into the Seam Email functionality. It looks like the sample you've provided assumes a .war type deployment. Are there any suggestions for how to do the following:

      From an EJB, use the renderer with a facelets template that is deployed in the .war?

      Or, should I packaged facelets email templates in the EJB jar?

      Thanks,
      Brad Smith

        • 1. Re: Seam Mail - in an .EAR
          pmuir

          The examples/mail example builds as an (EJB3) ear. To keep things simple it just uses JavaBeans as Seam components.

          You should have no problem calling a template that is located in the war from a SLSB/SFSB in the ejb3 jar. In fact, you can put the template off the root of the war or the ear as you like. I haven't tested it in the ejb3 jar, but will do so now :)

          • 2. Re: Seam Mail - in an .EAR
            pmuir

            Yeah, looks like you can reference it off the root of the ear, the war or the ejb3 jar (i.e. Renderer.instance().render("/foo.xhtml"); would check for war/foo.xhtml, ear/foo.xhtml, ejb-jar/foo.xhtml)

            • 3. Re: Seam Mail - in an .EAR

              awesome! I will try it out.

              Thanks!
              Brad Smith