Announcement Announcement Module
Collapse
No announcement yet.
AxiomUtils performance issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AxiomUtils performance issue

    Hi,

    we are using spring-ws (1.5.4) with the woodstox stax parser (wstx-asl-3.2.4.jar) on WebSphere 6.1.

    My issue is that with every webservice call there is an IO operation involved on the filesystem.

    spring-ws uses AxiomUtils.toEnvelope(Document) to convert the document to an envelope which is creating a new XMLInputFactory. Creation of a new factory eventually involves the classloader (getResourceAsStream) to find the factory class. This is quite heavy, considering that wstx-asl-3.2.4.jar is 508kB.

    I am wondering why spring-ws needs to create a new factory instance each time.

    I understand that creating a system property would solve the file IO issue, but the factory would be created again and again.

    Can you please comment if you have any good idea on this.

    Thanks,
    Zoltan

    ps: please see attached stack trace from a request. Sorry for the missing package names, it was copied from a debugger.
Working...
X