This content has been marked as final.
Show 4 replies
-
1. Re: Call Java Native Interface from web application in JBoss 7
jesper.pedersen Dec 21, 2011 5:05 AM (in response to rcbandit)Create a resource adapter (.rar) which contains the native libraries and make a nice Java interface to the rest of your application. Then put the .rar into an .ear.
Check out the IronJacamar project to get started.
-
2. Re: Call Java Native Interface from web application in JBoss 7
sfcoy Dec 21, 2011 5:12 AM (in response to rcbandit)1 of 1 people found this helpfulPackage java classes as you normally would.
Native libraries are located either through normal environment variables LD_LIBRARY_PATH or PATH depending upon platform or by adding
-Djava.library.path=...
to the java command line used to run JBoss.
-
3. Re: Call Java Native Interface from web application in JBoss 7
rcbandit Dec 21, 2011 5:23 AM (in response to rcbandit)Thank you for the fast answer! It seems that WAR package cannot be used with JNI because it supports only JSF content? Am I currect?
Regards
-
4. Re: Call Java Native Interface from web application in JBoss 7
sfcoy Dec 21, 2011 5:29 PM (in response to rcbandit)JSF and JNI are not related in any way. What makes you say this?