This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Servlet(urlMappings={"/MinhaAplicacao"}) | |
public class MinhaServlet { | |
@GET | |
public void tratadorGet(HttpServletRequest request, | |
HttpServletResponse response) { | |
.... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Local | |
interface ClienteLocal { | |
public void metodo(); | |
} | |
@Remote | |
interface ClienteRemote { | |
public void metodo(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebService | |
@Stateless | |
class Cliente { | |
public void metodo() { | |
// Meu metodo remoto... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Stateless | |
class Cliente { | |
public void metodo() { | |
// Meu metodo remoto.... | |
} | |
} |
NewerOlder