In this sample dialog, I have opened a telnet session:
open localhost 4450
Then I can send messages to the Forms application.
The Java code
SocketServer.java Server.java
The implementation class of the Bean Item
oracle.forms.fd.SocketServer
The methods you can call
Init the socket server
Set_Custom_Property('BLOCK.ITEM', 1, 'INIT_SERVER', 'port_number');