1. Aimee Stephens
  2. PowerBuilder
  3. Thursday, 11 November 2021 19:42 PM UTC

I'm using PowerBuilder 2019 R3 and the documents are way outdated and only allow for Visual Studio 8.0 and below and the code examples lead you to 404 page not found.  We have the PB as a frontend but need to communicate with COBOL programs that are currently being compiled into Java classes.  We recently upgraded to PB 2019 in hopes of an easy transition to calling these new classes but without being able to load the wizard to create the .pbx extensions to create the marshaler(?) I am at a complete loss and stanstill.  Does anyone have any code they can share that creates this or can anyone at least point me in some kind of direction that can get me started?  The documentation issue was brought to Appeon's attention almost a year ago and their response was that it would be listed as an enhancement which obviously has not been fixed or enhanced yet.  I am not fluent in C++ but I do have a vague understanding.  Any help would be very appreciated.

Roland Smith Accepted Answer Pending Moderation
  1. Friday, 12 November 2021 23:05 PM UTC
  2. PowerBuilder
  3. # 1

I've created several C++ PBNI projects and I never bothered with the wizard.

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Friday, 12 November 2021 22:23 PM UTC
  2. PowerBuilder
  3. # 2

You guys are working too hard. I use the RUN command to execute an installed version of the java.exe, with parameters!  :)
This runs the Java code asynchronously.
I have a function triggered by a timer to check to see if the expected output exists, and if so then the Java process has completed.

Comment
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Thursday, 11 November 2021 21:02 PM UTC
  2. PowerBuilder
  3. # 3

Here's a sample of how to do it directly from PB (not through PBNI) from Real's How To:

https://www.rgagnon.com/pbdetails/pb-0224.html

Also, have you seen this thread:

https://community.appeon.com/index.php/qna/q-a/pb-java-integration

>>but without being able to load the wizard to create the .pbx extensions to create the marshaler(?) I am at a complete loss and stanstill

You don't have to use the wizard anymore.  Just can directly "import" (create the wrapper) directly into a PBL:

https://docs.appeon.com/pb2019/extension_reference/ch01s02.html#:~:text=In%20the%20System%20Tree%2C%20right,the%20library%20in%20your%20target.

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 11 November 2021 20:24 PM UTC
  2. PowerBuilder
  3. # 4

Hi Amiee;

  AFAIK you do not need the PBNI feature to call Java classes. Here is how I do this directly from PB code ....

FYI:  http://chrispollach.blogspot.com/2019/09/pb2j.html

HTH

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.