Posted By:
ryn_06
Posted On:
Sunday, May 7, 2006 05:09 AM
I want to know if this is the right way to go about the RMI code. Take grades for example, is it defined properly everywhere? The method does the following: Accepts Student ID# Returns Course Name, Term and Course grade Is it possible to combine the public grades(String studentID); & class grades implements Serializable into one code only? Thanks. public interface regSystem extends Remote { ... public grades(String studentID); } public class regSystem _Imp extends UnicastRemoteObject implements regSystem { ... public grades(String studentID); { Return gradeDisplay; } } clas
More>>
I want to know if this is the right way to go about the RMI code. Take grades for example, is it defined properly everywhere? The method does the following:
Accepts Student ID#
Returns Course Name, Term and Course grade
Is it possible to combine the public grades(String studentID); & class grades implements Serializable into one code only?
Thanks.
public interface regSystem extends Remote
{
...
public grades(String studentID);
}
public class regSystem _Imp extends UnicastRemoteObject implements regSystem
{
...
public grades(String studentID);
{
Return gradeDisplay;
}
}
class grades implements Serializable
{
String gradeDisplay;
String courseName,
String term;
String courseGrade;
grades(String studentID)
{
...
gradeDisplay = courseName + " " + term + " " + courseGrade + " ";
}
}
<<Less