dcsimg
Web Services Performance Problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   raja_jayaraman
Posted On:   Thursday, December 18, 2003 06:22 AM

We are trying to use web services in our project in websphere server, In this we are using swing as client to connect the EJB, which is running thru web services. we are able to connect EJB and get the response from websphere server using web services. The below code is in EJB as business method public Vector getData(){ Vector v = new Vector(); for(int i=0;i <20000;i++) v.add("String"); return v; } I use SOAP RPC encoding and in the client side i use SOAP.jar to connect the web service and get the response. but it takes around 8 seconds to get the response. at the same time, i used below code in EJB as business method public Vector getData(){ Vecto   More>>

We are trying to use web services in our project in websphere server, In this we are using swing as client to connect the EJB, which is running thru web services. we are able to connect EJB and get the response from websphere server using web services. The below code is in EJB as business method

public Vector getData(){
Vector v = new Vector();
for(int i=0;i <20000;i++)
v.add("String");
return v;
}
I use SOAP RPC encoding and in the client side i use SOAP.jar to connect the web service and get the response.
but it takes around 8 seconds to get the response.

at the same time, i used below code in EJB as business method

public Vector getData(){
Vector v = new Vector();
for(int i=0;i <20000;i++)
v.add(new DataObject("String"));
return v;
}

public class DataObject{
String str = null;
public DataObject(String data){
str = data;
}

public String getData(){
return str;
}
}

here, i create object for my own DataObject class.

now i connect to this EJB, it takes double the amount of time to get the response.

Please help me, Is there any other way to increase the performance of web services?

Thanks,
Raja

   <<Less
About | Sitemap | Contact