<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Hotei</author_name>
  <author_url>https://blog.hatena.ne.jp/Hotei/</author_url>
  <blog_title>シゴトメモ</blog_title>
  <blog_url>https://hotei.hatenadiary.org/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Tomcat</anon>
  </categories>
  <description>サーブレットコンテキストに対して、Webアプリケーションの起動・停止時に、ファイルを読むなどの重い処理を一度だけさせたい場合には、 Webアプリケーションの起動・停止を検知して動作する、 ServletContextListener の仕組を使うと便利です。例えばこのクラスを継承して、次のようなInitListenerを作ります。 package hara.het.ta;import javax.servlet.ServletContextListener; import javax.servlet.ServletContextEvent; import javax.servlet.Servl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhotei.hatenadiary.org%2Fentry%2F20051226%2F1135570283&quot; title=&quot;リスナー - シゴトメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-12-26 13:11:23</published>
  <title>リスナー</title>
  <type>rich</type>
  <url>https://hotei.hatenadiary.org/entry/20051226/1135570283</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
