We are using Aspose.Cells to embed file in excel reports.
The application is running under linux debian OS and deployed on Jboss7.1.1 application server.
I have added following lines in one of my java class:
License lic = new License();
I was not able to find easily where the license has to be dropped in order to make it works.
After a while, I see that it must be copied in the <HOME_JBOSS>/bin directory.
But I’d like to manage the license directly in the war file instead of copying it under the “bin” directory of the application server.
Is there a way to make it work in such a way? Set it as a ressource of the java project and retrieve the license from the deployment directory?
Thanks in advance.
Thanks for your posting and using Aspose.Cells.
Please note, license is just a text file or plain XML. You can open it in a notepad or Firefox to view its contents.
What you can do is copy this xml in a string and then convert your string into byte array and then file stream and set the license using SetLicense() method.
For more information relevant to this topic, please see this whole thread.