Dear visitor, welcome to Jabaco - Community.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
something like a callback
Hi,
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
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) {
...
handler.callBackRoutine("hello!");
...
}
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)