2 Replies Latest reply on Sep 7, 2006 2:38 AM by jimmy mani

    calling webservice Simultaneously

    jimmy mani Newbie

      hi
      i am invoking my webservice asynchronously.
      when we tested from different client machines togetherly ,its working fine for 4-5 invokings continously(server process is a long one, it will take around one minute to process each request).if more invokings are there (say 10 continously) its failing.

      actualluy there is no exceptions but server is not invoked.

      is there any limit for instance of webservice endpoints.
      if so specify which xml we have to configure.

      thanks in advance
      jimmy

        • 1. Re: calling webservice Simultaneously
          Thomas Diesler Master

          WRT concurency a WS endpoint is just another webapp. Have a look at tomcat configuration.

          <Connector port="8080" address="${jboss.bind.address}" maxThreads="250" strategy="ms" maxHttpHeaderSize="8192" emptySessionPath="true" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true"/>
          


          • 2. Re: calling webservice Simultaneously
            jimmy mani Newbie

            thomas,

            i will explain the business flow.

            we have an order application(applet ,http connection)
            ------------------------------
            order request
            >>servlet>>EJB>>insert order into database with status 'pending'


                >>servlet>>call JbossWS Async>>process order with vendor(takes around 1 mts)>>EJB>>update status to 'Success'

            >>servlet--response success message to client just after calling webservice since Async call
            ---------------------------------------------

            since we are using async web service we can give confirmation response to application client with out waiting 1 mt order processing.later we are sending confirmaion mail.

            i have tested the application by giving 1000 request using a for loop.

            in 1000 , 12 orders did not go after web service.i dont know what happened to those threads(they are still in 'pending' status after 15 hrs.all other threads got finished successfully.obviously no thread is running now)

            from log messages i assume that max 3 threads are running simultaneously.

            is there any way to increase the number of threads.
            also how can i debug the unfinished threads

            I am using Fedora core 4 4 Os and jboss 4.0.4GA +jdk 1.5

            please help me solve this issue

            jimmy