I haven't looked too deeply into how this works, but basically the unit tests run their own JBoss instance via calling org.jboss.system.server.ServerImpl methods directly from org.jboss.mail.MBeanServerUtil in the test suite. There is some info about this here: http://jboss.org/wiki/Wiki.jsp?page=ExceptionsInTheMailServicesUnitTestsWithJBosslt3.2.4RC1
The steps I have taken to get it all to run (apart from the issues mentioned below - it was all fine a few weeks ago) are: 1) checkout and build JBoss 3.2.4RC1 with jdk 1.4.2 2) Copy the following from JBoss 3.2.4RC1 to jboss-mail/lib javax.servlet.jar jboss-common.jar jboss-jmx.jar jboss-system.jar junit.jar mail.jar twiddle.jar 3) Set the following environment variables: ANT_HOME=<root of your ant 1.5.x installation> JBOSS_HOME=<root of jboss-3.2.4RC1> PATH=%ANT_HOME%;%PATH% 4) Then do an >ant clean deploy test (No instances of JBoss should be running since it is starting its own) There is also the org.jboss.mail.dev.ClientScriptRunner. I'm not sure what state this is in, but the idea is you deploy mail.ear in JBoss and it allows you to run scripts against the server: S: 220 %ANYTHING% C: EHLO noone.nowhere.com END S: 250-%ANYTHING% Hello noone.nowhere.com (localhost.localdomain [127.0.0.1]) C: %NOTHING% END S: 250 AUTH LOGIN PLAIN C: AUTH LOGIN END S: 334 VXNlcm5hbWU6 C: %encode(test) END S: 334 UGFzc3dvcmQ6 C: %encode(testpw) END S: 235 Authentication Successful C: MAIL FROM: <[EMAIL PROTECTED]> END S: 250 Sender <[EMAIL PROTECTED]> OK C: RCPT TO: <[EMAIL PROTECTED]> END S: 250 Recipient <[EMAIL PROTECTED]> OK C: DATA END S: 354 Ok Send data ending with . C: bla bla . END Cheers, Kab <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825054#3825054">View the original post</a> <a href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825054>Reply to the post</a> ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
