Hi Harsha,

On Wed, Nov 12, 2014 at 8:38 AM, Harsha Thirimanna <[email protected]> wrote:
>
> As we discussed with Imesh, we have to set this jndi property to system
> variable for each enviorenment  before start listener to that environment.
>
> There is hard coded of this jndi property file in topology listener. So if
> there is way to pass configs to initialize the connection when we start
> listner , it will be easy to do this.
>
> @Imesh, WDYT ?
>
Yes as we discussed offline, as a workaround it is possible to create
separate jndi.properties files for each message broker and place them in
separate folders. Then the following system property could be set whenever
a connection is made to the message broker:

 jndi.properties.dir

https://github.com/wso2/private-paas/blob/master/source/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/broker/connect/TopicConnector.java
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to