posted 15 years ago
For my degree project I am trying to write a simple messaging system for the shift I supervise at work to communicate outside of work across the internet. It will display a shift rota for the day and also they can send messages to each other, asynchronously. However i am failing miserably to code it. It is suppose to work on RMI
The message system has three classes, message, messageOperator, messageOperatorHolder and an interface MessageOperatorInterface
This is the code for message
An this is the code for messageOperator
And then this is the messageOperatorHolder
When I compile it I get cannot use non-static method to reference static context.
I know this means that I am referencing the class messageOperator rather than an instance. But I need a system that will allow me to create messageOperators.
A little help? will need help the server in future if any one has got the time?
Regards
Al