Вопрос

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

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top