<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nb_mat</author_name>
  <author_url>https://blog.hatena.ne.jp/nb_mat/</author_url>
  <blog_title>matめも</blog_title>
  <blog_url>https://nb-mat.hatenadiary.org/</blog_url>
  <categories>
    <anon>仕事</anon>
    <anon>SWT</anon>
    <anon>S2Dao</anon>
  </categories>
  <description>現在の仕事は、SWT＋Webサービス＋Seaserでやってます。っで今あがっている用件で 「接続するDBをクライアントごとに切り替えたい」 という用件があります。この用件を満たすには、どうしたものか。。。？ まず、クライアント(SWT)は、複数用意するか、複数用意するのがいやならば、画面上でどのDBに接続するかを選ばせることで対応する。 で、問題になるのはビジネスロジック層。ぱっと思いつくのは、 「Webサービスを複数用意して、j2ee.diconを分けておく。」 って方法なんだけど、結局、Daoを複数用意しなければならない。 できれば、動的にDaoが使うコネクションを切り替えたいのです。 コ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnb-mat.hatenadiary.org%2Fentry%2F20050129%2F1106975392&quot; title=&quot;複数DBを動的に切り替えることってできる？ - matめも&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-01-29 14:09:52</published>
  <title>複数DBを動的に切り替えることってできる？</title>
  <type>rich</type>
  <url>https://nb-mat.hatenadiary.org/entry/20050129/1106975392</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
