Is there any way to use websockets in axonIvy for some real time communication? we need a websocket server for an integration, and so far nothing has worked.

Additionally, is it possible to mount custom servlets in axonIvy

asked 10.10.2019 at 01:47

TareqK's gravatar image

TareqK
(suspended)
accept rate: 25%


The easiest way to provide async communication in Axon.ivy is currently a REST service. See the ConnectivityDemos for some examples: alt text

REST has been a good choice in the past for many customers as it does not require 'upgrade' request capabilities. Which is often a problem in real world installations where request reaches the client over front-end websevers that could apply request restrictions. Not to mention that the standard IIS integration approach, documented in the Axon.ivyEngine docs, can not use websockets. This restriction comes from the AJP protocol used between IIS and ivy.

However, if you know your target installation environment well you can activate any tomcat compatible websocket servlet. To do so the servlet must be deployed registered in a web-fragemnt.jar. For an example download the 6.3 engine and examine the portal-chat-endpoint.jar within ivy/webapps/WEB-INF/lib. Actually, we had websocket endpoints registered in there (based on PrimePush + Atmosphere). But, experience in many customer environments taught us that, for a generic platform, it is better to have an approach that works in any environment. So push servlets turned out to be a bad option.

link

answered 10.10.2019 at 08:19

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 10.10.2019 at 08:21

Hi Reguel You say that AJP will not work. What's the recommended way of integration with a front-end web server like Apache httpd or nginx? Would reverse proxy work?

(12.05.2020 at 04:06) timorupp timorupp's gravatar image
1

Hi @timorupp

Both mentioned alternatives should work (apache httpd + mod proxy) or nginx. While nginx seems to be more modern and is definitvely the best tested approach from our side.

However, we have a demo for both integrations: https://github.com/ivy-samples/docker-samples

Even so, the demos to not explicitly focus on websocket/HTTP upgrade scenarios.

(12.05.2020 at 04:21) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10
×2

Asked: 10.10.2019 at 01:47

Seen: 1,401 times

Last updated: 12.05.2020 at 04:24