This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am building an RMI app and I need the client to be able to listen events that take place at the server. In other words I need a sort of a remote listener. Do you have any ideas how I can manage to do it?
Welcome to the JavaRanch! We have a couple of rules here, one of which is the naming policy which requires the use of real or real-looking display name -- please go to your profile to edit your display name into something compliant.
Having a client add a listener to the server in RMI is usually called an "RMI callback". Basically you make an interface that extends Remote to be your listener interface. You add methods to the server to add and remove listeners from a Collection internal to the server (like a Vector or ArrayList) you then add a method to iterate through the Collection and call each listener whenever the event you were waiting for happens.