?
Solved

Trigger IBM Personal Communication Macro from a Java Application

Posted on 2006-12-01
5
Medium Priority
?
1,006 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

752 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