Wednesday, 18 September 2024

How to deploy common java utility in IIB/ACE

 

Description:


There used to be a confusion in developer's mind when it comes to have a reusable java code and deploy that in IBM IIB/ACE.


there are few solutions to it, but the most preferred one is to bundle the java code in a jar and place that in shared classes directory under IIB/ACE' working path - /var/mqsi/shared-classes.


once the jar is copied, restart the EG/IS where you would use the java call.


---------------------------------------------------------------------------------

Steps to bundle the java code in a jar and deploy that - 

----------------------------------------------------------------------------------


1. Make sure to switch your perspective to Java.













2. Now right-click on the java project and select - Export


3. Select the below option to export the java project as JAR file - then click Next













4. Now in this window you would see the java project selected, and you need to provide the location where the jar file should be created and the jar file name. then click Next


















5.  You can change below options if needed else proceed to Next


















6. You would see below in next window and if needed you can make changes accordingly, or just proceed with default options and click finish.



















7. Now you will have the jar file generated at the specified location with the name provided to that.

take that jar and keep that in shared classes directory under IIB/ACE' working path/var/mqsi/shared-classes


8. Restart the EG with below command-

mqsistopmsgflow NodeName -e EGname

mqsistartmsgflow NodeName -e EGname


9. Now you can test your flow.


No comments:

Post a Comment

Sending file as multi-part MIME over http in ACE - esql

  How to send a file over http as a multipart mime? Below are the steps to do that - 1. Make sure you have the data encryption in place for ...