--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hapi-fhir/ac1b249c-f53f-4f2a-a40b-34cd0d05ba1en%40googlegroups.com.
@Component
@Interceptor
public class ShardInterceptor extends InterceptorAdapter {
@Hook(Pointcut.SERVER_INCOMING_REQUEST_PRE_HANDLED)
public void routeToShard(RequestDetails requestDetails) {
ShardContextHolder.setShardKey(requestDetails.getHeader("X-Country-ID"));
}
@Hook(Pointcut.SERVER_OUTGOING_RESPONSE)
public void clearShardContext() {
ShardContextHolder.clear();
}
}
From Database 1, (70 Resources)
From Database 2, (70 Resources)
Error thrown while attempting to post few resources,