Hello Sergey,
> So UriInfo won't help in your case ?
I am not quite sure about this. Let me give you a more detailed example:
Service Foo:
------------
@Path("/foo")
public interface Foo {
@Path("/{id}")
Foo retrieve(@PathParam("id") final String id);
}
Service Bar:
------------
@Path("/bar")
public interface Bar {
@Path("/{id}")
Bar retrieve(@PathParam("id") final String id);
}
Simple installation:
--------------------
The jaxrs:server will look like this:
<jaxrs:server id="RestServices" address="">
<jaxrs:serviceBeans>
<!-- Configured services available on runtime -->
<ref bean="service.foo"/>
<ref bean="service.bar"/>
</jaxrs:serviceBeans>
</jaxrs:server>
Distributed services installation:
----------------------------------
The jaxrs:server configurations will look like this:
Machine A (Service Foo):
------------------------
<jaxrs:server id="RestServices" address="">
<jaxrs:serviceBeans>
<!-- Configured services available on runtime -->
<ref bean="service.foo"/>
</jaxrs:serviceBeans>
</jaxrs:server>
Machine B (Service Bar):
------------------------
<jaxrs:server id="RestServices" address="">
<jaxrs:serviceBeans>
<!-- Configured services available on runtime -->
<ref bean="service.bar"/>
</jaxrs:serviceBeans>
</jaxrs:server>
So I guess the injected UriInfo on service Foo is unable to get any information
about service Bar and vice versa.
Best regards,
Marko
-------------------------------------------------------
Fachinformationszentrum Karlsruhe, Gesellschaft für wissenschaftlich-technische
Information mbH.
Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim HRB
101892.
Geschäftsführerin: Sabine Brünger-Weilandt.
Vorsitzender des Aufsichtsrats: MinDirig Dr. Thomas Greiner.