> 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...

Can you provide the source code and configuration for this sample JMS
program?

> 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]...

Is there a stack-trace associated with this? If so, could you provide it?

> Are there any issues using Netty http tunnelling via such proxies?

As far as I can tell this is not a normal use-case. In fact, you're the
first person I've heard of trying something like this. Therefore, it's hard
to say if there are "any issues." Given your experience I would say that
there are.

Aside from the specific problems you're facing, can you elaborate on why
you're attempting to connect your JMS application(s) via HTTP through an
istio proxy? Messaging connections are stateful unlike HTTP connections
(which are stateless). It's technically possible to use HTTP, but it's
certainly not optimal.


Justin

On Wed, May 25, 2022 at 2:37 AM Sunil Varma <sunil.k.va...@gmail.com> wrote:

> 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