1 Reply Latest reply on Dec 27, 2013 12:58 PM by rareddy

    timout setting for webservice

    amitagrawal

      Hi,

       

      I have below resource adappter setting in standalone-teiid.xml  to call an http service.  sometimes ,we have noticed that for some reason Teiid does not release connection to port 9411 and even after recycling the JVM, the JVM retruns an error that the port 9411 is already in use.  the only way to release the port is to recycle Jboss instance of teiid.

       

      is it possible to set time out and avoid this issue? please sugges how can I include time out value in the below resource adapter for http service.

       

       

      <resource-adapter>

                          <archive>

                              teiid-connector-ws.rar

                          </archive>

                          <transaction-support>NoTransaction</transaction-support>

                          <connection-definitions>

                              <connection-definition class-name="org.teiid.resource.adapter.ws.WSManagedConnectionFactory" jndi-name="java:/FUND_DS" enabled="true" pool-name="FUND__DS">

                                  <config-property name="SecurityType">

                                      None

                                  </config-property>

                                  <config-property name="EndPoint">

                                      http://serverteiid:9411/data/DataService

                                  </config-property>

                              </connection-definition>

                          </connection-definitions>

                      </resource-adapter>

        • 1. Re: timout setting for webservice
          rareddy

          Amit,

           

          You need to be looking at the service implementation that is using 9411. How did you implement this service? Looks like "serverteiid" is nothing but "localhost" in your case. Http timeout only used for non-responsive requests to timeout and possibly try to cancel the request.

           

          Ramesh..