Home
Analytics
Ihub instance global constants
amozharovskyi
<p>Hi, <br><br>
I have 2 custom .jar files included to IHUB instance. </p>
<ol><li>Security extension which uses REST calls to login. (contains .propertis file with "restApiUrl" and some other properties) in "IHUB home"\modules\BIRTiHub\iHub\web\iportal\WEB-INF\lib</li>
<li>API helper (contains .propertis file with "restApiUrl" and some other properties) in "IHUB home"\modules\BIRTiHub\iHub\resources</li>
</ol><p>As you can see i have to specify "restApiUrl" in both .properties files.<br>
Cannot use just 1 .properties file because it is not visible from other .jar's classes.</p>
<p> </p>
<p>Is it possible to create (or reuse) some global properties to store e.g. "restApiUrl"?</p>
<p> </p>
<p>Regards, </p>
<p>Andrii</p>
Find more posts tagged with
Comments
Clement Wong
<p>1. The IPSE is in the web layer. If you're using the embedded app server, that's Tomcat.</p>
<p>2. Is this "API helper" for report execution? If so, then that is in the iHub (server) layer.</p>
<p> </p>
<p>In your case, I'm not sure there is a way to share a property between those two layers.</p>