You are not logged in.

  • "gaetaconsulting" started this thread

Posts: 4

Date of registration: Jan 6th 2010

  • Send private message


Wednesday, January 6th 2010, 9:26pm

something like a callback


I don't know if is possible.... but...

Let me try explain :

JABACO code :

dim rr as new rtrexx

rr.rexxStart "myrexx","parameters"



JAVA code :

inside rexx I send a host command, it invokes a java method from rtrexx class, names rexxHost...

I would like from java class rexxHost method invoke a sub/function inside jabaco form.

Maybe something like a class with "withevents".

Thank you



  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message


Thursday, January 7th 2010, 9:30am

Jabaco compiles the Jsrc sources into Java bytecode. You therefore can call/use many Jabaco structures directly from your Java classes.
It helps to decompile the generated Jabaco java code using tools like JAD. You then get an insight about the generated Java classes.
This should help how to use and call them.

To establish a callback facility, you could define a Jabaco handler class and pass a handler object to your Java class.

Code of handler class clsCallBackhandler In Jabaco:

Option Explicit

Public Sub callBackRoutine(someArgument As String)
Debug.Print "called with " & someArgument
End Sub

External class/routine in Java:


public void rexxStart(String name, clsCallBackHandler handler) {

  • "gaetaconsulting" started this thread

Posts: 4

Date of registration: Jan 6th 2010

  • Send private message


Thursday, January 7th 2010, 1:11pm

Thank you!

You gave me good ideas...

I used a decompiler and I investigated all java code generated by JABACO.

Incredible IDE... I have been using to VB along years and I have a lot of codes that can be converted.

This post has been edited 1 times, last edit by "gaetaconsulting" (Jan 7th 2010, 3:36pm)

Similar threads

Rate this thread
WoltLab Burning Board