Hi Tom,
Pardon my ignorance; Could you please clarify my below doubts.
1. The Hello World program uses a getBytes procedure which takes java string object as input and returns an array of
bytes; however the prototype for getBytes doesnt have any parameter attached to its prototyp in spairjava?? If we are passing a parameter it must be in the prototype right?
code .....................................
==========================
..from AIR05_01
displayBytes = String_getBytes(airString);
...from SPAIRJAVA
D************************************************* *********************
D String_getBytes...
D PR 65535A varying
D extproc(*JAVA:
D 'java.lang.String':
D 'getBytes')
================================================== =============
2. SVAIRJAVA has a main procedure ( I thought service programs wont have main procedures but only Subprocedures ) . When and How we are going to use it ? (I mean its clear to me that we are going to set the classpath using it and start the jvm but from where we will call this main procedure)?
My doubt is the code shown on page 114 is not inside a subprocedure body, then if we put it into a service program its never going to be executed right?
Could you please clarify...
Thanks in advance, many congrats for this revolutionary book!!!!!
Regards,
David
Pardon my ignorance; Could you please clarify my below doubts.
1. The Hello World program uses a getBytes procedure which takes java string object as input and returns an array of
bytes; however the prototype for getBytes doesnt have any parameter attached to its prototyp in spairjava?? If we are passing a parameter it must be in the prototype right?
code .....................................
==========================
..from AIR05_01
displayBytes = String_getBytes(airString);
...from SPAIRJAVA
D************************************************* *********************
D String_getBytes...
D PR 65535A varying
D extproc(*JAVA:
D 'java.lang.String':
D 'getBytes')
================================================== =============
2. SVAIRJAVA has a main procedure ( I thought service programs wont have main procedures but only Subprocedures ) . When and How we are going to use it ? (I mean its clear to me that we are going to set the classpath using it and start the jvm but from where we will call this main procedure)?
My doubt is the code shown on page 114 is not inside a subprocedure body, then if we put it into a service program its never going to be executed right?
Could you please clarify...
Thanks in advance, many congrats for this revolutionary book!!!!!
Regards,
David
Comment