[JBoss Messaging Users] - jboss init script messes up jboss messaging failover?
by augustsimonelli
Hi all,
I'm having trouble with jboss messaging (JBoss AS 5.1 all profile) and a graceful failover.
Given this:
Client sending messages to HA-JNDI port on a two-node cluster. When I kill -9 one of the nodes the client fails over perfectly, no messages are lost.
I'm using the jboss_init_redhat.sh script to handle startup and shutdown which calls stop with:
JBOSS_CMD_STOP=${JBOSS_CMD_STOP:-"java -classpath $JBOSSCP org.jboss.Shutdown -u myuser -p mypass --shutdown -s 127.0.0.1:2099"}
(i have hooked the jndi port into the jmx-consoles JAAS stuff AND changed it to 2099 as another app is running on the host).
Whenever i do a
service jboss5 stop
calling the above command the developer reports the client does not failover but rather gets an exception:
12:37:39,681 DEBUG org.jboss.remoting.transport.socket.SocketClientInvoker - SocketClientInvoker[136f5b6e, bisocket://10.66.4.10:4457]
|
| org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [bisocket://10.66.4.10:4457/?JBM_clientMaxPoolSize=200&clientLeasePeriod=10000&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&connectionWait=10&dataType=jms&marshaller=org.jboss.jms.wireformat.JMSWireFormat&numberOfCallRetries=1&pingFrequency=214748364&pingWindowFactor=10&socket.check_connection=false&stopLeaseOnFailure=true&timeout=0&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat&validatorPingPeriod=10000&validatorPingTimeout=5000]
|
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:776)
|
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:426)
|
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
|
| at org.jboss.remoting.ConnectionValidator.doCheckConnectionWithoutLease(ConnectionValidator.java:683)
|
| at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:339)
|
| at java.util.TimerThread.mainLoop(Timer.java:512)
|
| at java.util.TimerThread.run(Timer.java:462)
|
| Caused by: java.net.ConnectException: Connection refused
|
| at java.net.PlainSocketImpl.socketConnect(Native Method)
|
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
|
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
|
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
|
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
|
| at java.net.Socket.connect(Socket.java:519)
|
| at org.jboss.remoting.transport.socket.SocketClientInvoker.connect(SocketClientInvoker.java:289)
|
| at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:206)
|
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.createSocket(BisocketClientInvoker.java:433)
|
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1089)
|
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:762)
|
| ... 6 more
We lose the messages. However, when the sending is done the client comes back and uses the new node.
Failover appears to work fine as I can see it in the logs.
I DO have FailoverOnNodeLeave set to true.
So, what's the difference between a kill (or the ctrl-c'ing of run.sh, which is a trapped kill) and the org.jboss.Shutdown method?
Can i adjust something on the server? or can the client change? i believe the developers are using spring.
Thanks for any thoughts ...
August
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257234#4257234
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257234
16 years, 7 months
[JBoss Messaging Users] - Unable to get the jca-config example to work
by mantaroesg
I have JBoss 5.1 and JBM2.0 Beta4 installed on two servers (one Linux and the other Windows XP). I tried to run the example under $JBM_HOME/example/javaee/jca-config and it only partially worked. The message sent from the statelessSender was received by the QueueB (local MDB to the stateless bean) but not by QueueA (remote MDB). I had "ant deploy" running on the remote server and "ant deploy2" on the local server.
I believe the problem was that the remote host was not defined anywhere. I had tried to add
<config-property name="ConnectionParameters" type="java.lang.String">jbm.remoting.netty.host=dell</config-property>
in jms-remote-ds.xml and
<config-property>
The transport configuration. These values must be in the form of key=val;key=val;
<config-property-name>ConnectionParameters</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>jbm.remoting.netty.host=dell</config-property-value>
</config-property>
in ra.xml, but it didn't help.
I would really appreciate if someone could help...
Paul
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257228#4257228
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257228
16 years, 7 months