0 Replies Latest reply on Mar 15, 2013 6:23 PM by kaigen

    Seam EMail send & Receive working w seam 2.3.0 and Jboss 7.1.0

    kaigen Newbie

      I used the following to get them working.

      Step 1. use jboss-deployment-structure.xml in EAR/META-INF

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">

        <deployment>

              <dependencies>

                <module name="org.hibernate" export="true"/>

                <module name="javax.faces.api" export="true" />

                <module name="com.sun.jsf-impl" export="true"/>

                <module name="org.dom4j" export="true"/>

                <module name="org.hibernate.validator" export="true"/>

                <module name="deployment.mail-1.0.15.Final.rar" export="true"/>

              </dependencies>

        </deployment> 

       

      </jboss-deployment-structure>

       

      Note the last module name. Without it being there the classes wont be found and you will get error messages like

      JBAS014521: No message listener of type com.test.connector.inflow.TestMessageListener for EMail receive

      You will need to add mail-1.4.4.jar in EAR/lib otherwise

      ModuleNotFoundException: deployment.mail-1.4.4.jar message for EMail send.

       

      The above is the only change needed to move from seam 2.1.2 re EMail send but for EMail receive some more changes are needed ie

      Step 2. copy mail-1.0.15.Final.rar to the deployments directory where your EAR file is. The rar file is for resource adaptor so you need to

      Step 3. alter standalone-full.xml as follows


      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">

      <resource-adapters>

      <resource-adapter>

      <archive>

      mail-1.0.15.Final.rar

      </archive>

      <transaction-support>NoTransaction</transaction-support>

      <config-property name="QueueSize">

      1024

      </config-property>

      </resource-adapter>

      </resource-adapters>

      </subsystem>

      Note that initially  there is a empty place holder like


      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"/> and you will replace that.

       

      I had to search using browser to locate mail-1.0.15.Final.rar and also found using http://localhost:9990/ to check the resource adaptor very useful.

       

      Hope this helps some one.