private void handlePost(HttpServletRequest req,
HttpServletResponse resp,
EjbRuntimeEndpointInfo endpointInfo)
throws IOException {
AdapterInvocationInfo adapterInfo = null;
ServletAdapter adapter;
try {
try {
adapterInfo = (AdapterInvocationInfo) endpointInfo.prepareInvocation(true);
adapter = adapterInfo.getAdapter();
if (adapter != null) {
adapter.handle(null, req, resp);
} else {
logger.log(Level.SEVERE, LogUtils.UNABLE_FIND_ADAPTER, endpointInfo.getEndpoint().getName());
}
} finally {
// Always call release, even if an error happened