activemq-artemis/activemq-native
Howard Gao 1d022fe474 ACTIVEMQ6-43(reopened) : Replace License Headers on codebase
- added missing license headers found by maven rat plugin.
  most of them added automatically via apache-rat
  a few manually added

- added apache-rat maven plugin to the build cycle
2015-01-05 13:14:25 -05:00
..
bin ACTIVEMQ6-3 Renaming Exception classes and fixing native compilation 2014-11-17 21:31:19 -05:00
src/main ACTIVEMQ6-43(reopened) : Replace License Headers on codebase 2015-01-05 13:14:25 -05:00
README Remove references to HornetQ in doc and Comments 2014-11-19 15:15:35 +00:00
compile-native.sh ACTIVEMQ6-43(reopened) : Replace License Headers on codebase 2015-01-05 13:14:25 -05:00
pom.xml ACTIVEMQ6-43(reopened) : Replace License Headers on codebase 2015-01-05 13:14:25 -05:00

README

This is a simple tutorial on compiling libActiveMQLibAIO.so

DEPENDENCIES

Make sure you install these packages:

- G++ (yum install gcc-c++ or aptitude install g++)
- Gcc (yum insall gcc or aptitude install gcc)
- JDK (full JDK)


LIBAIO INFORMATION

libaio is part of the kernel project. The library makes system calls on the kernel layer.

This is the project information:

Git Repository:  git://git.kernel.org/pub/scm/libs/libaio/libaio.git
Mailing List:    linux-aio@kvack.org


STEPS TO BUILD

1. Make sure you have JAVA_HOME defined, and pointing to the root of your JDK:

Example:
 
 $> export JAVA_HOME=/usr/share/jdk1.7
 
 
2. Call compile-native.sh. Bootstrap will call all the initial scripts you need
 $>  ./compile-native.sh
 
if you are missing any dependencies, autoconf would tell you what you're missing.
 

COMPILED FILE

The produced file will be under the ./target/nar (example: ./target/nar/activemq-native-6.0.0-SNAPSHOT-amd64-Linux-gpp-jni/lib/amd64-Linux-gpp/jni/libactivemq-native-6.0.0-SNAPSHOT.so)
and you will have to rename it manually under ./bin following the appropriate pattern.


DOCUMENTATION

The User Manual, chapter 38 (Libaio Native Libraries) will provide more details about our native libraries on libaio.