Hi @Amira SFARI ,
Check out Application-level data sources under Configure data sources. You can add context.xml to META-INF/ directory and use those types in the web.xml file.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
for my app deployment it's required to make some changes to context.xml after deploying the app. I'm aware that Azure App Service is a paas and there's no way to make changes to system files and any change will not be persistent after reboot but I have to edit the context.xml file to this content so my app can recognise the database:
<?xml version='1.0' encoding='utf-8'?>
<Context>
<WatchedResource> WEB-INF/web.xml </WatchedResource>
<Resource name="jdbc/testing" auth="Container" type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
username="teur@testing "
password="xxx" driverClassName="com.mysql.jdbc.Driver"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" url="jdbc:mysql://testing.mysql.database.azure.com:3306/edmydb?useUnicode=true&characterEncoding=UTF-8"/>
</Context>
any suggestion?
Hi @Amira SFARI ,
Check out Application-level data sources under Configure data sources. You can add context.xml to META-INF/ directory and use those types in the web.xml file.