Reputation:
I'm setting up different projects on the same server and want to put the same properties on some path outside the tomcat folder and load project properties as well how can I achieve it so that load both project properties and properties on path.
Upvotes: 0
Views: 47
Reputation: 690
You have asked 2 questions:
To load both properties you can load both with different var like:
<!-- loading properties outside the project -->
<resource-bundle>
<base-name>com.yourpackage.CustomResourceBundle</base-name>
<var>msgCustom</var>
</resource-bundle>
<!-- loading properties inside the project -->
<resource-bundle>
<base-name>com.yourpackage.resources.view</base-name>
<var>msg</var>
</resource-bundle>
Upvotes: 0