danielk wrote:
> n. Whilst jBASE does not have the necessary socket
> tools for connectivity from Java, you could do this by connecting to
> stdin and stdout, eg:
>
I don't generally recommend this as the pattern semantics for stdin and
stdout are usually streets apart from what you want and it is
inefficient. OK for a quick hack but not a good idea for commercial
implementations.
The best way is to use JNI or JVM addins, but that isn't for the feint
of heart.
Also don't forget the SOAP services stuff if you are using T24 and JDBC
if you just want data from some tables.
Jim
> Process process = Runtime.getRuntime().exec("myBasicProgram");
> BufferedWriter out = new BufferedWriter(new OutputStreamWriter
> (process.getOutputStream()));
> InputStreamReader in = new InputStreamReader(new DataInputStream
> (process.getInputStream()));
>
> The 'myBasicProgram' can use INPUT to receive from Java's stdout and
> PRINT to send to Java's stdin. You'd have to create your own protocol
> for communication. I like Dan Bernstein's netstrings protocol:
> http://cr.yp.to/proto/netstrings.txt
>
> Since you are a self-proclaimed novice, jRCS seems to be your best
> option.
>
> Dan
> >
>
--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at:
http://groups.google.com/group/jBASE/web/Posting%20Guidelines
IMPORTANT: Type T24: at the start of the subject line for questions specific to
Globus/T24
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---