Hello all!
I am trying to connect to our Artemis service running in the cloud as a
kubernetes service.
We have istio ingress  to expose HTTP and HTTPS routes from outside the
cluster to services within the cluster and some istio routing rules to
forward traffic to the appropriate services.

I tried running a sample JMS program using Netty Http tunnelling to connect
to the Artemis service via the public interface but the connection fails
(ActiveMQConnectionFactory.createConnection) . I have verified the Http
POST request reaches Artemis and it does send responses (200) but the
connection always fails.
Server side I am seeing some error after some time (not immediately):
AMQ212037: Connection failure to /10.5.170.231:48460 has been detected:
io.netty.handler.codec.http.HttpObjectAggregator$AggregatedFullHttpRequest
cannot be cast to io.netty.buffer.ByteBuf [code=GENERIC_EXCEPTION]

Using kubernetes port forwarding the same JMS program using http tunnel
works. The only difference I think is that the public interface goes via
the istio Envoy proxy.
Are there any issues using Netty http tunnelling via such proxies?
Any pointers on how to debug this issue?
Any help would be highly appreciated as I am kind of lost :).

Thanks
Sunil

Reply via email to