Hello,
I have 2 resources: A & B
I would like to invoke A.m1() from B.m1().
I am currently using Jersey Client API in resource B to achieve this.
Client c = Client.create();
WebResource r =
c.resource("
http://localhost:8080/rest/A/m1");//c.resource("/rest/A/m1") ?
String result = r.accept("text/plain").get(String.class);
Is it possible to invoke the method using relative URI than using
absolute URI?
Thank you,
Arul