I have a POJO module which connects to CICS mainframe which has a bunch of properties files for different environments? However the production properties file is not updated with production details as it is supposed not be exposed to every one. This jar file will be used by web application which will run in JBOSS. So my question really is if we deliver my jar file to operations which are responsible for deploying it, is there a way that they can clone the production properties and copy it some where in some folder in JBOSS that takes precedence over what's in the ja?
I think, whatever there in the classes folder takes precedence over the jar... you may copy it to the classes folder( with same folder structure ) of the web app!
If you want the 'production properties' ('PP') to take precedence over the client properties ('CP') then you should ensure that PP is loaded after CP. You can allow CP to be loaded by the application classloader and then load PP explicitly so there are no classloader order problems