Java call-in on Linux

Author: frode.fausa@logica.com (fkfausa)

gianni said [SOLVED] Solutions: Issue #1: TCP error [24]: Too many open files

It depends from too low maximum number of open files at kernel level; taking a simplified approach there are 2 parameters to change: Step 1 - maximum number of opened files at system level:     $ sudo vi /etc/sysctl.conf add:     net.core.somaxconn=131072   fs.file-max=131072 exec following comand to have your kernel considering modifications:     $ sudo sysctl -p Step 2 - maximum number of opened files at user session level:    $ sudo vi /etc/security/limits.conf add:     * soft nofile 65535   * hard nofile 65535 Step 3 - maximum number of opened files as constant at kernel compile level:    $ sudo vi /usr/include/linux/limits.h change: NR_OPEN = 65536

Step #1 and #2 are mandatory; step #3 is optional.

Issue #2 - Failed to start (len=191) /home/usys/uniface9604/common/bin/userver -srvid=27 -dnp=TCP:+13001||06F416A6-E1D0-11E4-B2F7-D60C3E25F06A| -drv=ANY -ust=lisrv -dir=/home/usys/uniface9604/gest -asn=/opt/labinf/asn96/lisrv.asn

It depends from a bug in glibc; upgrade your glibc to version >=2.18 or to latest avalable for currently supported RedHat Enterprise and derivative.

Consider I didn't change ANYTHING on Uniface!!!

Gianni  

Hi Gianni! I was searching the forums for "Java call-in on Linux". This post seems to indicate that this is possible. Is that correct? If yes, how? I hope you can take som time to answer this, crossing my fingers Embarassed.   Regards, Frode   EDIT [DISELI]: Created a new topic for this

4 Comments

  1. Very unlikely this is going to happen. We've looked into it on a couple of occasions and it's complicated and a lot of work. It was one of the reasons why some of the features of the old Uniface Flow product was only available on windows. At that time we wanted a tightly coupled way to integrate Uniface with java for our own internal purposes. We've looked since then, in case there were new java features which would make it easier, and there wasn't.  If you've got a really compelling reason to have the functionality included, then I'd suggest taking the 'commercial route' and talk to your sales/commercial contact. 


    Author: Adrian Gosbell (adrian.gosbell@synapse-i.jp)
  2. fkfausa said Hi Gianni! I was searching the forums for "Java call-in on Linux". This post seems to indicate that this is possible. Is that correct? If yes, how? I hope you can take som time to answer this, crossing my fingers Embarassed.   Regards, Frode

     Hi Frode, If I understand it correctly then Gianni is "exposing" Uniface Services as SOAP Web Services (using the SOAP Call-In interface). And the mentioned Java application is "just" calling the (Uniface) SOAP Web Services. For more information about how to call-in to Uniface from a Web Service Client, see Deploying a Uniface Web Service (in the Uniface Library). And the the Uniface Java call-in functionality is currently only available on Microsoft Windows platforms. But I seem to remember that you could use RMI (Remote Method Invocation) for calling Uniface from a Java application (or applet) running on (e.g.) Linux. Okay, this still means that Uniface needs to be running on a Windows system (where the actual Java Call-In is done). And we used to have a sample (in Uniface 8) that showed how you could do a Call-in from Java using RMI. Unfortunately this sample is not shipped anymore with Uniface 9. And I'm not sure if the version 8 sample will also work with version 9. Maybe one of the other forum members knows more about this. Hope this helps. Regards, Daniel


    Author: diseli (daniel.iseli@uniface.com)
  3. Thanks Daniel! Sadly, my whole point was to run UnifAce AND Java on Linux using Java call-in on Docker containers, and this seems impossible as of now.   Regards, Frode


    Author: fkfausa (frode.fausa@logica.com)
  4. Hi Frode, You are welcome. And you are correct: at this moment there's unfortunately no direct way to do a Java Call-In (to Uniface) on Linux. But I saw that you already have created a new wish and a support case for this. Regards, Daniel


    Author: diseli (daniel.iseli@uniface.com)