TcpJavaGateway, can anybody give me information about the IBM CTG package?

Hi, I have been given an application to debug. I am not sure what this class (TcpJavaGateway) does but the error is related to it. I would like to know what purpose to the CTG package to us?

I know it is some kind of transaction gateway to connect to a a database but I am interested in why do we need it? Why not use a jdbc connection or something.

Also if you can tell me more about the error it would be great! Thanks.
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:java.io.EOFException
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at java.lang.Throwable.<init>(Throwable.java)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at java.io.DataInputStream.readFully(DataInputStream.java)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at java.io.DataInputStream.readInt(DataInputStream.java:471)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at com.ibm.ctg.client.GatewayRequest.readObject(GatewayRequest.java:986)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at com.ibm.ctg.client.TcpJavaGateway.run(TcpJavaGateway.java:851)
[11/7/08 19:34:07:005 PST] 7e607e60 SystemErr     R 19:34:07:005 : LL-Socket[addr=172.21.248.5,port=58100,localport=3065]com.ibm.ctg.client.TcpJavaGateway@7de27de2: .TcpJavaGateway:	at java.lang.Thread.run(Thread.java:806)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:java.io.EOFException
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at java.lang.Throwable.<init>(Throwable.java)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at java.io.DataInputStream.readFully(DataInputStream.java)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at java.io.DataInputStream.readInt(DataInputStream.java:471)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at com.ibm.ctg.client.GatewayRequest.readObject(GatewayRequest.java:986)
[11/7/08 19:34:18:000 PST] 48f648f6 SystemErr     R 19:34:18:000 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at com.ibm.ctg.client.TcpJavaGateway.run(TcpJavaGateway.java:851)
[11/7/08 19:34:18:017 PST] 48f648f6 SystemErr     R 19:34:18:017 : LL-Socket[addr=172.21.248.5,port=58100,localport=3067]com.ibm.ctg.client.TcpJavaGateway@48784878: .TcpJavaGateway:	at java.lang.Thread.run(Thread.java:806)

Open in new window

Madhu_AAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

momi_sabagCommented:
do you have the source code?
it seems that it reads past an end of file
0
Madhu_AAuthor Commented:
No I do not have the source code. The class comes bundled in a jar provided by IBM.
0
giltjrCommented:
Although it could have other purposes, CTG (CICS Transaction Gateway) an application that allows you to communicate with and execute transactions that run under IBM CICS.  See http://www-01.ibm.com/software/htp/cics/ctg/

Typically it is used for Java based applications to communicate with CICS running on IBM z/OS operating system.

Although EOF does stand for End-Of-File, in the Java world it also can mean end of stream.  It could be that a TCP stream/connected ended prematurely.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Madhu_AAuthor Commented:
I did not have to work on this problem but thanks for your answers. I will get back to it when I am asked to work on it again.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.