Skip to main content

Anyone using SMTP-Transport with Metro?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
magir
Offline
Joined: 2007-03-14
Points: 0

Hi,
http://jax-ws-commons.java.net/smtp/ provides information on SMTP transport within Metro. Is anyone using this "plugin" in production enviorments? We're planning to migrate a web service from Axis to Metro but we need SMTP transport. The Axis-version was quite a hack and I'd like to know, whether Metro with the above SMTP transport is a viable alternative and possibly easier maintainable.
Any feedback appreciated!
Martin

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
magir
Offline
Joined: 2007-03-14
Points: 0

As it seems, nobody actually uses the SMTP transport port or at least no one bothers to let everyone know ;-).
The sample code from http://jax-ws-commons.java.net/smtp/ is slightly buggy, the one from http://java.net/projects/jax-ws-commons/sources/svn/show/trunk/transport... might be better. I added SMTP transport to one of my web services, as it seems the strange Maven dependency don't work with the current release of Metro/JAXWS/.... I added
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.2.1</version>
</dependency>
to update the dependency from
<dependency>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-smtp</artifactId>
<version>1.1</version>
</dependency>

which seemed to do the trick - at least the server starts but without a POP3 within our network I wasn't able to test it, yet.
As it seems, currently only POP3 is supported and I we also need IMAP. Does anyone know, when support for it will be added?
Cheers,
Martin