Hi Junior, I tried this scenario with a topic subscription but couldn't reproduce the issue. The exact same jndi properties were used whereas the axis configurations were same except for the fact that I tried with a topic. Not sure whether it's specific to queues. Will test that scenario and update you.
Thank you Charini On Fri, Sep 15, 2017 at 5:14 PM, Júnior <[email protected]> wrote: > Hi, > > I am trying to setup a connection to the WSO2 MB from the WSO2 ESB, in a > way that in case of a Broker failure or shutdown, ESB be able to handle > that and reconnect to it once Broker is up and running. > > I have this setup in axis2.xml: > > <parameter name="myQueueConnectionFactory" locked="false"> > <parameter name="java.naming.factory.initial" > locked="false">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter> > <parameter name="java.naming.provider.url" > locked="false">conf/jndi.properties</parameter> > <parameter name="transport.jms.ConnectionFactoryJNDIName" > locked="false">QueueConnectionFactory</parameter> > <parameter name="transport.jms.ConnectionFactoryType" > locked="false">queue</parameter> > <parameter name="transport.jms.ConcurrentConsumers" > locked="false">20</parameter> > <parameter name="transport.jms.MaxConcurrentConsumers" > locked="false">20</parameter> > <parameter name="transport.jms.ReconnectInterval" > locked="false">30</parameter> > </parameter> > > And in jndi.properties I have this settings for broker failover: > > connectionfactory.QueueConnectionFactory=amqp://admin:admin@carbon/carbon?failover='roundrobin'&cyclecount='2'&brokerlist='tcp://brk1:5675?retries='5'&connectdelay='50';tcp://brk2:5675?retries='5'&connectdelay='50'' > > I noticed that when, we shutdown only one of the instances it handles the > failover defined in jndi.properties, but when we shutdown both brokers and > restart them, the proxy services that are pooling messages from the queues > do not process any message, like the connection with the Broker were not ok. > > Is there any specific parameter that we need to add on axis2.xml or > jndi.properties that could helps to achieve this requirement? > > Thanks in advance, > > https://stackoverflow.com/questions/46238761/wso2-esb- > broker-re-connection-in-case-of-broker-failure > > -- > Francisco Ribeiro > *SCEA|SCJP|SCWCD|IBM Certified SOA Associate* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Charini Vimansha Nanayakkara* Software Engineer at WSO2 Mobile: 0714126293 E-mail: [email protected] Blog: http://www.charini.me/ <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
