The JavaGateway object is a logical connection between your application and the Gateway daemon when the application is running in remote mode. If a Java™ Client application is running in local mode, the JavaGateway is a connection between the application and the CICS® server, bypassing the Gateway daemon.
There are several constructors available for creating a JavaGateway. The default constructor creates a JavaGateway with no properties. You must then use the set methods to set the required properties and the open method to open the Gateway. There are other constructors which set different combinations of properties and open the Gateway for you.