Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-18833

(7.3.z) Expressions in jboss-ejb-client.xml don't work for client-context invocation-timeout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.3.1.CR1, 7.3.1.GA
    • 7.2.4.GA, 7.3.0.GA
    • EJB
    • None
    • -
    • Hide

      sample jboss-ejb-client.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-ejb-client xmlns="urn:jboss:ejb-client:1.2">
      
      	<!-- only in client-context invocation-timeout value binding is not working -->
      	<client-context invocation-timeout="${ejb.remote.invocation-timeout:120000}">
      
      		<ejb-receivers exclude-local-receiver="false">
      			<remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection-1" connect-timeout="${ejb.remote.connect-timeout:5000}" />
      		</ejb-receivers>
      
      		<clusters>
      			<cluster name="clustername" security-realm="security-realm" username="username">
      				<connection-creation-options>
      					<property name="org.xnio.Options.SSL_ENABLED" value="false" />
      					<property name="org.xnio.Options.SASL_POLICY_NOANONYMOUS" value="false" />
      					<property name="org.xnio.Options.KEEP_ALIVE" value="true"/>
      					<property name="org.jboss.remoting3.RemotingOptions.HEARTBEAT_INTERVAL" value="${ejb.remote.heartbeat-interval:7500}"/>
      					<property name="org.xnio.Options.READ_TIMEOUT" value="${ejb.remote.read-timeout:30000}"/>
      				</connection-creation-options>
      			</cluster>
      		</clusters>
      
      	</client-context>
      </jboss-ejb-client>
      Show
      sample jboss-ejb-client.xml <?xml version= "1.0" encoding= "UTF-8" ?> <jboss-ejb-client xmlns= "urn:jboss:ejb-client:1.2" > <!-- only in client-context invocation-timeout value binding is not working --> <client-context invocation-timeout= "${ejb.remote.invocation-timeout:120000}" > <ejb-receivers exclude-local-receiver= "false" > <remoting-ejb-receiver outbound-connection-ref= "remote-ejb-connection-1" connect-timeout= "${ejb.remote.connect-timeout:5000}" /> </ejb-receivers> <clusters> <cluster name= "clustername" security-realm= "security-realm" username= "username" > <connection-creation-options> <property name= "org.xnio.Options.SSL_ENABLED" value= "false" /> <property name= "org.xnio.Options.SASL_POLICY_NOANONYMOUS" value= "false" /> <property name= "org.xnio.Options.KEEP_ALIVE" value= "true" /> <property name= "org.jboss.remoting3.RemotingOptions.HEARTBEAT_INTERVAL" value= "${ejb.remote.heartbeat-interval:7500}" /> <property name= "org.xnio.Options.READ_TIMEOUT" value= "${ejb.remote.read-timeout:30000}" /> </connection-creation-options> </cluster> </clusters> </client-context> </jboss-ejb-client>

      WFLY-4303 made it possible to use expressions in jboss-ejb-client.xml
      However that doesn't seem to work everywhere. We tried to make several especially timeout related properties configurable and while expressions work at most places, in the case of client-context invocation-timeout they don't and we get a java.lang.NumberFormatException for the string specified as the value of the invocation-timeout.

      Would it be possible to make the client-context invocation-timeout work with expressions as well?

              chaowan@redhat.com Chao Wang
              petr.hostalek@bsc-ideas.com Petr Hostalek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: