How to get the parameters that was defined in mule-app.properties when running as Tomcat app? -
i got mule app running in tomcat. ran 1 issue , need help.
i don't know put mule-app.properties , mule-deploy.properties files. have parameters db name, driver name, url, etc. in mule-app.properties file. tried put them - in class path /web-inf/lib or /web-inf/classes - direct under /web-inf - under /web-inf/src/main/app or under /web-inf/src/mail/resources - right next web-inf none of them works. cannot them flow using el , cannot them java using muleregistry object.
please me parameters mule-app.properties?
the mule-app.properties , mule-deploy.properties files loaded mule standalone.
since run in embedded mode:
mule-deploy.propertiesmeaningless: drop it,- you need load
mule-app.propertiesspring's<context:property-placeholder location="classpath:mule-app.properties" />. putmule-app.propertiesinsrc/main/resourceswhen maven builds web-app ends inweb-inf/classes.
Comments
Post a Comment