I managed to get very basic example up and running and I'm not familiar with the way JML is working.
I created a main class with main method, created a new instace of MsnClass which extends BasicMessenger.
Now, when callin methods like login, getContacts, logout from main method, it does't wait till the process is finished - it keeps going on, and the
worse it is that a thread keeps running even after my main method completed.
How can I wait in main class until login is completed?
And at the end how can I completely shut down program without killing it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
I managed to get very basic example up and running and I'm not familiar with the way JML is working.
I created a main class with main method, created a new instace of MsnClass which extends BasicMessenger.
Now, when callin methods like login, getContacts, logout from main method, it does't wait till the process is finished - it keeps going on, and the
worse it is that a thread keeps running even after my main method completed.
How can I wait in main class until login is completed?
And at the end how can I completely shut down program without killing it?
Aditionally some code:
http://pastebin.com/m402af3f1
Login works and it throws an event, but I can't get contacts.