Google Answers Logo
View Question
 
Q: JAVA WEB:change 2 simple java classes to web services ( No Answer,   0 Comments )
Question  
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;
    }
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy