rurounijones [
https://community.jboss.org/people/rurounijones] created the discussion
"AS7 Module creation guide / help"
To view the discussion, visit:
https://community.jboss.org/message/647074#647074
--------------------------------------------------------------
Hello all.
I am rather new to JBoss (Hence the Beginner's corner post) and Java generally. I am
actually using Torquebox and JRuby but this question is related to general JBoss AS7
modules rather than Torquebox.
I need to create an AS7 module that will allow all my deployments access to the JMuPDF PDF
renderer (
http://sourceforge.net/projects/jmupdf/
http://sourceforge.net/projects/jmupdf/ ). This is slightly more complex than a normal
module in that it uses native libraries (.so and .dll) as well as jars.
I have scrounged and googled around the internet for documentation on how to create AS7
modules but have come up relatively short so the first question is does anyone have the
link to the official, hopefully comprehensive, AS7 module creation guide?
Based on what I did find so far and looking at how other modules are layed out I have the
following so far.
https://github.com/rurounijones/jmupdf-jboss-module
https://github.com/rurounijones/jmupdf-jboss-module
The README in that repository has all the details.
Basically I am not sure what I am missing / what is stopping the module from working
properly.
As mentioned before I think the lack of exports in the module.xml file may be an issue? I
use the following parts of JMuPDF in the applications, do they need to be explicitly
exported in module.xml?
com.jmupdf.pdf.PdfDocument
com.jmupdf.exceptions.DocException;
com.jmupdf.exceptions.DocSecurityException;
com.jmupdf.page.Page;
com.jmupdf.page.PageRenderer;
I also noticed in the documentation that I did find that native libraries may need special
handling (unfortunately that section was blank). Does anyone have any pointers regarding
that?
I am hoping it is a rather basic thing I am missing due to lack of java/jboss experience.
Any help would be much appreciated.
Cheers
Jeff
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/647074#647074]
Start a new discussion in Beginner's Corner at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]