-
1. Re: Web -Services connection Handling
lafr Jan 4, 2013 7:34 AM (in response to ggireeshg)We need more information.
Can you show us a class model?
Web-Service class and business class are different classes?
Business class is an EJB or a POJO?
Show us the code and the place where you put the "synchronized" keyword as a workaround.
-
2. Re: Web -Services connection Handling
ggireeshg Mar 29, 2013 12:18 AM (in response to lafr)Hi Frank,
Thanks for your replay. Still my problem exists, but managing with synchronized it leads performance issues.
My webservice class looks like
TestService.java
{
private Business business;
public Business getbusiness() {
return business;
}
public void setbusiness(Business business) {
this.business= business;
}
business.validateMember() // business is the object wich i created using spring ioc, which is singleton false, below mentined the code snippet.
}
Business Class
Business.java
{
synchronized validateMember()
{
// java code.
}
}
application-context.xml
-------------------------------------
<bean id="business" class="org.core.Business" singleton="false">
<bean id="testService" class="org.core.TestService" singleton="false">
<property name="business"><ref bean="business"/></property>
</bean>