cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajkumar1979 <raj...@gmail.com>
Subject CXF CLIENT PERFORMANCE
Date Sat, 13 Aug 2016 00:43:01 GMT
WE ARE USING CXF CLIENTS AND WE ARE SEEING EXTREMELY POOR PERFORMANCE UNDER
LOAD.

WHEN WE TRACE THE CALLS I AM SEEING THERE IS AN <INIT>(CLASS[]) FROM THE
JAXBDATABINDING API WHICH TAKES QUITE A LONG TIME CLOSE TO 1.5 SECONDS UNDER
LOAD.


WE HAVE A SINGLETON CLASS THAT RETURNS A CLIENT

@Scope("singleton")
public class BrmServiceClient {

	private Logger logger = Logger.getLogger(BrmServiceClient.class);
	
	@Resource
	private Environment environment;

	public static TLSClientParameters tlsParams;
	
	public static final String BRM_POID = "0.0.0.1 /account -1 0";
	
	private BRMIntuitServices brmIntuitServices;
	
	private Client clientProxy;

public BRMIntuitServices getServiceClient() {
		
		if ( brmIntuitServices==null ) {			
			logger.info("going to create the brmIntuitService object");
			try {			
				ClientProxyFactoryBean factory = new JaxWsProxyFactoryBean();
				factory.setServiceClass(BRMIntuitServices.class);
				factory.setAddress(environment.getProperty("brm.target"));
				brmIntuitServices = (BRMIntuitServices) factory.create();
			}
			catch(Exception e) {
				e.printStackTrace();
				throw e;
			}	
		}
		else {
			System.out.println("brmIntuitService object already exists");
		}
		return brmIntuitServices;
	}

APPRECIATE ANY HELP ON THIS



--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-CLIENT-PERFORMANCE-tp5771474.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message