By sameert on Jul 29, 2006
In a recent exercise in tracking performance with WSIT (aka Tango), our project to enable interoperability between the Java platform and Windows Communication Foundation (WCF), we noticed a significant regression in JAX-WS performance. Tango builds on top of JAX-WS with additional pipes.The rearchitected branch of JAX-WS has a notion of pipes - following the pipe and filter architectural style. Turns out a chunk of the regression was originating from one of the pipes creating a JAXB context for every request, rather than caching it. Kohsuke sent out an email to the Tango dev mailing list, that can be found here. These actually apply to all developers in general using JAX-WS and JAXB. Context creation and factory lookups are expensive operations and shouldnt be repeated , especially for every request !