java - Load jboss-ejb-client.properties from local file system and set IntialContext for jndi lookup -
unable set jboss-ejb-client.properties in environment of spring application, loaded local file system
jboss-ejb-client.properties: remote.connectionprovider.create.options.org.xnio.options.ssl_enabled=false remote.connections=default remote.connection.default.host=10.203.67.52 remote.connection.default.port=8080 remote.connection.default.connect.options.org.xnio.options.sasl_policy_noanonymous=false remote.connection.default.username=**** remote.connection.default.password=****
below file jboss-ejb-client.properties loaded, file not overriding spring jar (jboss-ejb-client.properties) file
wanted dynamically pass server "hostaddress" application via local filesystem property file
@configuration @propertysources({ @propertysource(value = "file:${art_config_dir}/jboss-ejb-client.properties", ignoreresourcenotfound = true) public class synchronizerjobconfiguration {......
is there way load , set jboss-ejb-client.properties file spring run time environment
workaround solution used getresourcestream(jboss-ejb-client property file)
setting property host worked.
need clean approach override properties
Comments
Post a Comment