RE: [JBoss-user] using mail datasource

2003-11-04 Thread konf
May this problem come form message: 2003-11-04 11:04:10,656 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss/server/default/deploy/mail-service.xml 2003-11-04 11:04:10,687 INFO [STDOUT] DEBUG: JavaMail version 1.3 2003-11-04 11:04:10,687 INFO [STDOUT] DEBU

RE: [JBoss-user] using mail datasource

2003-11-04 Thread konf
And in log I have: 2003-11-04 11:08:40,109 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] 2003-11-04 11:08:40,109 ERROR [STDERR] java.lang.IllegalStateException: Not connected 2003-11-04 11:08:40,109 ERROR [STD

RE: [JBoss-user] using mail datasource

2003-11-04 Thread konf
my mail-service is: java:/Mail > Your code seems ok. Have you updated the mail-service.

Re: [JBoss-user] using mail datasource

2003-11-04 Thread harm
Yes you can use it for this purpose: InitialContext ic = new InitialContext(); Session session = null; session = (Session) ic.lookup(JNDINames.MAIL_SESSION); /* create the session */

RE: [JBoss-user] using mail datasource

2003-11-04 Thread Stephane Nicoll
Your code seems ok. Have you updated the mail-service.xml to your environment (meaning host of the SMTP server if you want to send email)? Post the definition of your mail-service.xml Regards, Stephane -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, N