<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Using Websockets in axonIvy 7.4</title><link>https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4</link><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Additionally, is it possible to mount custom servlets in axonIvy&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 12 May 2020 04:21:45 -0400</lastBuildDate><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4#4564</link><description>&lt;p&gt;Hi &lt;a href="https://answers.axonivy.com/users/1187/timorupp"&gt;&lt;a href="https://answers.axonivy.com/users/1187/timorupp"&gt;@timorupp&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;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. &lt;/p&gt;
&lt;p&gt;However, we have a demo for both integrations: &lt;a href="https://github.com/ivy-samples/docker-samples"&gt;https://github.com/ivy-samples/docker-samples&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Even so, the demos to not explicitly focus on websocket/HTTP upgrade scenarios.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 12 May 2020 04:21:45 -0400</pubDate><guid>https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4#4564</guid></item><item><title>Comment by timorupp on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4#4563</link><description>&lt;p&gt;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?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">timorupp</dc:creator><pubDate>Tue, 12 May 2020 04:06:28 -0400</pubDate><guid>https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4#4563</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4/4094</link><description>&lt;p&gt;The easiest way to provide async communication in Axon.ivy is currently a REST service. 
See the &lt;code&gt;ConnectivityDemos&lt;/code&gt; for some examples:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/connectivyDemosAsync.png"&gt;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &lt;code&gt;ivy/webapps/WEB-INF/lib&lt;/code&gt;. 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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 10 Oct 2019 08:19:49 -0400</pubDate><guid>https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4/4094</guid></item></channel></rss>