geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Maximov" <>
Subject RE: Creating a mail session
Date Mon, 18 Dec 2006 20:04:35 GMT
Saw this email.

I'm trying to create a system-wide cluster config as a deployable module
and then reference it from geronimo-web.xml

The deployment descriptor below - should it be packaged as an ejb-jar?
And do you deploy it as an application or as a common-lib?

Thank you,

-----Original Message-----
From: Mike Perham [] 
Sent: Wednesday, November 29, 2006 5:16 PM
Subject: Re: Creating a mail session

Thanks, all.  The following plan will create a system-wide mail session.
In your J2EE module, you just need to declare a dependency on it.

<module xmlns="">

  <gbean name="MailSession" class="org.apache.geronimo.mail.MailGBean">
    <attribute name="transportProtocol">smtp</attribute>
    <attribute name="useDefault">false</attribute>
    <attribute name="host">mailserver</attribute>
    <attribute name="properties">

On 11/27/06, David Carew <> wrote:
> Take a look at the WAS CE samples (you can download them from the same

> place you downloaded WAS CE). There's an application called 
> PlantsByWebsphere that uses a mail session and has all the required
info in the deployment plan .
> I've tried it before  and it has worked for me. HTH
> On 11/27/06, Mike Perham <> wrote:
> > I've spent the last few days trying to figure out how to create an 
> > system-wide javamail Session for application email usage.
> >
> > I updated the javamail module in config.xml to point to my SMTP 
> > server but can't find any documentation on how to create a session 
> > based on that config.  If someone has a working mail session, could 
> > you reply with your plan?  I'm using WAS CE
> >
> > mike
> >

View raw message