![]() |
|
|
| Subject:
JAVA WEB:change 2 simple java classes to web services
Category: Computers > Programming Asked by: chrisjones23-ga List Price: $30.00 |
Posted:
24 Aug 2006 14:07 PDT
Expires: 23 Sep 2006 14:07 PDT Question ID: 759220 |
I could like someone to change 2 simple java classes to web services,
and create jsp or serlet interfacces to them. send me the project in
in elcipe for me to deploy to a server.
THIS JUST WORK IN JBOSS AND ECLISE
Status
String Status;
@WebMethod
public int setStatus(@WebParam(name = "newStatus") String newStatus) {
Status = newStatus;
return 0;
}
@WebMethod
public String getStatus() {
return Status;
}
////////////////////////////////
control:
Queue<String> CommandQueue = new LinkedList<String>();
@WebMethod
public String getCommand() {
if(!CommandQueue.isEmpty()){
return CommandQueue.remove();
}else{
return null;
}
}
@WebMethod
public int setCommand(@WebParam(name = "NewCommand") String NewCommand) {
CommandQueue.add(NewCommand);
return 0;
} |
|
| There is no answer at this time. |
|
| There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
| Search Google Answers for |
| Google Home - Answers FAQ - Terms of Service - Privacy Policy |