use of org.codice.alliance.nsili.endpoint.managers.RequestManagerImpl in project alliance by codice.
the class SubmitStandingQueryRequestImpl method get_request_manager.
@Override
public RequestManager get_request_manager() throws ProcessingFault, SystemFault {
if (requestManager == null) {
String requestManagerId = UUID.randomUUID().toString();
RequestManagerImpl requestManagerImpl = new RequestManagerImpl();
try {
_poa().activate_object_with_id(requestManagerId.getBytes(Charset.forName(NsiliEndpoint.ENCODING)), requestManagerImpl);
} catch (ServantAlreadyActive | ObjectAlreadyActive | WrongPolicy e) {
LOGGER.debug("Error activating RequestManager: ", e);
}
org.omg.CORBA.Object obj = _poa().create_reference_with_id(requestManagerId.getBytes(Charset.forName(NsiliEndpoint.ENCODING)), RequestManagerHelper.id());
requestManager = RequestManagerHelper.narrow(obj);
}
return requestManager;
}
Aggregations