pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Java pastebin - collaborative debugging tool View Help


Posted by metalklesk on Sun 24 May 04:40
report abuse | download | new post

  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5.  
  6. package org.modelo;
  7.  
  8. import javax.jws.WebMethod;
  9. import javax.jws.WebParam;
  10. import javax.jws.WebService;
  11. import javax.ejb.Stateless;
  12.  
  13. /**
  14.  *
  15.  * @author metalklesk
  16.  */
  17. @WebService()
  18. @Stateless()
  19. public class UsuarioWebService {
  20.  
  21.     /**
  22.      * Web service getUsuario
  23.      * @param user
  24.      * @param passwd
  25.      * @return
  26.      */
  27.     @WebMethod(operationName = "getUsuario")
  28.     public Usuario getUsuario(@WebParam(name = "user")
  29.     String user, @WebParam(name = "passwd")
  30.     String passwd) {
  31.         AccesoDatos datos = AccesoDatos.getInstance();
  32.  
  33.         return datos.getUsuario(user, passwd);
  34.     }
  35.  
  36.     /**
  37.      * Web service getUsuario
  38.      * @param usuario
  39.      * @return
  40.      */
  41.     @WebMethod(operationName = "setUsuario")
  42.     public Boolean setUsuario(@WebParam(name = "usuario")
  43.     Usuario usuario) {
  44.         AccesoDatos datos = AccesoDatos.getInstance();
  45.  
  46.         return datos.setUsuario(usuario);
  47.     }
  48.  
  49. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post