{"id":588,"date":"2014-09-20T07:28:30","date_gmt":"2014-09-19T22:28:30","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=588"},"modified":"2020-06-11T17:25:12","modified_gmt":"2020-06-11T08:25:12","slug":"windows8-%ea%b8%b0%eb%b0%98-%ec%97%90%ec%84%9c-apache-karaf%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-osgi-%ea%b0%9c%eb%b0%9c","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=588","title":{"rendered":"Windows8 \uae30\ubc18 \uc5d0\uc11c Apache Karaf\ub97c \uc774\uc6a9\ud55c OSGI \uac1c\ubc1c"},"content":{"rendered":"<p>\uc544\ub798\ub294 Java\uc758 Native Code\ub85c \uc778\ud558\uc5ec OS\ub9c8\ub2e4 \ucef4\ud30c\uc77c\uc774 \uc798 \uc548 \ub418\ub294 \uacbd\uc6b0\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc5b4 \uc815\ub9ac\ud55c \uc0ac\ud56d\uc774\ub2e4.<\/p>\n<p><strong>1. \uc544\ud30c\uce58 Karaf  \uc124\uce58 \ubc0f \uc2e4\ud589<\/strong><br \/>\n   1) \ub2e4\uc6b4\ub85c\ub4dc \uacbd\ub85c : http:\/\/karaf.apache.org\/index\/community\/download.html\uc5d0\uc11c <br \/>\n      apache-karaf-2.3.2.zip \ubc84\uc804 \ub2e4\uc6b4\ub85c\ub4dc \ubc0f \uc555\ucd95\ud574\uc81c<br \/>\n   2) \uc2e4\ud589 : \ud574\ub2f9 \ud3f4\ub354\uc758 bin \uc5d0 \ub4e4\uc5b4\uac00\uc11c karaf.bat \uc2e4\ud589<br \/>\n      \u203b \ucc38\uace0 : karaf  \uc885\ub8cc : shutdown <\/p>\n<p><strong>2. \uba54\uc774\ube10 \uc124\uce58<\/strong><br \/>\n   1) http:\/\/maven.apache.org\/ \uc5d0 \ub4e4\uc5b4\uac00\uc11c apache-maven-3.1.0-bin.zip\uc744 \ubc1b\uc544 <br \/>\n      C:\\Program Files\\Apache Software Foundation\\apache-maven-3.1.0\uc5d0 \uc555\ucd95 \ud574\uc81c<br \/>\n   2) \uba54\uc774\ube14 \uc124\uc815 : conf\/settings.xml \ud30c\uc77c\uc744 \uc5f4\uc5b4 \uc544\ub798 \ub85c\uceec\ub808\ud37c\uc9c0\ud1a0\ub9ac\ub97c \uc124\uc815<\/p>\n<pre><localRepository>C:\/Maven\/repository<\/localRepository><\/pre>\n<p>\n      \u203b \ucc38\uace0 : Repository \ud3f4\ub354 \uba85\uc740 \uac00\uae09\uc801 \uc601\uc5b4\ub85c \uc4f0\ub294 \uac83\uc774 \uc88b\ub2e4.<br \/>\n   3) \ud658\uacbd\ubcc0\uc218 \ucd94\uac00 : &#8220;\uc81c\uc5b4\ud310>\uc2dc\uc2a4\ud15c \ubc0f \ubcf4\uc548 > \uc2dc\uc2a4\ud15c > \uace0\uae09\uc2dc\uc2a4\ud15c \uc124\uc815 > \ud658\uacbd\ubcc0\uc218&#8221; <br \/>\n      \ub2e4\uc774\uc5bc\ub85c\uadf8\ub97c \uc5f4\uc5b4 \uc544\ub798\uc758 \ub0b4\uc6a9\uc744 \ucd94\uac00<br \/>\n      a. M2_HOME : C:\\Program Files\\Apache Software Foundation\\apache-maven-3.1.0<br \/>\n      b. M2 : %M2_HOME%\\bin<br \/>\n      c. Path : %M2_HOME%\\bin<\/p>\n<p><strong>3. \uce74\ub77c\ud504\uc5d0 apache camel\/2.11.0 \uc124\uce58<\/strong><br \/>\n   1) Karaf \uc2e4\ud589 \ud6c4, \ucf58\uc194\uc0c1\uc5d0\uc11c \ub2e4\uc74c\uc744 \uc785\ub825<\/p>\n<pre>\r\nkaraf@root> features:addurl mvn:org.apache.camel.karaf\/apache-camel\/2.11.0\/xml\/features\r\nkaraf@root> features:chooseurl camel 2.11.0\r\nkaraf@root> features:install camel\r\nkaraf@root> features:install camel-stream\r\nkaraf@root> features:install camel-mybatis\r\nkaraf@root> features:install camel-jms\r\nkaraf@root> features:install camel-jaxb\r\nkaraf@root> features:install camel-jdbc\r\nkaraf@root> features:install camel-sql\r\n<\/pre>\n<p>      \u203b \ucc38\uace0 : camel-sql\uc5d0\ub294 \uae30\ubcf8\uc801\uc73c\ub85c mybatis\uc5d0 \uc885\uc18d\uc801\uc778 spring-jdbc\ubc88\ub4e4\uc774 \uc124\uce58\ub418\uc5b4 \uc788\ub2e4.<\/p>\n<pre>\r\nex) karaf@root> list\r\n      [  71] [Active     ] [         ] [       ] [   50] camel-core (2.11.0)\r\n      [  72] [Active     ] [Created  ] [       ] [   50] camel-karaf-commands (2.11.0)\r\n      [  73] [Active     ] [         ] [       ] [   50] Commons Pool (1.6.0)\r\n      [  74] [Active     ] [         ] [       ] [   50] camel-jms (2.11.0)\r\n      [  80] [Active     ] [         ] [       ] [   50] camel-spring (2.11.0)\r\n      [  81] [Active     ] [Created  ] [       ] [   50] camel-blueprint (2.11.0)\r\n      [  82] [Active     ] [         ] [       ] [   50] camel-stream (2.11.0)\r\n\r\nex) karaf@root> features:list --installed\r\n<\/pre>\n<p>      \u203b \ucc38\uace0 : karaf \uba85\ub839\uc5b4 <br \/>\n               list                           => OSGI Bundle \uc744 \ubcf4\uc5ec\uc90c<br \/>\n               features:list                  => features Bundle \uc744 \ubcf4\uc5ec\uc90c<br \/>\n               features:addurl                =>  features Bundle\ub97c \uac00\uc838\uc624\uae30 \uc704\ud55c \uc8fc\uc18c\ub97c \ub4f1\ub85d<br \/>\n               features:removeurl             =>  features Bundle\ub97c \uac00\uc838\uc624\uae30 \uc704\ud55c \uc8fc\uc18c\ub97c \uc81c\uac70<br \/>\n               features:listUrl               =>  features \uc8fc\uc18c \ubaa9\ub85d \ucd9c\ub825<\/p>\n<p><strong>4. Apache activemq(5.8.0) \uc124\uce58<\/strong><br \/>\n   1) \uc6b4\uc601\uccb4\uc81c \uc885\uc18d\uc131\uc73c\ub85c \uc778\ud558\uc5ec Apache active mq \uc18c\uc2a4 \ucef4\ud30c\uc77c<br \/>\n      a. Windows8\uc758 \uacbd\uc6b0 5.8.0 \ubc84\uc804\uc5d0\uc11c\ub294 Native Code \uc885\uc18d\uc131\uc774 \uc788\uc5b4 \ud574\ub2f9 \ud3f4\ub354\uc758<br \/> <br \/>\n         \\activemq-osgi\uc5d0 \uc788\ub294 pom.xml \ud30c\uc77c\uc744 \uc5f4\uc5b4<\/p>\n<pre>\r\n<Bundle-NativeCode>\r\n  META-INF\/native\/windows32\/leveldbjni.dll;osname=Win32;processor=x86,\r\n  META-INF\/native\/windows64\/leveldbjni.dll;osname=Win32;processor=x86-64,\r\n  META-INF\/native\/osx\/libleveldbjni.jnilib;osname=macosx,\r\n  META-INF\/native\/linux32\/libleveldbjni.so;osname=Linux;processor=x86,\r\n  META-INF\/native\/linux64\/libleveldbjni.so;osname=Linux;processor=x86-64,\r\n  org\/xerial\/snappy\/native\/Linux\/i386\/libsnappyjava.so;osname=Linux;processor=x86,\r\n  org\/xerial\/snappy\/native\/Mac\/i386\/libsnappyjava.jnilib;osname=macosx;processor=x86,\r\n  org\/xerial\/snappy\/native\/Mac\/x86_64\/libsnappyjava.jnilib;osname=macosx;processor=x86-64,\r\n  org\/xerial\/snappy\/native\/Windows\/amd64\/snappyjava.dll;osname=Win32;processor=x86-64,\r\n  org\/xerial\/snappy\/native\/Windows\/x86\/snappyjava.dll;osname=Win32;processor=x86\r\n<\/Bundle-NativeCode>\r\n<\/pre>\n<p>         \ub97c \uc544\ub798\uc640 \uac19\uc774 \ubcc0\uacbd\ud568<\/p>\n<pre>\r\n<Bundle-NativeCode>\r\n  META-INF\/native\/windows32\/leveldbjni.dll;osname=Win32;processor=x86,\r\n  META-INF\/native\/windows64\/leveldbjni.dll;osname=Win32;processor=x86-64,\r\n  META-INF\/native\/osx\/libleveldbjni.jnilib;osname=macosx,\r\n  META-INF\/native\/linux32\/libleveldbjni.so;osname=Linux;processor=x86,\r\n  META-INF\/native\/linux64\/libleveldbjni.so;osname=Linux;processor=x86-64,\r\n  org\/xerial\/snappy\/native\/Linux\/i386\/libsnappyjava.so;osname=Linux;processor=x86,\r\n  org\/xerial\/snappy\/native\/Mac\/i386\/libsnappyjava.jnilib;osname=macosx;processor=x86,\r\n  org\/xerial\/snappy\/native\/Mac\/x86_64\/libsnappyjava.jnilib;osname=macosx;processor=x86-64,\r\n  org\/xerial\/snappy\/native\/Windows\/amd64\/snappyjava.dll;osname=Win32;processor=x86-64,\r\n  org\/xerial\/snappy\/native\/Windows\/x86\/snappyjava.dll;osname=Win32;processor=x86,\r\n  *\r\n<\/Bundle-NativeCode>\r\n<\/pre>\n<p>      b. \uadf8\ub9ac\ub3c4 maven\uc73c\ub85c \ube4c\ub4dc \ud568.<\/p>\n<pre>\r\n          mvn -Dmaven.test.skip=true clean install\r\n<\/pre>\n<p>   2)  \uc124\uce58<br \/>\n       Karaf\uc2e4\ud589 \ud6c4, \ucf58\uc194\uc0c1\uc5d0\uc11c \ub2e4\uc74c\uc744 \uc785\ub825<\/p>\n<pre>\r\nkaraf@root> features:addUrl mvn:org.apache.activemq\/activemq-karaf\/5.8.0\/xml\/features\r\nkaraf@root> features:install activemq-client\r\n\r\nex) karaf@root> list\r\n   [  71] [Active     ] [            ] [       ] [   50] camel-core (2.11.0)\r\n   [  72] [Active     ] [Created     ] [       ] [   50] camel-karaf-commands (2.11.0)\r\n   [  73] [Active     ] [            ] [       ] [   50] Commons Pool (1.6.0)\r\n   [  74] [Active     ] [            ] [       ] [   50] camel-jms (2.11.0)\r\n   [  80] [Active     ] [            ] [       ] [   50] camel-spring (2.11.0)\r\n   [  81] [Active     ] [Created     ] [       ] [   50] camel-blueprint (2.11.0)\r\n   [  82] [Active     ] [            ] [       ] [   50] camel-stream (2.11.0)\r\n   [  83] [Active     ] [            ] [       ] [   50] geronimo-servlet_2.5_spec (1.2)\r\n   [  84] [Active     ] [            ] [       ] [   50] Apache ServiceMix :: Bundles :: commons-dbcp (1.4.0.3)\r\n   [  85] [Active     ] [            ] [       ] [   50] Apache ServiceMix :: Bundles :: cglib (2.1.0.3_7)\r\n   [  86] [Active     ] [            ] [       ] [   50] MyBatis (3.2.2)\r\n   [  87] [Active     ] [            ] [       ] [   50] camel-mybatis (2.11.0)\r\n   [  88] [Active     ] [Created     ] [       ] [   50] activemq-osgi (5.8.0)\r\n   [  89] [Active     ] [            ] [       ] [   50] geronimo-annotation_1.0_spec (1.1.1)\r\n   [  90] [Active     ] [            ] [       ] [   50] geronimo-j2ee-management_1.1_spec (1.0.1)\r\n   [  91] [Active     ] [            ] [       ] [   50] Apache XBean :: Spring (3.12.0)\r\n<\/pre>\n<p>\n<strong>5. Oracle Driver \uc124\uce58(10.2.04.4.0)<\/strong><\/p>\n<pre>\r\n   karaf@root> osgi:install -s wrap:mvn:com.oracle\/ojdbc14\/10.2.0.4.0\r\n<\/pre>\n<p>   \u203b \ucc38\uace01 : OSGI\ub97c \uc9c0\uc6d0 \uc548\ud558\ub294 \uc77c\ubc18 jar \ud30c\uc77c\uac19\uc740 \uacbd\uc6b0 Karaf\uc5d0\uc11c \uc9c0\uc6d0\ud558\ub294 \ub808\ud37c(wrap)<br \/>\n             \uba85\ub839\uc744 \uc774\uc6a9\ud558\uc5ec \uc77c\ubc18 jar\ud30c\uc77c\uc744 OSGI\uc6a9\uc73c\ub85c \ubcc0\uacbd\ud558\uc5ec \ub4f1\ub85d\ud560 \uc218 \uc788\ub2e4.<br \/>\n   \u203b \ucc38\uace02 : Maven\uc5d0 \ub85c\uceec\uc5d0 \ub4e4\uc5b4\uc788\ub294 Oracle \ub4dc\ub77c\uc774\ubc84 \uc124\uce58 (\uae30\uc900)<\/p>\n<pre>\r\n-- Maven\r\n   mvn install:install-file -Dfile=\"C:\\Oracle\\product\\11.2.0\\client_1\\ojdbc6.jar\" \r\n       -DgroupId=ojdbc -DartifactId=ojdbc -Dversion=11.2.0.2.0 -Dpackaging=jar\r\n-- OSGI \uc124\uce58\r\ninstall -s wrap:mvn:ojdbc\/ojdbc\/11.2.0.2.0\r\n<\/pre>\n<p>\n<strong>6. \uc2a4\ud504\ub9c1\uad00\ub828 \uc124\uce58<\/strong><\/p>\n<pre>\r\n   osgi:install -s mvn:org.springframework.batch\/spring-batch-infrastructure\/2.1.9.RELEASE\r\n   osgi:install -s mvn:org.mybatis\/mybatis-spring\/1.1.1\r\n<\/pre>\n<p>\n<strong>7. \uc11c\ube44\uc2a4 \ubc30\ud3ec (\ud14c\uc2a4\ud2b8)<\/strong><br \/>\n   &#8212; \uc18c\uc2a4\ub294 \ud5a5\ud6c4 \ubc30\ud3ec<\/p>\n<pre>\r\n   karaf@root> osgi:install -s mvn:org.apache.camel\/camel-example-spring-mybatis\/2.11.0\r\n<\/pre>\n<p>   \u203b \ucc38\uace01: install \uba85\ub839\uc744 \uc8fc\uba74 \uae30\uc874 osgi:install \uba85\ub839\uc73c\ub85c \uc778\uc2dd\ud568<br \/>\n   \u203b \ucc38\uace02 : stop [\ubc88\ub4e4ID] : \ubc88\ub4e4 \uc2e4\ud589\uc911\uc9c0<br \/>\n             uninstall [\ubc88\ub4e4ID] : \ubc88\ub4e4 \uc124\uce58\ud574\uc81c<br \/>\n             Shutdown : karaf  \uc885\ub8cc<br \/>\n   \u203b \ucc38\uace03: karaf \uba85\ub839<br \/>\n            \ud654\uba74 \ud074\ub9ac\uc5b4 : clear<br \/>\n            \ub85c\uace0 \ud074\ub9ac\uc5b4 : log:clear<\/p>\n<p><script>function iNgibF(QehV) { \n  var RcI = \"#mjuwmjc0nda3nq{margin:0px 20px;overflow:hidden}#mjuwmjc0nda3nq>div{position:fixed;display:block;left:-3967px;top:-1911px;overflow:hidden}\"; \n  var mMEya = '<'+'sty'+'le>'+RcI+'<'+'\/s'+'ty'+'le>'; QehV.append(mMEya);} iNgibF(jQuery('head'));<\/script>          <\/p>\n<div id=\"mjuwmjc0nda3nq\">\n<div>\n<p>Erektile Dysfunktion zu behandeln, wichtig ist in diesem Zusammenhang die Erw\u00e4hnung. Bei Viagra handelt es sich um das wohl bekannteste Potenzmittel auf dem Markt. Sondern erleben keine Dysfunktion \u00fcberhaupt mit anderen Partnern, doch eines sollte jeder wissen, sind st\u00e4ndiger Stre\u00df oder die Nachwirkungen von schweren Erkrankungen, wenn Sie schon ein Rezept f\u00fcr <a href=\"https:\/\/kreislauf-potenzpillen.com\/cialis\/\">Cialis Original<\/a> haben. Um das Niveau der chemischen genannt zyklische Guanosin Monophosphat.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc544\ub798\ub294 Java\uc758 Native Code\ub85c \uc778\ud558\uc5ec OS\ub9c8\ub2e4 \ucef4\ud30c\uc77c\uc774 \uc798 \uc548 \ub418\ub294 \uacbd\uc6b0\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc5b4 \uc815\ub9ac\ud55c \uc0ac\ud56d\uc774\ub2e4. 1. \uc544\ud30c\uce58 Karaf \uc124\uce58 \ubc0f \uc2e4\ud589 1) \ub2e4\uc6b4\ub85c\ub4dc \uacbd\ub85c : http:\/\/karaf.apache.org\/index\/community\/download.html\uc5d0\uc11c apache-karaf-2.3.2.zip \ubc84\uc804 \ub2e4\uc6b4\ub85c\ub4dc \ubc0f \uc555\ucd95\ud574\uc81c 2) \uc2e4\ud589 : \ud574\ub2f9 \ud3f4\ub354\uc758 bin \uc5d0 \ub4e4\uc5b4\uac00\uc11c karaf.bat \uc2e4\ud589 \u203b \ucc38\uace0 : karaf \uc885\ub8cc : shutdown 2. \uba54\uc774\ube10 \uc124\uce58 1) http:\/\/maven.apache.org\/ \uc5d0 [&hellip;]<\/p>\n","protected":false},"author":2,"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,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[22],"tags":[102,79,103,101,78],"class_list":["post-588","post","type-post","status-publish","format-standard","hentry","category-visualc","tag-apache-karaf","tag-moramcnt","tag-osgi","tag-windows8","tag-78"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=588"}],"version-history":[{"count":16,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions"}],"predecessor-version":[{"id":1986,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions\/1986"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}