M
mank
Our back-end service(web service) returns resultset data in xml format.
It returns around 2000 records of data. Our java program performs some
business logic (mostly if else statements) to filter out that data and
narrow down the resultset to 30 records.
We use Castor to convert xml to java. So we get 2000 java objects from
every web service call and then filter it out to 30 objects and send
30 objects to the web page. We think that creation of 2000 objects
everytime is a big overhead. is there any way to reduce this
overhead???
Some people say that If use XSL and put business rules into XSL and let
XSL parse XML to filter out the unwanted records, then we will be saved
of the overhead of unecessary java objects.. IS it right? How to do
that?
It returns around 2000 records of data. Our java program performs some
business logic (mostly if else statements) to filter out that data and
narrow down the resultset to 30 records.
We use Castor to convert xml to java. So we get 2000 java objects from
every web service call and then filter it out to 30 objects and send
30 objects to the web page. We think that creation of 2000 objects
everytime is a big overhead. is there any way to reduce this
overhead???
Some people say that If use XSL and put business rules into XSL and let
XSL parse XML to filter out the unwanted records, then we will be saved
of the overhead of unecessary java objects.. IS it right? How to do
that?