yes:
asadmin create-javamail-resource --interactive=true
--user=$ASADMIN_USER --mailhost=smtp.gmail.com
--mailuser=cejug.classifieds --fromaddress=cejug.classifieds_at_gmail.com
--enabled=true --description="e-Mail account used to confirm the
registration of the Arena PUJ users" --storeprotocol=imap
--storeprotocolclass=com.sun.mail.imap.IMAPStore --transprotocol smtp
--transprotocolclass com.sun.mail.smtp.SMTPSSLTransport --property
mail-smtp.user=cejug.classifieds_at_gmail.com:mail-smtp.port=465:mail-smtp.password=??????:mail-smtp.auth=true:mail-smtp.socketFactory.fallback=false:mail-password=?????:mail-smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory:mail-smtp.socketFactory.port=465:mail-smtp.starttls.enable=true
mail/arena
* I am using GMail, so I adopted some tricks in the code to be able to
connect.. I will try again with Glassfish V3, perhaps it got better
now..
On Sun, Sep 20, 2009 at 1:55 AM, Martin Gainty <mgainty_at_hotmail.com> wrote:
> were you able to populate KEY property for mail-resource and associate to
> mail/Session ?
>
> <mail-resource jndi-name="mail/Session" ...>
> <property name="KEY" value="KEY"/>
> </mail-resource>
>
> http://docs.sun.com/app/docs/doc/820-4338/6nfqevcg5?l=ja&a=view
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Sat, 19 Sep 2009 11:07:40 +0200
>> From: fgaucho_at_gmail.com
>> To: users_at_glassfish.dev.java.net
>> Subject: password file keys ?
>>
>> what are the password file keys accepted by Glassfish ?
>>
>> I need:
>>
>> JMS + JavaMail password.. to run a script..
>>
>> today it works in the script, but the passwords are hard-coded..
>>
>> asadmin create-jms-resource --user=admin
>> --restype=javax.jms.QueueConnectionFactory --description="Arena PUJ
>> JMS Notification Connection Factory." PujRegistrationFactory
>> asadmin create-jms-resource --user=admin --restype=javax.jms.Queue
>> --description="Arena PUJ JMS Registration Queue." PujRegistration
>> asadmin create-javamail-resource --user=admin
>> --mailhost=smtp.gmail.com --mailuser=cejug.classifieds
>> --fromaddress=cejug.classifieds_at_gmail.com --enabled=true
>> --description="e-Mail account used to confirm the registration of the
>> Arena PUJ users" --storeprotocol=imap
>> --storeprotocolclass=com.sun.mail.imap.IMAPStore --transprotocol smtp
>> --transprotocolclass com.sun.mail.smtp.SMTPSSLTransport --property
>>
>> mail-smtp.user=cejug.classifieds_at_gmail.com:mail-smtp.port=465:mail-smtp.password=????:mail-smtp.auth=true:mail-smtp.socketFactory.fallback=false:mail-password=_at_d0r0c3jug:mail-smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory:mail-smtp.socketFactory.port=465:mail-smtp.starttls.enable=true
>> mail/arena
>>
>>
>> password file should be like:
>>
>> AS_ADMIN_PASSWORD=adminadmin
>> AS_ADMIN_USER=admin
>> AS_MAIL???? <<-- which key ?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ________________________________
> Ready for Fall shows? Use Bing to find helpful ratings and reviews on
> digital tv's. Click here.
--
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/footprint-service/wadl