Messengers is a JALSE example project. It is a simulation of several people text messaging each other (upon receiving a message a reply is sent back).
- Build using
./gradlew build
(see Building Java Projects with Gradle) - Run using
./gradle run
(See The Application Plugin)
Optionally you can also create an Eclipse project using ./gradlew eclipse
(see The Eclipse Plugins).
- Messengers are created.
- Messengers are then paired together.
- A SendMessage is scheduled for each messenger.
- A message is sent by creating a Message entity.
- Sending a messages causes ReplyToMessage to fire sending a reply back.
- Repeat from 4.
See output.txt (it's big).
See the Wiki for more information.