{"id":656,"date":"2007-12-28T04:41:38","date_gmt":"2007-12-27T19:41:38","guid":{"rendered":"http:\/\/www.kazu.tv\/blog\/?p=656"},"modified":"2007-12-28T04:41:38","modified_gmt":"2007-12-27T19:41:38","slug":"jboss_1","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2007\/12\/28\/jboss_1\/","title":{"rendered":"JBoss\u3067\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u4f7f\u3046"},"content":{"rendered":"<p>Java\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f7f\u3046\u3063\u3066\u306e\u306f\u8ab0\u3067\u3082\u3084\u3063\u3066\u308b\u3051\u3069\u3001\u63a5\u7d9a\u60c5\u5831\uff08\u30e6\u30fc\u30b6\u30fc\u540d\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u30fbURL etc.\uff09\u306a\u3069\u3092\u4e00\u5143\u7ba1\u7406\u3057\u305f\u3044\u3063\u3066\u306e\u306f\u3054\u304f\u666e\u901a\u306e\u8003\u3048\u3060\u3068\u601d\u3046\u3002\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306bJNDI\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u4f7f\u3046\u3068\u8272\u3005\u3068\u4fbf\u5229\u3002JNDI\u304c\u3069\u3046\u3044\u3063\u305f\u3082\u306e\u304b\u3068\u3044\u3046\u306e\u306f\u4f8b\u306b\u3088\u3063\u3066Google\u306a\u3069\u3067\u60c5\u5831\u304c\u51fa\u3066\u6765\u308b\u306e\u3067\u5272\u611b\u3002<br \/>\n\u3053\u3053\u3067\u306fJBoss\u3067\u52d5\u304f\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5\u3092\u7c21\u5358\u306b\u8aac\u660e\u3002<br \/>\n\u25cb\u74b0\u5883<br \/>\nJBoss 4.0.3 SP1 \uff08\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f7f\u3063\u3066\u308b\u306e\u3067\u3002\u4ed6\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082\u4e00\u7dd2\u306e\u306f\u305a\uff09<br \/>\nJDK 1.6.0<\/p>\n<p><!--more--><br \/>\n\u25cb\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306aXML\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002DBMS\u306b\u3088\u3063\u3066\u3001\u8a2d\u5b9a\u9805\u76ee\u304c\u82e5\u5e72\u7570\u306a\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u8a73\u3057\u304f\u306fJDBC\u30c9\u30e9\u30a4\u30d0\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u306a\u3069\u3092\u53c2\u7167\u3002JDBC\u30c9\u30e9\u30a4\u30d0\u306e\u30af\u30e9\u30b9\u540d\u3084URL\u3092\u624b\u3063\u53d6\u308a\u65e9\u304f\u77e5\u308a\u305f\u3044\u5834\u5408\u306f\u3053\u306e<a href=\"http:\/\/wiki.paulownia.jp\/java\/jdbc\" target=\"_class\">\u30da\u30fc\u30b8<\/a>\u3092\u3069\u3046\u305e\u3002<\/p>\n<div class=\"code\">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br \/>\n&lt;datasources&gt;<br \/>\n&lt;xa-datasource&gt;<br \/>\n&lt;jndi-name&gt;IfxDS&lt;\/jndi-name&gt;<br \/>\n&lt;xa-datasource-class&gt;com.informix.jdbcx.IfxXADataSource&lt;\/xa-datasource-class&gt;<br \/>\n&lt;xa-datasource-property name=&#8221;IfxIFXHOST&#8221;&gt;db.example.com&lt;\/xa-datasource-property&gt;<br \/>\n&lt;xa-datasource-property name=&#8221;Description&#8221;&gt;Informix connection&lt;\/xa-datasource-property&gt;<br \/>\n&lt;xa-datasource-property name=&#8221;PortNumber&#8221;&gt;1526&lt;\/xa-datasource-property&gt;<br \/>\n&lt;xa-datasource-property name=&#8221;DatabaseName&#8221;&gt;database&lt;\/xa-datasource-property&gt;<br \/>\n&lt;xa-datasource-property name=&#8221;ServerName&#8221;&gt;foo&lt;\/xa-datasource-property&gt;<br \/>\n&lt;xa-datasource-property name=&#8221;User&#8221;&gt;user&lt;\/xa-datasource-property&gt;<br \/>\n&lt;xa-datasource-property name=&#8221;Password&#8221;&gt;pass&lt;\/xa-datasource-property&gt;<br \/>\n&lt;xa-datasource-property name=&#8221;IfxIFX_XASPEC&#8221;&gt;Y&lt;\/xa-datasource-property&gt;<br \/>\n&lt;user-name&gt;user&lt;\/user-name&gt;<br \/>\n&lt;password&gt;pass&lt;\/password&gt;<br \/>\n&lt;exception-sorter-class-name&gt;org.jboss.resource.adapter.jdbc.vendor.InformixExceptionSorter&lt;\/exception-sorter-class-name&gt;<br \/>\n&lt;metadata&gt;<br \/>\n&lt;type-mapping&gt;InformixDB&lt;\/type-mapping&gt;<br \/>\n&lt;\/metadata&gt;<br \/>\n&lt;\/xa-datasource&gt;<br \/>\n&lt;\/datasources&gt;<\/div>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092$JBOSS_HOME\/server\/xxxx\/deploy\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3002JBoss\u304c\u8d77\u52d5\u3057\u3066\u3044\u308c\u3070\u81ea\u52d5\u7684\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u8aad\u307f\u8fbc\u307e\u308c\u3066\u767b\u9332\u3055\u308c\u3001\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u4f7f\u3048\u308b\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u4e0a\u8a18\u306e\u4f8b\u3067\u306fIfxDS\u3068\u3044\u3046\u540d\u524d\u3067\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u53c2\u7167\u3067\u304d\u308b\u3002<br \/>\n\u25cbJDBC\u30c9\u30e9\u30a4\u30d0\u306e\u30b3\u30d4\u30fc<br \/>\nJDBC\u30c9\u30e9\u30a4\u30d0\u306f$JBOSS_HOME\/server\/xxxx\/lib\u306b\u3042\u3089\u304b\u3058\u3081\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304f\u3002<br \/>\n\u30c9\u30e9\u30a4\u30d0\u304c\u306a\u3044\u6642\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u7d50\u69cb\u306f\u307e\u3063\u305f\u3002\u5358\u306b\u30c9\u30e9\u30a4\u30d0\u30d5\u30a1\u30a4\u30eb\u304clib\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u3063\u3066\u306a\u3044\u3060\u3051\u3002\u3061\u3087\u3063\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5206\u304b\u308a\u306b\u304f\u3044\u6c17\u304c\u3059\u308b\u2026\u3002\u8272\u3005\u691c\u7d22\u3057\u3066\u3053\u306e<a href=\"http:\/\/forums.mysql.com\/read.php?39,136084,136084#msg-136084\">\u30da\u30fc\u30b8<\/a>\uff08\u82f1\u8a9e\uff09\u3092\u307f\u3066\u4e00\u767a\u89e3\u6c7a\u3002<\/p>\n<div class=\"code\">Apparently wrong driver class specified&#8221;<\/div>\n<p>\u25cbJava\u304b\u3089\u4f7f\u3046<br \/>\nJava\u304b\u3089\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u7528\uff08\u4f8b\u5916\u51e6\u7406\u306f\u7701\u7565\uff09<\/p>\n<div class=\"code\">InitialContext ctx = new InitialContext();<br \/>\nDataSource ds = (DataSource) ctx.lookup(&#8220;java:\/IfxDS&#8221;);<br \/>\nConnection conn = ds.getConnection();<\/div>\n","protected":false},"excerpt":{"rendered":"<p>JBoss\u3067JNDI\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u4f7f\u3046\u65b9\u6cd5<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[60],"tags":[202,110,224,225],"class_list":["post-656","post","type-post","status-publish","format-standard","hentry","category-java","tag-jboss","tag-jdbc","tag-jndi","tag-225"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/comments?post=656"}],"version-history":[{"count":0,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/656\/revisions"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}