Solved

Trigger IBM Personal Communication Macro from a Java Application

Posted on 2006-12-01
5
947 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …

730 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