4 Replies Latest reply on Nov 27, 2013 1:56 PM by spolti

    How to configure connection-ttl and client-failure-check-period in JBoss as 7

    ohmygod

      As the title, how to configure connection-ttl and client-failure-check-period in JBoss as 7?

        • 1. Re: How to configure connection-ttl and client-failure-check-period in JBoss as 7
          jbertram

          You set can set those on the connection factory.  Look at the messaging schema in <JBOSS_HOME>/docs/schema and you'll see where they go.

          • 2. Re: How to configure connection-ttl and client-failure-check-period in JBoss as 7
            ohmygod

            Hi Justin,

             

            There are several connection factories under <jms-connection-factories>. The factory my project is using is the entry "<entry name="java:jboss/exported/jms/JMSConnectionFactory"/>" under RemoteConnectionFactory. So what I am not sure is where to define the two options "connecion-ttl" and "client-failure-check-period" to make them effective in my project, under "<connection-factory name="RemoteConnectionFactory">", or under "<pooled-connection-factory name="hornetq-ra">"?

             

            <jms-connection-factories>
                                <connection-factory name="InVmConnectionFactory">
                                    <connectors>
                                        <connector-ref connector-name="in-vm"/>
                                    </connectors>
                                    <entries>
                                        <entry name="java:/ConnectionFactory"/>
                                    </entries>
                                </connection-factory>
                                <connection-factory name="RemoteConnectionFactory">
                                    <connectors>
                                        <connector-ref connector-name="netty"/>
                                    </connectors>
                                    <entries>
                                        <entry name="RemoteConnectionFactory"/>
                                        <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>
                                        <entry name="JMSConnectionFactory"/>
                                        <entry name="java:jboss/exported/jms/JMSConnectionFactory"/>
                                    </entries>
                                </connection-factory>
                                <pooled-connection-factory name="hornetq-ra">
                                    <transaction mode="xa"/>
                                    <connectors>
                                        <connector-ref connector-name="in-vm"/>
                                    </connectors>
                                    <entries>
                                        <entry name="java:/JmsXA"/>
                                    </entries>
                                </pooled-connection-factory>
                            </jms-connection-factories>
            
            
            • 3. Re: How to configure connection-ttl and client-failure-check-period in JBoss as 7
              jbertram

              If your clients are using a connection factory bound at "java:jboss/exported/jms/JMSConnectionFactory" then you would change the <connection-factory> which has that entry. 

              • 4. Re: How to configure connection-ttl and client-failure-check-period in JBoss as 7
                spolti

                Here is a example for connection-ttl:

                 

                                <connection-factory name="InVmConnectionFactory">
                                    <connectors>
                                        <connector-ref connector-name="in-vm"/>
                                    </connectors>
                                    <entries>
                                        <entry name="java:/ConnectionFactory"/>
                                    </entries>
                                    <connection-ttl>-1</connection-ttl>
                                </connection-factory>
                1 of 1 people found this helpful