Instantiate expensive object *once* in JSP/Tomcat



I have an object that is very expensive in terms of time (it reads in an XML
mapping file).

How do I load this object into memory once - and once only - when the server
starts? How do I access this object in my standard JSP code?


.



Relevant Pages

  • Re: Saving program state in executable
    ... UML or OWL data using XML's DOM model, it takes quite a while to load ... The overhead is mostly the textprocessing and parsing of the XML models. ... 'const' record, or set of records, at compile time, and that might be ... knows it is one block of memory (assuming it doesn't contain e.g. ...
    (comp.lang.pascal.misc)
  • Memory limitation with owc?
    ... spreadsheets that I want to load into memory. ... loading a number of large xml files. ...
    (microsoft.public.office.developer.web.components)
  • RE: Exception Out Of Memory (BTS04 Uses .NET1.1 DOM Mapper)
    ... goals/intentions were to convert everything to .xml. ... and when you do any sort of mapping, you are actually mapping 60-100mb in ... (since DOM stores all in memory) ... but just not ready for mainstream market. ...
    (microsoft.public.biztalk.general)
  • Re: Whats an efficient way of insertring elements into an XML document
    ... > XmlDocument.Load() will load all that into memory each time you open ... and then parse all of the data and build an in memory ... Have you considered using a format other than XML? ...
    (microsoft.public.dotnet.framework)
  • Re: Accessing a Web Service From BTS Orchestration
    ... worst from a performance standpoint) is to load the Xml into an ... the web service you wish to consume. ... It loads the entire message into memory ... xml into the new message with its body part created as an instance of ...
    (microsoft.public.biztalk.general)