-
1. Re: How to set hearthbeat time for remoting keep_alive option
markus78 Apr 20, 2012 5:51 AM (in response to markus78)Figured it out, adding this sets the time interval in milliseconds,
<property name="org.jboss.remoting3.RemotingOptions.HEARTBEAT_INTERVAL" value="1000"/>
Actually , when testing this it seems that the KEEP_ALIVE property is ignored if I specify the above property , so regardless if I have keep_alive true or false or not defined at all there is communication every 1000'th millisecond as specifyed in the HEARTBEAT_INTERVAL.
-
2. Re: How to set hearthbeat time for remoting keep_alive option
spyndi Jan 20, 2013 9:45 PM (in response to markus78)Hello,
I'm trying to set the HEARTBEAT_INTERVAL property in JBoss 7.1.2, it is throwing the following exception during JBoss startup (it looks like this tag is not defined):
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[512,17]
Message: JBAS014789: Unexpected element '{urn:jboss:domain:remoting:1.1}properties' encountered
at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:85) [jboss-as-controller-7.1.2.Final.jar:7.1.2.Final]
at org.jboss.as.remoting.RemotingSubsystem11Parser.parseOutboundConnections(RemotingSubsystem11Parser.java:420) [jboss-as-remoting-7.1.2.Final.jar:7.1.2.Final]
at org.jboss.as.remoting.RemotingSubsystem11Parser.readElement(RemotingSubsystem11Parser.java:130) [jboss-as-remoting-7.1.2.Final.jar:7.1.2.Final]
This is the setup/property I have in my standalone.xml file:
<subsystem xmlns="urn:jboss:domain:remoting:1.1">
<connector name="remoting-connector" socket-binding="remoting"/>
<outbound-connections>
<remote-outbound-connection name="default" outbound-socket-binding-ref="default"/>
<remote-outbound-connection name="com.test.api" outbound-socket-binding-ref="test"/>
<properties>
<property name="SSL_ENABLED" value="false"/>
<property name="SASL_POLICY_NOANONYMOUS" value="false"/>
<property name="KEEP_ALIVE" value="true"/>
<property name="org.jboss.remoting3.RemotingOptions.HEARTBEAT_INTERVAL" value="1000"/>
</properties>
</outbound-connections>
</subsystem>
Does the Heartbeat property work for you in JBoss 7.1.2? Could you please let me know the property definition? (ie, what file? how you have added the property?)
Thank you in advance.
Sudhakar