JBoss Community

Re: Web -Services connection Handling

created by gireesh g in Datasource Configuration - View the full discussion

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>

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community