I have to do an implementation for a class in the Java language by using Tomcat 7 and Axis2 under Ubuntu 11.10 32bit.
The requirement is to make a dynamic web-server project for simple registration, register and unregister course. Also, each faculty handle their courses and the student will be able to connect to all the courses in all the faculties.
serverImp.java
class serverImp{
HashMap<String,Intager> courses;
public String register(String courseID){
int tmp=courses.get(coursesID);
courses.add(coursesID,tmp-1);
}
public String register(String courseID){
int tmp=courses.get(coursesID);
courses.add(coursesID,tmp+1);
}
}
This is only an example there is more functions of the web-server. Now I have to run the same implementation more than one time with the different name.
for example:
- localhost:8080/art/
- localhost:8080/eng
I've done all this and I can make a client for one server, but the problem now is that how I can make the web server client work with all this servers using only one stub??