the way i have it set up is as follows...
I have a checkbox that decides whether or not directTCP is used or not. the command is then
URL = "socket://" + _serverip + ":"+_PORT + (_useDirectTcpField.getChecked() ? ";deviceside=true" : "");
where _serverip is my server address, _PORT is the port number _useDirectTcpField is my checkbox.
the deviceside=true parameter is what specifies the use of directTCP instead of MDS service.
you can find more information in JDE Version 4.x (pg 88 of 4.1 volume1)
if you have any questions just ask!
Lharts
|