This file contains hidden or 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 | |
public class SimpleSpeakQuery implements SpeakQuery { | |
private String message = new String("Hello, "); | |
public String sayHello(String name) throws Exception { | |
return message + name; | |
} | |
} |
This file contains hidden or 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
public interface SpeakQuery { | |
public String sayHello(String name) throws Exception; | |
} |
This file contains hidden or 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 | |
public class Ws { | |
@Inject SpeakQuery bean; | |
@WebMethod | |
public String sayHelloSlow(String name) throws Exception { | |
return bean.sayHello(name); | |
} | |
} |
NewerOlder