package ru sfedu computervisionrest services import javax ejb Stateles

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package ru.sfedu.computervisionrest.services;
import javax.ejb.Stateless;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
*
* @author orus-kade
*/
@Path("service")
public class Service {
static final Logger logger = LogManager.getLogger(Service.class);
@GET
@Path("test")
public Response find(){
logger.info("method test");
return Response.ok().build();
}
}