geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Substitute geronimo javamail with sun implementation
Date Tue, 22 Apr 2008 16:23:34 GMT
I guess we have one jar where sun has 2?  If so I think you need to  
copy the javamail config project, rename it, and replace the  
dependency on our jar with dependencies on the sun jars in the pom.   
If you were using g 2.1 you could arrange it so that when your plugin  
was installed it would replace ours, but this can't be automated in  
2.0.2.  In 2.0.2 I think you can map the plugins "by hand" by  
including lines like this in var/config/artifact_aliases.properties:

org.apache.geronimo.configs/javamail/2.0.2/car=com.mark/sun-javamail/ 
1.0-SNAPSHOT/car
org.apache.geronimo.configs/javamail//car=com.mark/sun-javamail/1.0- 
SNAPSHOT/car

There's a good chance you'll only need one of these lines, but I'm  
not sure which.

As Rick said, please let us know what pop3 problems you are seeing so  
we can fix them.

thanks
david jencks

On Apr 22, 2008, at 6:36 AM, maho77 wrote:

>
> Hello,
> When I use the geronimo-mail implementation to access pop3 folders  
> in a
> bean, I get exceptions for some of the messages. So i tried a  
> sample main
> application with the sun implementation without any errors. Now I  
> wanted
> Geronimo to use the sun implementation instead of geronimo-mail.
>
> My first step was to get the Geronimo implementation running. So I  
> created
> an GBean:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment>
> <moduleId>
> 	<groupId>com.mvolution.mti.commons</groupId>
> 	<artifactId>POPMailGBean</artifactId>
> 	<version>1.0</version>
> 	<type>car</type>
> </moduleId>
> 	<dependencies>
> 		<dependency>
> 			<groupId>org.apache.geronimo.modules</groupId>
> 			<artifactId>geronimo-mail</artifactId>
> 			<version>2.0.2</version>
> 			<type>jar</type>
> 		</dependency>
> 		<dependency>
> 			<groupId>org.apache.geronimo.configs</groupId>
> 			<artifactId>javamail</artifactId>
> 			<version>2.0.2</version>
> 			<type>car</type>
> 		</dependency>
> 		<dependency>
> 			<groupId>org.apache.geronimo.modules</groupId>
> 			<artifactId>geronimo-management</artifactId>
> 			<version>2.0.2</version>
> 			<type>jar</type>
> 		</dependency>
> 	</dependencies>
> </environment>
>
> <gbean name="POP3" class="org.apache.geronimo.mail.POP3StoreGBean">
> 	<attribute name="host" type="java.lang.String">popserver</attribute>
> 	<attribute name="user" type="java.lang.String">username</attribute>
> 	<attribute name="port" type="java.lang.Integer">110</attribute>
> </gbean>
> <gbean name="mail/POPMailSession"
> class="org.apache.geronimo.mail.MailGBean">
>         <attribute name="transportProtocol">pop3</attribute>
>         <attribute name="jndiName">ger:/POPMailSession</attribute>
>         <reference name="Protocols"/>
> </gbean>
>
> This works very well in my Bean with the @Resource annotation.
> I want this with the sun implemention.
>
> So I installed the javamail.jar and activation.jar from sun on  
> Geronimo. The
> problem is the dependency org.apache.geronimo.configs/javamail/ 
> 2.0.2/car in
> the GBean. There is an geronimo.plugin.xml in
> rg.apache.geronimo.configs/javamail/2.0.2/car which shows the  
> dependency to
> the org.apache.geronimo.javamail/geronimo-javamail_1.4_mail/1.2/jar.
>
> How can I create such a configuration? Do I have to create it with a
> deployment-plan? What schema do I have to use?
>
> Thank you for your help.
>
> Mark
> -- 
> View this message in context: http://www.nabble.com/Substitute- 
> geronimo-javamail-with-sun-implementation-tp16824270s134p16824270.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>


Mime
View raw message