Calling cobol from Java ( EJB ) with NetRexx on VM/ESA

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Calling cobol from Java ( EJB ) with NetRexx on VM/ESA

Pierre Lessard
Hello!

I was wondering if you could  give me some advise about what we are
trying to do: We are going to have TCP/IP  installed on our VM/ESA 2.4
machine and want to try to re-used legacy cobol code  with real time COBOL
program call from Java. Some EJBs on our Websphere needs to  execute some
cobol on VM/ESA. Is it possible to implement some kind of a server  daemon
in netrexx listening on a particular port? this deamon could serve
requests from external world and then pass parameters and execute COBOL
code via NetRexx CMSPipe class or CMSRexx class? Is this a possible
solution?

Your advise or any hints about that would be  appreciated....!

Thank you in advance,

Pete.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>


Reply | Threaded
Open this post in threaded view
|

Re: Calling cobol from Java ( EJB ) with NetRexx on VM/ESA

Geoffrey J. Cullen
Pierre,
 
You can certainly write a daemon in NetRexx, Rexx with sockets, BAL, or
any other language that has a Socket API and runs under CMS.  Pick some
port for listening that is not used by any other server daemon and
reserve it in the PORT section of the VM TCP/IP profile.  The new daemon
server can then listen for a client's service request on its port and
pass the conversation off to another task that should be spawned by the
server.  From this point the spawned task will create a unique socket
connection with the client and service its request by calling any
further programming.

Hints:  Use the FTPSERVER virtual machine definitions as a model for
your new server virtual machine.

Regards,
Geoffrey Cullen



Pierre Lessard wrote:

>Hello!
>
>I was wondering if you could  give me some advise about what we are
>trying to do: We are going to have TCP/IP  installed on our VM/ESA 2.4
>machine and want to try to re-used legacy cobol code  with real time COBOL
>program call from Java. Some EJBs on our Websphere needs to  execute some
>cobol on VM/ESA. Is it possible to implement some kind of a server  daemon
>in netrexx listening on a particular port? this deamon could serve
>requests from external world and then pass parameters and execute COBOL
>code via NetRexx CMSPipe class or CMSRexx class? Is this a possible
>solution?
>
>Your advise or any hints about that would be  appreciated....!
>
>Thank you in advance,
>
>Pete.
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
>[hidden email]
>with the following message in the body of the note
>unsubscribe ibm-netrexx <e-mail address>
>
>  
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>


Reply | Threaded
Open this post in threaded view
|

Re: Calling cobol from Java ( EJB ) with NetRexx on VM/ESA

Pierre Lessard
Is there any limitations of calling multiple CMS commands from a PIPE using
the CMSPipe class from NetRexx? I mean, if my tcp server is serving multiple
requests simultanously, can it start as many PIPE as  needed to execute the
request?

For example, the tcp server is doing multitasking (multithreads, as
mentioned in the example of the "Network computing with Java et NetRexx"
docuement) to serve up to 2000 potential requests at same time (peak
times)... each request starts a new thread in Java (actually in NetRexx)
which doing a CMS Pipe to call a cobol program with some parameters. The
cobol executes then returns results to the pipe and the Java read back from
the pipe then returning results on the tcp stream. Is there a limitation in
number of CMSPipe running at same time? Or, are we limited to execute
CMSPipe commands in sequence? Will Java execute CMS pipe commands
simultanously? The goal is to re-use old legacy cobol code in a production
system, so the performance has to be kept in mind.....

Thank you very much Goeffrey, your hints is VERY appreciated!

Pete

----- Original Message -----
From: "Geoffrey J. Cullen" <[hidden email]>
To: "Pierre Lessard" <[hidden email]>
Cc: <[hidden email]>
Sent: Thursday, March 20, 2003 11:45 AM
Subject: Re: Calling cobol from Java ( EJB ) with NetRexx on VM/ESA


> Pierre,
>
> You can certainly write a daemon in NetRexx, Rexx with sockets, BAL, or
> any other language that has a Socket API and runs under CMS.  Pick some
> port for listening that is not used by any other server daemon and
> reserve it in the PORT section of the VM TCP/IP profile.  The new daemon
> server can then listen for a client's service request on its port and
> pass the conversation off to another task that should be spawned by the
> server.  From this point the spawned task will create a unique socket
> connection with the client and service its request by calling any
> further programming.
>
> Hints:  Use the FTPSERVER virtual machine definitions as a model for
> your new server virtual machine.
>
> Regards,
> Geoffrey Cullen
>
>
>
> Pierre Lessard wrote:
>
> >Hello!
> >
> >I was wondering if you could  give me some advise about what we are
> >trying to do: We are going to have TCP/IP  installed on our VM/ESA 2.4
> >machine and want to try to re-used legacy cobol code  with real time
COBOL
> >program call from Java. Some EJBs on our Websphere needs to  execute some
> >cobol on VM/ESA. Is it possible to implement some kind of a server
daemon

> >in netrexx listening on a particular port? this deamon could serve
> >requests from external world and then pass parameters and execute COBOL
> >code via NetRexx CMSPipe class or CMSRexx class? Is this a possible
> >solution?
> >
> >Your advise or any hints about that would be  appreciated....!
> >
> >Thank you in advance,
> >
> >Pete.
> >
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
> >To unsubscribe from this mailing list ( ibm-netrexx ), please send a note
to
> >[hidden email]
> >with the following message in the body of the note
> >unsubscribe ibm-netrexx <e-mail address>
> >
> >
> >
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>