Sun Java System Application Server Enterprise Edition 8.2 Release Notes

Solution

Do not exit the main thread. Wait for the message listener to notify the main thread before terminating the main thread.