so Gentelmen....
anyone knows solution how to improve performance with Castor + JBOSS ?
maybe it's a parser problem (jboss using different parser than castor) ...??
i'll be grateful
DANNY
---------------------------------------------------------------
my earlier post about performance problem ->:
i have a simple XML Document with simple XSD file. Document has root element
called Order.
I've generated object model with Source Generator.
Everything works fine (including marshalling and unmarshalling). But there
is a problem.
When i'm trying to unmarshall my XML document local (without app Server) -
execution of unmarshalling lasts about 4500 ms.
But when i'm using JBOSS 3.0 with simple SessionBean - unmarshalling of the
same document (in SessionBean with the same code - see below) lasts about
60000 ms !!!! ???
What's going on?
---------------------------------------------------------------------------
------------- My Simple Unmarshalling code ----------------
----------------------------------------------------------------------------
long startTime = System.currentTimeMillis();
//unmarshalling in loop
try {for (int i=0;i<100;i++){
Order order=Order.unmarshal(new FileReader("6.5_order.xml"));}
}
catch (Exception ex) {
ex.printStackTrace();
}
long endTime = System.currentTimeMillis();
System.out.println("execution Time " + (endTime - startTime) + " ms.");
----------------------------------------------------------------------------
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev