{"id":411,"date":"2014-06-29T16:44:33","date_gmt":"2014-06-29T07:44:33","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2014\/06\/29\/java_ee_7_wildflydatasource\/"},"modified":"2014-06-29T16:44:33","modified_gmt":"2014-06-29T07:44:33","slug":"java_ee_7_wildflydatasource","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2014\/06\/29\/java_ee_7_wildflydatasource\/","title":{"rendered":"Java EE 7 \u691c\u8a3c\u74b0\u5883 WildFly\u306bDataSource\u3092\u624b\u52d5\u3067\u4f5c\u6210"},"content":{"rendered":"<p>&#160;<\/p>\n<p>\u300c<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2014\/04\/28\/java_ee_7_1_wildfly_jboss_tools_ear_arquillian\">Java EE 7 \u691c\u8a3c\u74b0\u5883\u69cb\u7bc9(1) WildFly + JBoss Tools \u3067 EAR\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057 Arquillian \u3067 \u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u30b0\u30ea\u30fc\u30f3\u306b\u3059\u308b\u3068\u3053\u308d\u307e\u3067<\/a>\u300d \u304b\u3089\u300c<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2014\/06\/26\/java_ee_7_16_wildfly_apache_mod_jk_widows\">Java EE 7 \u691c\u8a3c\u74b0\u5883\u69cb\u7bc9(16) WildFly \u3068 Apache \u3092 mod_jk \u3067\u9023\u643a\u3055\u305b\u308b(Widows)<\/a>\u300d\u307e\u3067\u3067\u3001\u74b0\u5883\u69cb\u7bc9\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3001Web\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u9023\u643a\u3001\u3068\u3001\u5927\u67a0\u306e\u3084\u308a\u305f\u3044\u7bc4\u56f2\u3092\u52d5\u304f\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u305f\u3068\u601d\u3046\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u6c17\u306b\u306a\u3063\u305f\u70b9\u306a\u3069\u3092\u9069\u5b9c\u307e\u3068\u3081\u3066\u3044\u3053\u3046\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2014\/04\/28\/java_ee_7_2_wildfly_datasource\">Java EE 7 \u691c\u8a3c\u74b0\u5883\u69cb\u7bc9(2) WildFly \u306b DataSource\u3092\u4f5c\u6210<\/a><\/p>\n<p>\u3057\u3066\u3044\u305f\u306e\u3060\u304c\u3001<a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/B00HOGN0C8\/ref=as_li_ss_tl?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=B00HOGN0C8&amp;linkCode=as2&amp;tag=typea09-22\">WildFly 8 Administration<\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px; border-left-style: none !important\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=B00HOGN0C8\" width=\"1\" height=\"1\" \/> \u3092\u898b\u308b\u3068\u3001DataSource\u306e\u4f5c\u6210\u306b\u306f\u3001\u4ee5\u4e0b\u306e3\u901a\u308a\u306e\u65b9\u6cd5\u304c\u3042\u308b<\/p>\n<ul>\n<li>\u624b\u52d5\u3067\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u8a2d\u5b9a <\/li>\n<li>CLI\u3092\u5229\u7528\u3057\u305f\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u8a2d\u5b9a <\/li>\n<li>\u30c7\u30d7\u30ed\u30a4\u30ea\u30bd\u30fc\u30b9(\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540c\u68b1)\u3068\u3057\u3066\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u8a2d\u5b9a <\/li>\n<\/ul>\n<p>\u3088\u3046\u3060\u3002<\/p>\n<p>\u5b9f\u306f\u3001<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2014\/04\/28\/java_ee_7_2_wildfly_datasource\">Java EE 7 \u691c\u8a3c\u74b0\u5883\u69cb\u7bc9(2) WildFly \u306b DataSource\u3092\u4f5c\u6210<\/a> \u884c\u3063\u305f\u65b9\u6cd5\u304c\u307e\u305a\u3044\u306e\u304b\u3069\u3046\u306a\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u304c\u3001Eclipse\u3067\u30c6\u30b9\u30c8\u306a\u3069\u3057\u3066\u3044\u308b\u3068\u3001\u30c7\u30d7\u30ed\u30a4\u3057\u305fJDBC \u30c9\u30e9\u30a4\u30d0\u30fc\u304cWildFly\u304b\u3089\u6d88\u3048\u3066\u3057\u307e\u3046\u4e8b\u8c61\u304c\u983b\u7e41\u306b\u767a\u751f\u3059\u308b(\u4f55\u3089\u304b\u306e\u304d\u3063\u304b\u3051\u3067\u30c6\u30b9\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u6271\u3044\u3055\u308c\u3066\u6d88\u3048\u3066\u3057\u307e\u3046\uff1f)\u3002<\/p>\n<p>\u307e\u3041\u3001deploy \u30b3\u30de\u30f3\u30c9\u3092\u306a\u304c\u3059\u3060\u3051\u3001\u518d\u5ea6\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b\u306e\u3060\u304c\u3001\u3084\u306f\u308a\u6c17\u6301\u3061\u60aa\u3044\u306e\u3067\u5225\u306e\u65b9\u6cd5\u3092\u691c\u8a0e\u3057\u3066\u307f\u308b\u3002<\/p>\n<h2>1. \u624b\u52d5\u3067\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u8a2d\u5b9a<\/h2>\n<p>\u4e00\u756a\u7d20\u65e9\u304f\u8a2d\u5b9a\u3067\u304d\u308b\u65b9\u6cd5\u3067\u306f\u306a\u3044\u304c\u3001\u4ed5\u7d44\u307f\u3092\u7406\u89e3\u3059\u308b\u306b\u306f\u3088\u3044\u3088\u3046\u3060\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u4ee5\u4e0b\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u8e0f\u3080\u3002<\/p>\n<ol>\n<li>JDBC\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f5c\u6210 <\/li>\n<li>\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u30c9\u30e9\u30a4\u30d0\u306e\u5b9a\u7fa9 <\/li>\n<\/ol>\n<h3>1.1 JDBC\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f5c\u6210<\/h3>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001modules \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3002<\/p>\n<h4>1.1.1 \u30d1\u30b9\u306e\u69cb\u9020\u3092\u3001JBOSS_HOME\\modules \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4f5c\u6210\u3057JDBC\u30c9\u30e9\u30a4\u30d0\u3092\u914d\u7f6e<\/h4>\n<p>MySQL\u3092\u4f8b\u306b\u3059\u308b\u3068<\/p>\n<p><strong>JBOSS_HOME\/modules\/com\/mysql\/main<\/strong><\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001JDBC\u30c9\u30e9\u30a4\u30d0\u3092\u30b3\u30d4\u30fc<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WildFly-Database-connectivity_C617\/locate_jdbc_driver.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"locate_jdbc_driver\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"locate_jdbc_driver\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WildFly-Database-connectivity_C617\/locate_jdbc_driver_thumb.jpg\" width=\"288\" height=\"116\" \/><\/a><\/p>\n<h4>1.1.2 module.xml \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/h4>\n<p>JDBC\u30c9\u30e9\u30a4\u30d0\u3092\u914d\u7f6e\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u306emodule.xml \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;module xmlns=&quot;urn:jboss:module:1.3&quot; name=&quot;com.mysql&quot;&gt;\r\n    &lt;resources&gt;\r\n        &lt;resource-root path=&quot;mysql-connector-java-5.1.30-bin.jar&quot;\/&gt;\r\n    &lt;\/resources&gt;\r\n    &lt;dependencies&gt;\r\n        &lt;module name=&quot;javax.api&quot;\/&gt;\r\n        &lt;module name=&quot;javax.transaction.api&quot;\/&gt;\r\n    &lt;\/dependencies&gt;\r\n&lt;\/module&gt;<\/pre>\n<p>&#160;<\/p>\n<h4>1.1.3 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b<\/h4>\n<p>standalone \u30e2\u30fc\u30c9\u306e\u5834\u5408\u3001standalone.xml \u3092\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">&lt;subsystem xmlns=&quot;urn:jboss:domain:datasources:2.0&quot;&gt;\r\n    &lt;datasources&gt;\r\n        &lt;datasource jndi-name=&quot;java:jboss\/datasources\/gnomeDS&quot; pool-name=&quot;gnomeDS&quot; enabled=&quot;true&quot;&gt;\r\n            &lt;connection-url&gt;jdbc:mysql:\/\/localhost:3306\/gnome&lt;\/connection-url&gt;\r\n            &lt;driver&gt;mysql&lt;\/driver&gt;\r\n            &lt;security&gt;\r\n                &lt;user-name&gt;root&lt;\/user-name&gt;\r\n                &lt;password&gt;*****&lt;\/password&gt;\r\n            &lt;\/security&gt;\r\n        &lt;\/datasource&gt;\r\n        &lt;drivers&gt;\r\n            &lt;driver name=&quot;mysql&quot; module=&quot;com.mysql&quot; \/&gt;\r\n        &lt;\/drivers&gt;\r\n    &lt;\/datasources&gt;\r\n&lt;\/subsystem&gt;<\/pre>\n<h4>1.1.4 \u63a5\u7d9a\u78ba\u8a8d<\/h4>\n<p>WildFly \u3092\u518d\u8d77\u52d5\u3002<\/p>\n<p>\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u3001\u8ffd\u52a0\u3057\u305f\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WildFly-Database-connectivity_C617\/appear_ds_on_wildfly.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"appear_ds_on_wildfly\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"appear_ds_on_wildfly\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WildFly-Database-connectivity_C617\/appear_ds_on_wildfly_thumb.jpg\" width=\"375\" height=\"172\" \/><\/a><\/p>\n<p>\u304a\u304a\uff01 \u30c6\u30b9\u30c8\u63a5\u7d9a\u6210\u529f\uff01<\/p>\n<p>\u4e0d\u60d1\u3092\u3059\u304e\u3066\u3082\u3001\u3053\u306e\u77ac\u9593\u304c\u3046\u308c\u3057\u3044\u3002<\/p>\n<p>\u3053\u306e\u611f\u899a\u304c\u306a\u3044\u3068\u3001\u3053\u306e\u4ed5\u4e8b\u306f\u3084\u3063\u3066\u3089\u308c\u306a\u3044\u3060\u308d\u3046\u306a\u30fc\u306a\u3093\u3066\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WildFly-Database-connectivity_C617\/success_test_connection_new_ds.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"success_test_connection_new_ds\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"success_test_connection_new_ds\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WildFly-Database-connectivity_C617\/success_test_connection_new_ds_thumb.jpg\" width=\"285\" height=\"190\" \/><\/a><\/p>\n<p>\u3042\u3068\u306f\u3001\u3057\u3070\u3089\u304f\u554f\u984c\u304c\u767a\u751f\u3057\u306a\u3044\u304b\u8a66\u3057\u3066\u307f\u3088\u3046\u3002<\/p>\n<p><iframe style=\"height: 240px; width: 120px\" marginheight=\"0\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea09-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=B00HOGN0C8\" frameborder=\"0\" marginwidth=\"0\" scrolling=\"no\"><\/iframe><iframe style=\"height: 240px; width: 120px\" marginheight=\"0\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea09-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=B0088L9I4W\" frameborder=\"0\" marginwidth=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#160; \u300cJava EE 7 \u691c\u8a3c\u74b0\u5883\u69cb\u7bc9(1) WildFly + JBoss Tools \u3067 EAR\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057 Arquillian \u3067 \u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u30b0\u30ea\u30fc\u30f3\u306b\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u300d \u304b\u3089\u300cJava E [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[46,71],"tags":[],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-java-ee","category-wildfly"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}