Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
JDBC URL from tomcat command line properties?
Migrateduser
<p>I'm trying to deploy the birt runtime on an AWS Elastic Beanstalk running Tomcat 8.</p>
<p>Using birt 4.4.2</p>
<p> </p>
<p>How can I construct the JDBC connection information from the properties that Elastic Beanstalk puts into the tomcat command line?</p>
<p> </p>
<p>I cannot put these as constants in the report because 1) I can't have my report designer use the same URL, and 2) there are multiple beanstalks in various environments and places around the world that the war is deployed to, and each environment has its own JDBC host/username/password</p>
<p> </p>
<p>For the Java code in the war file, I simply use System.getProperty() to retrieve the various properties that make up the JDBC URL. (RDS_HOSTNAME, RDS_PORT, RDS_DB_NAME, RDS_USERNAME, and RDS_PASSWORD are the properties that are provided)</p>
<p> </p>
<p>Ideally, I would like to have the JDBC URL created using some Java code so I can easily make it work in both production, testing and development.</p>
<p> </p>
<p>Any suggestions?</p>
Find more posts tagged with
Comments
There are no comments yet