• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use properties file (j2ee+ flex)

 
sandy kailash
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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


 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic