Putting a Resource Creation call inside a Static block , will that make it create only once for the Entire Application
<p>I have taken the below line  from one of the blog </p>

<p><strong>The only way JAXB would be that slow compared to the others is if he's
creating a new JAXBContext for each call</strong></p>

<p><strong>Here the author mentions that , if JAXBContext   is created for every new call then it will be slow</strong> </p>

<p>I am working on a Java EE based web application where they can be many users at a time .</p>

<p>So to avoid this , if i put that creating JAXBContext call inside a static block , will it create JAXBContext only once ?</p>

<pre><code>public class MessageParser {
    private static JAXBContext jaxbContext = null;
    static {
        try {
            jaxbContext = JAXBContext.newInstance(XML.class.getPackage().getName());
        } 
catch (Exception x) {

        }
    }
    public static Message parse(String requestStr) throws Exception {
        Unmarshaller um = jaxbContext.createUnmarshaller();
         // Does Some processing and returns the message 
        return  message;
    }
</code></pre>
