<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>edgegram</author_name>
  <author_url>https://blog.hatena.ne.jp/edgegram/</author_url>
  <blog_title>edgegram</blog_title>
  <blog_url>https://edgegram.hatenablog.jp/</blog_url>
  <categories>
    <anon>JPA</anon>
    <anon>Tomcat</anon>
    <anon>EclipseLink</anon>
  </categories>
  <description>前エントリではEntityManagerをわざわざFactoryから生成している。 JPAについて書いているブログなどでは、@PersistenceContextでEntityManagerを取ってくるサンプルがあるし、DeltaSpikeのData Moduleのページにも@PersistenceUnitでEntityManagerFactoryを使っているが、試してもNullPointerExceptionで動かなかった。 調べてみると、Tomcat(=non JavaEEサーバー)では使えない、とEclipseLinkのページに記載されている。 jsf 2 - Using JPA2 in…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fedgegram.hatenablog.jp%2Fentry%2F2015%2F11%2F16%2F174304&quot; title=&quot;Tomcatでは@PersistenceContextは使えない - edgegram&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>2015-11-16 17:43:04</published>
  <title>Tomcatでは@PersistenceContextは使えない</title>
  <type>rich</type>
  <url>https://edgegram.hatenablog.jp/entry/2015/11/16/174304</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
