I have persistence.xml file which is used to load database and connections.
I have the username and password stored in it like this:
<!-- MySQL -->
<property name="javax.persistence.jdbc.url"
value="jdbc:mysql://localhost:3306/mydatabase"/>
<!-- Credentials -->
<property name="javax.persistence.jdbc.user"
value="this is user"/>
<property name="javax.persistence.jdbc.password"
value="this is password"/>
Now I have a requirement to not store these like this in codebase and want to fetch them programatically through a wire. How can I achieve that ?