OpenSplice DDS와 Apache Camel 설치입니다.
다운로드 받은 "OpenSpliceDDSConnector_ApacheCAMEL_0.2a"을 보면 환경구축이 있고,
다운로드 사이트: http://dev.opensplice.org/cgi-bin/twiki/view/Community/Downloads
2012/04/20 - [Activity/Development Tips] - OpenSplice DDS와 Apache Camel을 위한 환경구축 참고
저도 설치하면서 작성하는 중이라 순서가 뒤죽박죽이고, 다시 처음으로 돌아와서 설치하고 있습니다.
하지만 글을 성공한대로 제대로된 순서이니 참고하세요 :)
윈도우 환경에서 설치하는게 어렵네요. 아래의 포스팅은 제가 확인하는대로 따라서 작성한 것이고, 아무래도 리눅스 환경에서 설치해봐야 제대로 확인이 가능하겠네요,
죄송하지만 100% 완벽하게 작성은 하지 못했고요, 필요하신 부분들만 확인하시고 혹시 질문이 있으면 댓글이나 이메일로 연락주세요, 아는 한 답변해 드리겠습니다.
1. OpenSplice DDS 설치
환경 구축을 한 후에 아래의 문장을 별로 신경쓰지 않고 넘어갔는데 ㅠ 당연히 OpenSplice DDS를 설치했어야 하는데 말이죠, 자 이제 OpenSplice DDS 설치 들어갑니다.
Set up the OpenSplice environment by running the release.com script that resides within the OpenSplice installation.
OpenSplice DDS Downloads: http://www.prismtech.com/opensplice/opensplice-dds-community/software-downloads
에서 Community Edition (Open Source)를 다운받으시기 바랍니다.
저는 윈도우에서 설치를 진행하므로
"Windows Installation of OpenSplice DDS Community Edition"를 확인하겠습니다.

Installation of OpenSplice DDS and Tools
참고: http://www.prismtech.com/opensplice/opensplice-dds-community/software-downloads/installing
설치 가이드를 보시려면 아래의 "설치 자세히 보기"를 눌러주세요.
설치 자세히 보기
저는 첨부한 installation guide에서 TAO 관련된 부분은 제외하고 Java와 OpenSplice DDS만 실행하기 위해 다음 부분만 수행했습니다.
C:\ospl>set JAVA_HOME="c:\Program Files\Java\jdk1.6.0_14"
// 이 부분은 윈도우의 고급환경설정에 가시면 JAVA_HOME을 지정할 수 있는 부분입니다.
C:\ospl>set PATH=%JAVA_HOME%\bin;%PATH%
// 이 부분 역시 JAAVA_HOME과 ospl.exe를 실행하기 위해 윈도우의 고급환경설정에 PATH로 등록하는 부분입니다.
C:\ospl>HDE\x86.win32\release.bat
"<<< OpenSplice HDE Release V4.1.1 For x86.win32, Date 2009-06-04 >>>"
위와 같이 저도 생성되었습니다.

제대로 OpenSplice DDS Community Edition이 설치되었는지 확인하려면 다음과 같이 하시면 됩니다.
ospl.exe start를 한 후 보면 Info log와 Error log가 생긴 것을 볼 수 있는데 이 파일은 실행시킨 경로에서 확인할 수 있습니다.
예를 들어, 저는 "C:\Users\hyungjun.yim\"에서 실행을 시켰기 때문에 여기에 로그가 생성됩니다.

자, 그럼 어떤 로그가 생겼는지 볼까요?
ospl-info.log
로그를 보니, DDS와 관련된 Entity와 Service들이 start되고, stop을 했던 부분들이 나오게 됩니다.
여기서 DDS를 자세히 살펴보기보다는 설치에 대한 내용이므로 설명은 하지 않겠습니다.
사실 저도 아직 분석은 못했고, 설치를 완료하고 나서 분석한 내용을 따로 포스팅하겠습니다.
2. mvn install
컴포넌트 빌드를 위한 내용이 있습니다.
Before the camel-dds component can be built it is first necessary to build the opensplice-idl-plugin for Apache Maven. This component allows Maven to access the OpenSplice idl pre-processor (idlpp) and compile idl into the required Java files for compilation.
Change directory to maven-dds/plugins/opensplice-idl-plugin, found within the camelopensplice directory and run:-
위의 내용을 정리하면
camel-dds 컴포넌트를 빌드하기 전에 idl을 자바 파일로 변환하기 위한 OpenSplice의 idl 선행처리기와 컴파일러를 사용하려고 opensplice-idl-plugin을 먼저 apache maven에 빌드시켜야 한다.
maven-dds/plugins/opensplice-idl-plugin 폴더로 이동하여 아래의 과정을 실행한다.
위에서 설명한 것과 같이 시작→실행→"cmd"를 실행하여 "maven-dds/plugins/opensplice-idl-plugin"의 폴더로 이동하여 mvn install을 실행하면 아래 그림과 같이 죽~설치를 합니다.

설치하는 내용
Maven will download and install jars within its own repository. The default location for the repository is within a .m2 directory within the user's home. The opensplice-idl-plugin will build successfully and will also be installed into the Maven repository.
위의 내용은 user의 기본 홈 폴더에 ".m2"가 생기면서 maven repository가 생기는 군요

설치가 되고 난 결과는 캡쳐를 못했네요 ㅠ 하지만, 아래 그림과 같이 "\OpenSpliceDDSConnector_ApacheCAMEL_0.2a\camelopensplice\maven-dds\plugins\opensplice-idl-plugin\target\surefire-reports"에 가시면 txt 파일이 있는데 설치를 한 후 idl compiler 테스트한 결과를 볼 수 있습니다.

-------------------------------------------------------------------------------
Test set: org.opensplice.dds.idlcompiler.IDLMojoTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.391 sec <<< FAILURE!
testIDLCompilation(org.opensplice.dds.idlcompiler.IDLMojoTest) Time elapsed: 1.105 sec <<< ERROR!
org.apache.maven.plugin.MojoExecutionException: OSPL_HOME not set
at org.opensplice.dds.idlcompiler.IDLMojo.getCompiler(IDLMojo.java:180)
at org.opensplice.dds.idlcompiler.IDLMojo.execute(IDLMojo.java:102)
at org.opensplice.dds.idlcompiler.IDLMojoTest.testIDLCompilation(IDLMojoTest.java:23)
위의 결과인데 2개를 실행하여 1개의 error가 있다고 나옵니다.
그 다음 과정은 다음과 같습니다.
The camel-dds component requires the Maven repository to contain the OpenSplice dcpssaj.jar, so this needs to be installed before the component can be built. To do this run:-
$ mvn install:install-file -Dfile=$OSPL_HOME/jar/dcpssaj.jar -DgroupId=org.opensplice.dds -DartifactId=dcpssaj -Dversion=1.0-LATEST -Dpackaging=jar
On windows replace $OSPL_HOME/jar/dcpssaj.jar with %OSPL_HOME%\jar\dcpssaj.jar.
Note that we install the dcpssaj jar as version 1.0-LATEST rather than a version number specific to the OpenSplice installation. This is so that the Camel component can be run with multiple versions of OpenSplice without the need for multiple branches of the code base that define different project dependencies.
This command will also force Maven to download some dependencies. Now we may build the camel-dds component. The camel-dds components require the use of the OpenSplice daemon, so this needs to be started by running:-
$ ospl start
Once the daemon has been started change directory to camel-dds/components/camel-dds and run:-
$ mvn install
There are four examples included in the repository. You can find these in the camel-dds/examples directory. Each example includes its own README file which contains details of how to compile and run the example.