Return-Path: X-Original-To: apmail-openejb-users-archive@www.apache.org Delivered-To: apmail-openejb-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFA2F9437 for ; Tue, 24 Jan 2012 05:05:55 +0000 (UTC) Received: (qmail 19995 invoked by uid 500); 24 Jan 2012 05:05:49 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 19518 invoked by uid 500); 24 Jan 2012 05:05:30 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 19345 invoked by uid 99); 24 Jan 2012 05:05:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 05:05:20 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,SUBJ_OBFU_PUNCT_FEW,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of apfryer@hotmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 05:05:14 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RpYYv-00042q-QB for users@openejb.apache.org; Mon, 23 Jan 2012 21:04:53 -0800 Date: Mon, 23 Jan 2012 21:04:53 -0800 (PST) From: afryer To: users@openejb.apache.org Message-ID: <1327381493792-4322915.post@n4.nabble.com> Subject: javax.mail.Session resource and smtp authentication MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit i just wanted to check that i'm doing the right thing in regards to using a javax.mail.Session resource with openejb. I have a mail session resource configured as follows... Initially i was confused by the documentation about what name should be used for the password field (ie. password or mail.smtp.password) but now my understanding is that it doesn't matter what it is called because it isn't actually used by openejb. Is it correct that the password property is just configured with the resource so you can access it later from the mail session to do the authentication yourself? In other words, is it true that openejb won't setup the mail session to do authentication automatically and you have to code the authentication yourself? I ended up having the following code in a stateless ejb to set the mail session up to do authentication. Am i on the right track? I thought it would be nice if openejb set the mail session up to do the authentication automatically. -- View this message in context: http://openejb.979440.n4.nabble.com/javax-mail-Session-resource-and-smtp-authentication-tp4322915p4322915.html Sent from the OpenEJB User mailing list archive at Nabble.com.