• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to use properties file (j2ee+ flex)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how to use properties file


i am working with java and flex.
there are some (flex) service config.xml file where i am wirting the IP Address or Domain Name. also there some mxml file where this ip-address has to be mentioned.
then the respective swf file is been copied in the web content of my project.


i have to change these ip address acccording to my requirments. so i thought better to store all these IP Address in a properties file.
so that a sing change in properties file will help me.

but my question is...

Is it possible to do so. and

if it is, then how to create and use the properties file for the flex.

and is it possible to see the change made in properties file will be reflected to the xml files.???


please help!!!

Thanks in advance


 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Flex finds external resources in the same way a web app does - you just load it from a link.

Are you aware that service-config.xml can use parameters? You shouldn't need to hardcode IP addresses anywhere.


and is it possible to see the change made in properties file will be reflected to the xml files.???


No. You'll need to implement some sort of build process to do this.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic