Does WebSphere 8.5 (Java EE 6) support in any way services (Servlets, EJBs,...) acting as clients to another RESTFul WebService? E.g. by managing their HTTP connections?
The only link I've found so far is some supprt for services acting as clients to another JAX-RCP webservice using the ibm-webservicesclient-bnd.xmi descriptor:
Is there a client descriptor for RESTFul webservice clients, which could be used from a service?
EDIT
To make it more clear what I'm looking for:
Currently we create a RESTFul client in the service using WebResource
, ApacheHttpClient
, ApacheHttpClientHandler
from Jersey and HttpClient
from Apache. This is done programmatically, not declaratively, so WebSphere is not aware of these clients and the connections/ sockets they are using.
I'm looking for a way to create clients with resources managed by WebSphere, so I could do somehing like:
@Resource
private SomeResource someResource;
....
SomeClient client = new SomeClient(someResource);
or something similar. It could be something WebSphere specific. There could also be another way to get the resource than to inject it with @Resource.
But it should be WebSphere who manages and creates the max. number of connections, sockets, timeouts, pooling etc. and should allow to monitor these resources.
So something similar as we're using with JMS when we want to send messages to a topic or a queue:
@Resource
private ConnectionFactory connectionFactory;
@Resource
private Topic someTopic;
@Resource
private Queue someQueue;
Just that this time we want to send a request to another RESTFul webservice.