سؤال

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