@Dependent public class MyBean { @Inject private BatchCaller batchCaller; private void someMethod() { // ... batchCaller.call(remoteCallback1, RemoteService1.class).method1(); batchCaller.call(remoteCallback2, RemoteService2.class).method2(); // Invokes the accumulated remote requests using a single server round-trip. batchCaller.sendBatch(); } }