geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Katia Aresti Gonzalez" <kaare...@hotmail.com>
Subject Re: Geronimo and JavaMail
Date Wed, 27 Apr 2005 21:06:32 GMT
<html><div style='background-color:'><DIV class=RTE>
<P>Then i have to build the server from the soruce again... </P>
<P>this helps a lot, i tell you if it works :-)&nbsp;<BR><BR></P></DIV>
<DIV></DIV>&gt;From: Mark &lt;delafran_j2ee@hotmail.com&gt;
<DIV></DIV>&gt;Reply-To: user@geronimo.apache.org
<DIV></DIV>&gt;To: user@geronimo.apache.org
<DIV></DIV>&gt;Subject: Re: Geronimo and JavaMail
<DIV></DIV>&gt;Date: Wed, 27 Apr 2005 16:24:10 -0400
<DIV></DIV>&gt;
<DIV></DIV>&gt;Katia,
<DIV></DIV>&gt;
<DIV></DIV>&gt;From a previous message, Jeremy indicated that you will have
to
<DIV></DIV>&gt;include a dependency on geronimo-mail.&nbsp;&nbsp;In
<DIV></DIV>&gt;modules/assembly/src/plan/j2ee-server-plan.xml, include the
<DIV></DIV>&gt;following:
<DIV></DIV>&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dependency&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV></DIV>&gt;&lt;uri&gt;geronimo/jars/geronimo-mail-${geronimo_version}.jar&lt;/uri&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/dependency&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt;This jar contains NullTransport which send the mail message
to ..
<DIV></DIV>&gt;neverland.&nbsp;&nbsp;This will permit EJBs to send
mail ...
<DIV></DIV>&gt;
<DIV></DIV>&gt;Browse Sun's web site in the J2EE section and you will find
an impl
<DIV></DIV>&gt;of the JavaMail API.&nbsp;&nbsp;It will have jar file,
once you have the jar
<DIV></DIV>&gt;file, I would suggest you try the following:
<DIV></DIV>&gt;
<DIV></DIV>&gt;1. Copy the jar file to
<DIV></DIV>&gt;modules\assembly\target\geronimo-1.0-SNAPSHOT\repository\javamail\mail.jar
<DIV></DIV>&gt;2. Change the j2ee-server-plan.xml from the above to:
<DIV></DIV>&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dependency&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;uri&gt;javamail/mail.jar&lt;/uri&gt;
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/dependency&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt;3. If you look at the mail.jar file, you will find a set of
files
<DIV></DIV>&gt;javamail.*.provider.&nbsp;&nbsp;These are the definitions
of the
<DIV></DIV>&gt;providers/transports.&nbsp;&nbsp;Sun's documentation
will instruct you to
<DIV></DIV>&gt;setup some system properties for these providers.&nbsp;&nbsp;For
example:
<DIV></DIV>&gt;
<DIV></DIV>&gt;mail.smtp.host=mail.apache.com
<DIV></DIV>&gt;
<DIV></DIV>&gt;A simple way to set these is on the command line:
<DIV></DIV>&gt;
<DIV></DIV>&gt;java -Dmail.smtp.host=mail.apache.com -jar bin/server.jar .....
<DIV></DIV>&gt;
<DIV></DIV>&gt;Hope this helps,
<DIV></DIV>&gt;Mark
<DIV></DIV>&gt;
<DIV></DIV>&gt;Katia Aresti Gonzalez wrote:
<DIV></DIV>&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;Jeremy:
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;The simplest way to switch to Sun's transport is to
replace
<DIV></DIV>&gt;&gt;geronimo-mail with the RI (javamail-1.3.2 IIRC) in
the j2ee-server
<DIV></DIV>&gt;&gt;plan. You will need to download that from Sun's site.
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;Can you please explain thismore detailed? :-) I have
downloades
<DIV></DIV>&gt;&gt;javamail 1.3.2 , and i have the jars and all that,
but i dont know
<DIV></DIV>&gt;&gt;what are you speaking about really... Where do i have
to put the
<DIV></DIV>&gt;&gt;jars? where is the fail i have to remove?
<DIV></DIV>&gt;&gt;thank you very much!!!
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;Katia
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;From: Jeremy Boynes &lt;jboynes@apache.org&gt;
<DIV></DIV>&gt;&gt;&gt;Reply-To: user@geronimo.apache.org
<DIV></DIV>&gt;&gt;&gt;To: user@geronimo.apache.org
<DIV></DIV>&gt;&gt;&gt;Subject: Re: Geronimo and JavaMail
<DIV></DIV>&gt;&gt;&gt;Date: Wed, 27 Apr 2005 12:28:45 -0700
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;Katia Aresti Gonzalez wrote:
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;hello everybody!!
<DIV></DIV>&gt;&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;Ive done an applicarion with javamail,
and i have deployed into
<DIV></DIV>&gt;&gt;&gt;&gt;geronimo. the thing is that it doesnt
give any exception, but the
<DIV></DIV>&gt;&gt;&gt;&gt;email doesnt send any email. I know
i have to put the jars of sun
<DIV></DIV>&gt;&gt;&gt;&gt;into Geronimo. Anybody could help me
with this? Where do i have
<DIV></DIV>&gt;&gt;&gt;&gt;to put the jars so my application send
emails?
<DIV></DIV>&gt;&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;My guess would be you are using the Null transport
which just
<DIV></DIV>&gt;&gt;&gt;swallows emails. I think that is the default
one in geronimo-mail.
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;The simplest way to switch to Sun's transport
is to replace
<DIV></DIV>&gt;&gt;&gt;geronimo-mail with the RI (javamail-1.3.2 IIRC)
in the j2ee-server
<DIV></DIV>&gt;&gt;&gt;plan. You will need to download that from Sun's
site.
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;--
<DIV></DIV>&gt;&gt;&gt;Jeremy
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;_________________________________________________________________
<DIV></DIV>&gt;&gt;Horóscopo, tarot, numerología... Escucha lo que te
dicen los
<DIV></DIV>&gt;&gt;astros. http://astrocentro.msn.es/
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;
<DIV></DIV></div><br clear=all><hr>Recibe ofertas de empleo
adaptadas a tu perfil. <a href="http://g.msn.com/8HMBESES/2752??PS=47575" target="_top">Introduce
tu CV en MSN Empleo.</a> </html>


Mime
View raw message