Question

i'm looking for a way to externalize the configuration file, services-config.xml, used by GraniteDS to establish communication between Java & Flex.

I need this kind of configuration, in order to be able to change servername, serverport and security credentials defined in factories node without to rebuild the entire application.

Thanks in advance Mat

Was it helpful?

Solution

I managed to implement what i'd like by overwritting the EjbServiceFactory with a CustomEjbServiceFactory based on the EjbServiceFactory but retrieving all information for InitialContext from a properties file in a specific directory and not from the default services-config.xml

See EjbServiceFactory.java

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top