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.properties meaningless: drop it,
  • you need load mule-app.properties spring's <context:property-placeholder location="classpath:mule-app.properties" />. put mule-app.properties in src/main/resources when maven builds web-app ends in web-inf/classes.

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -