2 Replies Latest reply on Apr 8, 2004 12:54 PM by javamac

    Mail Service Questions.  java:/Mail

    javamac

      Currently I am using a WebApplication that requires a Mail Service to be at jndi location java:comp/env/Mail. By
      default JBOSS Mail is at java:/Mail. How can I change this to be at java:comp/env/Mail. I tried making the
      change directly to the element in mail-service.xml to no avail. Am I missing something?

        • 1. Re: Mail Service Questions.  java:/Mail
          triathlon98

          Have you tried declaring a resource-ref ?

          Joachim

          • 2. Re: Mail Service Questions.  java:/Mail
            javamac

            My jboss-web.xml looks like the following

            <jboss-web>
             <context-root>/myApp</context-root>
             <virtual-host>www.mydomain.com</virtual-host>
             <resource-ref>
             <res-ref-name>mail/Session</res-ref-name>
             <res-type>javax.mail.Session</res-type>
             <res-auth>Container</res-auth>
             <jndi-name>java:comp/env/Mail</jndi-name>
             </resource-ref>
            </jboss-web>
            



            web.xml looks like this
             <resource-ref>
             <res-ref-name>mail/Session</res-ref-name>
             <res-type>javax.mail.Session</res-type>
             <res-auth>Container</res-auth>
             </resource-ref>
            



            Does this look accurate? Thanks for your input