cancel
Showing results for 
Search instead for 
Did you mean: 

SocketTimeout Exception while calling a Web Service from EJB

Former Member
0 Kudos

Hi All,

I am consuming a Web Service defined from the WSDL received from a PI system

in a Stateless EJB.

The input of the Service can be a range of records 100 - 10,000, with a furture plan to exceed the range as 100 - 15,000.

The Web Service Call goes perfect with 100 - 3500 number of records.

As the number of records exceed 3500, we started getting the following exception:

Service call exception; nested exception is: java.net.SocketTimeoutException: Read timed out

Along with a call happenning to the PI system after some seconds.

Referring to various help.sap.com pages, I came across the following code snippet:

client._setProperty("socketTimeOut","200000");

This thing works great!!!, and now we have set the the socketTimeout proggramatically to a satisfactory level which supports the current requirement.

I would like to know, if we can tune some Visual Administrator Parameter for this, instead of maintaining the "Socket TimeOut" in the code.

Any help will be appreciated.

Best Regards,

Alka.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Can do it with Visual Administrator by these steps.

1.Go to NetWeaver Administrator using link http://<host_name>:<port_number>/nwa

2.Choose SOA Management

3.Choose Destination Template Mangement

4.Select the service.

5.Select Edit

6.Set the Socket Timeout to required value.

7.Select Save

Regards

Srinivasan Subbiah

Former Member
0 Kudos

Hi Srinivasan,

I would like to clarify 2 points:

1. The Web Service being consumed is from a different Server, PI Server to be specific.

Will this be applicable to it?

2. Where exactly will I find SOA Management?

As I Login to NWA, the Roles available are

System Management, Analysis, and Deploy and Change.

I got the answer for my second question, SOA management is available only with CE.

What about the earlier versions ?

But, the first 1 stands, and I think it will not be applicable fro Services from PI Server.

Regards,

Alka.

Edited by: Alka Panday on Apr 14, 2008 5:43 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved in Enterprise SOA Section.

Edited by: Alka Panday on Apr 24, 2008 10:19 AM