public void run()

in src/main/java/org/apache/openejb/cts/GreenmailRunner.java [42:71]


        public void run() {
            System.out.println(String.format("Starting greenmail with imap port %s and smtp port %s", imap, smtp));
            try {

                final Properties properties = new PropertiesBuilder()
                        .p("greenmail.verbose", "true")
                        .p("greenmail.setup.test.smtp", "true")
                        .p("greenmail.setup.test.imap", "true")
                        .p("greenmail.auth.disabled", "true")
                        .p("greenmail.users", "foo@foo.com")
                        .build();


                greenMailStandaloneRunner = new GreenMailStandaloneRunner();
                greenMailStandaloneRunner.doRun(properties);

            } catch (final Exception e) {
                e.printStackTrace();
            }

            while (true) {
                try {
                    Thread.sleep(SLEEP_INTERVAL);
                } catch (final InterruptedException e) {
                    break;
                }
            }

            System.out.println("Embedded greenmail thread stopping");
        }