Workshop exercises: develop interoperability components in Java (PEX)
Hi Developers!
Let me share with you some exercises from a workshop about developing interoperability components in Java using PEX (Production EXtension).
You will find slides and step by step exercises about:
- Understanding simple PEX components coded in Java.
- Making some changes on them.
All built using containers, so you don't need to build a local Java environment.
You can reach the repository here:
https://openexchange.intersystems.com/package/workshop-pex
Seems like 'intersystemscommunity/jgw' is not available anymore.
Hi,
It seems the code was using a deprecated image name.
I've just updated it to use
intersystemsdc/jgw
.Please, try again.
Yeah I've merged
intersystemscommunity
org intointersystemsdc
recently.Great to see it used!
Hi @Eduard Lebedyuk / @Alberto Fuentes,
I am trying to use PEX / Java without docker.
So i have a jar containing the FirstOperation class and its all dependencies.
When i configure the object gateway and uses the same it never identifies the JAVA class.
Gives error as below,
Can you please guide me on, how do it use pex without docker. Why the class Loader can't find the java class within the jar?
I'll really be grateful to you, and wait for your response.
Regards,
Tirthankar
Hi Tirthankar,
You probably need to set up the Object Gateway classpath correctly.
I've just got it working as follows:
I've copied them from the jgw container:
You can also generate your .jar files, just make sure it contains all the required dependencies.
127.0.0.1
4444
/shared/FirstDemo.jar:/shared/gson-2.8.5.jar:/shared/intersystems-utils-3.1.0.jar
After that, start your Object Gateway, you should see something like:
Executing O.S. command: java -Xrs -classpath /shared/FirstDemo.jar:/shared/gson-2.8.5.jar:/shared/intersystems-utils-3.1.0.jar:/usr/irissys/dev/java/lib/JDK18/intersystems-gateway-3.1.0.jar:/usr/irissys/dev/java/lib/JDK18/intersystems-jdbc-3.1.0.jar com.intersystems.gateway.JavaGateway 4444 "" "" 127.0.0.1 ""
FirstOperation
:localhost
4444
That should work.
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue