Gateway integration

Add example communication from Java to the gateway for both consuming and producing messages.