Solved

Trigger IBM Personal Communication Macro from a Java Application

Posted on 2006-12-01
5
924 Views
Last Modified: 2012-06-21
Hey,

Background:
At the moment we have a java application that uses Host-on-Demand (HOD) to access Host via XML Macros. Due to certain conditions (don't ask), we have to use IBM Personal Communication (PCOMM) now to access HOST/MainFrame.

Question:
I can always re-write the HOD XML macros into VB/PCOMM Macros but I need a way to trigger them from Java Application. That is, the application will send information to PCOMM and trigger the macro. I also would like to know if there is a way to change code to use PCOMM instead of HOD and still run the existing macros (would they work?) which are in XML (HASCRIPT) which would be a easier solution to implement.

Things i have tried/looked at:
- Runtime Exec
- Host Access Class Library (There is a STARTMACRO function for C++, VB, Lotus Notes but not for Java)
- Host Access Beans Library (looking into at the moment - used in HOD)

Thanks in advance.

Ali

0
Comment
Question by:alisadaqain
  • 2
5 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 18059696
PCOMM and HOD are two separate and distinct products.
The good news is that each has a documented Application Programming Interface (API),
so it is possible that you might be able to change from one to another.  However, I don't
think that it would be easy.

I haven't dealt with HOD, but I have done some PCOMM programming.  However, the PCOMM
programming that I did was using REXX, and not Java.  So, I don't know how easy, or difficult
it might be to do what you are trying to do.

When you say that you need to use Java, is that only Java, or are you allowed to develop Java
Native Interface (JNI) routines?  If this is allowed, it is more likely to be possible.

Since HOD and PCOMM are different products, each with its own API, and macro language,
it MIGHT be possible to convert from one to the other, but I believe that it would be a non-trivial
task.  It all depends on how intricate the macros are that need to be converted.
0
 

Author Comment

by:alisadaqain
ID: 18070715
@ HonorGod

No, only Java. JNI as been ruled out for the time being.

I was thinking, maybe i could output the data in a file. The user would switch to PCOMM, run the macro (PCOMM script / VB) which would open and read the file and use the information in the file for host screens.

Is there a better way to do this? What do you think?
0
 

Author Comment

by:alisadaqain
ID: 18165832
I solved it.

Re-did the macro's in vbscript - PCOMM and read from a file which the java application writes to once data is entered.

Thanks,

Ali
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 18198436
Closed, 250 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question