1 ago 2009

Socket client, wirte and read

How a Java Socket write and read?
echoSocket = new Socket("taranis", 7);
out = new PrintWriter(echoSocket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(
echoSocket.getInputStream()));

The second statement gets the socket's output stream and opens a PrintWriter on it. Similarly, the third statement gets the socket's input stream and opens a BufferedReader on it. The example uses readers and writers so that it can write Unicode characters over the socket.

To send data through the socket to the server, EchoClient simply needs to write to the PrintWriter. To get the server's response, EchoClient reads from the BufferedReader. The rest of the program achieves this.

RSA4WS and WASCE 2.1 integration

How do I do to start a WASCE server from RSA4WS 753?

Pre-Req:
  • IM 1.3.1,
  • RSA4WS 7.5.x installed with default options,
  • WASCE 2.1 (for this example, can be different) installed, you will need the admin user and password.
  1. In RSA4WS, you may need to use the Windows-Preferences dialog, and then in the General-Capabilities option, select the Web Developer options.
  2. Go to Windows-Show View, write Servers in the textbox.
  3. Select Servers.
  4. In the panel, right-click, then New-Server.
  5. If you do not see the WASCE 2.1 or the server that you have installed, you will need to go to this site and http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/updates/ and get the integratetion files. You will use Help-Software Updates and that address to install it, or if you download the files, point to the local folder with it.
  6. Once the installation complete, try again with the New-Server menu. You will need to indicate the folder where WAS is installed.
  7. Use the user and password to fill the panels.
  8. Press finsh, the server should be shown into the servers list.