User: schaefera Date: 02/03/08 15:19:44 Modified: varia/src/main/org/jboss/mail MailService.java Log: Final adjustments to the current JSR-77 specification. Because the spec. is still changing I replaced the "J2EE-Type" name by a static attribute called "J2EE_TYPE" with each JSR-77 component should use when it checks for the type of the JSR-77 component. Revision Changes Path 1.6 +4 -4 contrib/varia/src/main/org/jboss/mail/MailService.java Index: MailService.java =================================================================== RCS file: /cvsroot/jboss/contrib/varia/src/main/org/jboss/mail/MailService.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- MailService.java 8 Mar 2002 14:44:05 -0000 1.5 +++ MailService.java 8 Mar 2002 23:19:44 -0000 1.6 @@ -33,13 +33,13 @@ import org.jboss.system.ServiceMBeanSupport; import org.jboss.naming.NonSerializableFactory; -import org.jboss.management.j2ee.JavaMail; +import org.jboss.management.j2ee.JavaMailResource; /** * MBean that gives support for JavaMail. Object of class javax.mail.Session will be bound * in JNDI under java:/ namespace with the name provided with method {@link #setJNDIName}. * - * @version <tt>$Revision: 1.5 $</tt> + * @version <tt>$Revision: 1.6 $</tt> * @author <a href="mailto:[EMAIL PROTECTED]">Simone Bordet</a> * @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a> */ @@ -96,7 +96,7 @@ protected void createService() throws Exception { // Create the JSR77 Managed Object - mMail = JavaMail.create( + mMail = JavaMailResource.create( getServer(), getJNDIName().startsWith( "java:/" ) ? getJNDIName().substring( 6 ) : @@ -194,7 +194,7 @@ { if(mMail != null) { - JavaMail.destroy( + JavaMailResource.destroy( getServer(), getJNDIName().startsWith( "java:/" ) ? getJNDIName().substring( 6 ) :
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development