The answer depends on your architecture.
For example, if the server is multithreaded, and part of the business logic does not have a state, then the requests on the server will not be redefined, since each thread calls the function and returns the result.
, , , , .
, .
: :
http://weblogs.java.net/blog/2006/02/01/can-i-call-you-back-asynchronous-web-services
, , webservice. -, , , , .
, , , IP-. , , , , . , . , .
, , IP-: , oneway . , .
2: , :
@WebMethod
public ResponseModel[] AnswerQuestion(QuestionModel[] question) {
AnswerController ac = new AnswerController(question, ipaddress);
return mypackage.myclass.StaticAnswers.GetAnswers(ipaddress);
}
@WebMethod
public ResponseModel[] GetAnswers() {
return mypackage.myclass.StaticAnswers.GetAnswers(ipaddress);
}
, .
AnswerController . , , , , , const , , static.
StaticAnswers , - ipaddress .
.
, GetAnswers, . , .
, , , , - .