I've the following running:
A JeriServlet accepting incoming jeri requests. A ServletEndpoint
connecting to the JeriServlet over HTTP.
It's build with 10 classes, and a dependency to Apache HTTPClient. I
tried to re-use the HTTPEndpoint implementation, so it could be
reintegrated by adding a request path to the HTTPEndpoint class. But i
got a major headache while working on it, and i already had a similar
(non-jeri) implementation running, so i took a shortcut.
It's completely without Constraints, i need to work on that. The number
of classes is bigger than expected, because i abstracted some of the
functionality into some baseclasses which i need for the service proxy.
There are several nasties in the code, such as the proxy handling, which
is currently not per URL, the initialization of the JeriServlet which
does not give me enough information to find the deployment URL. Also the
MultiThreadedHttpConnectionManager and HttpClient are instanciated for
every EndpointImpl.
The configuration is the following:
endpoint.server
{
serverEndpoint = JeriServlet.getServerEndpoint();
}
or
endpoint.server
{
serverEndpoint =
JeriServlet.getServerEndpoint("http://jeri.qcg.nl/blah");
}
The last variant can be used to make sure the servlet is run on the
proper basepath, and when one needs more than 1 serverEndpoint.
Gr. Sim
--
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Leiden: 28088397