Bonjour,

je souhaite déployer des Web Services REST avec openEJB et les tester dans un premier temps avec un navigateur Web.

le service rest:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
 
 
@Path("/hello")
@Produces("text/xml")
public class RestServices {
 
	@GET
	public String message() {
		return "hello";
	}
}
Question : comment j'y accède avec un navigateur ? j'ai essayé:
http://localhost:4204/hello

http://localhost:4204/nom_du_jar/hello

nb: déployé avec eclipse et le plugin openejb


merci !