Running the Rich Client HelloWorld sample

You need to deploy the server side application RichClientHelloWorldEAR.ear (created in Creating HelloWorld Samples) to WebSphere® Application Server first. Then perform the following steps:
  1. Configure the Client/Server service

    Expand RichClientHelloWorld > src > btt > definitions, and double-click service.xml. This file configures BTT services, including the Client/Server service.

    The CSClient configuration is as follows:
    <CSClient id="realCSClient"
    serverName="http://localhost:9080/RichClientHelloWorldRCS"
    sessionType="NonSecure" retryOnError="true"
    csAssignServletName="/servlet/com.ibm.btt.cs.servlet.CSAssignServiceIdAndServerTIDProtocolServlet"
    csNotifClToSrvServletName="/servlet/com.ibm.btt.event.CSNotifClToSrvProtocolServlet"
    csNotifSrvToClServletName="/servlet/com.ibm.btt.event.CSNotifSrvToClProtocolServlet"
    csReqProtocolServletName="/servlet/com.ibm.btt.cs.servlet.CSReqProtocolServlet"
    usedForServerToClientEventNotification="true"
    reconnectionAttempts="20"
    timeBetweenReconnectionAttempts="10000" userAgent="CSClient"
    useProxy="false" proxyHost="localhost" proxyPort="9080"
    serverCredentials="cred:cred" proxyCredentials="cred:cred"
    defaultOperationTimeout="10000" keepAliveConnection="false"
    runInSession="true" setTcpNoDelay="true" sendBufferSize="0"
    permanentConnectionForEvents="true" eventsPort="8082" />
  2. Run the Rich Client sample:
    1. Right-click the project and select Run As from the pop-up menu. Select Eclipse Application. Then you can see the following login page:
      Screen capture showing the login page of the sample application
    2. Enter your title and name. Click Submit. The following welcome page is displayed:
      Screen capture showing the welcome page of the sample application.