Muntean Horia wrote:
Hi.I am sorry for the noise but It seems like I can't get it right and I can't even dream to go to production environment without a clear picture about JBossMQ (or maybe any JMS implementation) reliability.
I am using JBoss-2.4.9 on a WinNT box with J2SDK1.4.1. Also my configuration is different from the standard one in respect to the JMS Persistence Manager (I switched to file PM from rollinglogged).
I have a problem with some JMS clients that run on a different host and should consume messages from the JBoss server persistent queues. Every JMS client (I have 3 such processes) is receiving messages from a different queue but after a while they hang with no error (all in the same time). The only thing I can see at the clients side DEBUG level is that the server doesn't respond with PONG. If I restart the clients they start to consume the messages but in the PM directory (db/jbossmq) I have some phantom files left there (even if JMX console shows the queues are empty).
Any ideas?
Thanks,
Horia
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
I switched to RMIConnectionFactory at the client side and everything was going smoothly - I mean no more client hangs or deadlocks, queue consumption speed is much better that the OIL variant, but as a bliss another problem showed it's ugly head:
It seems that the ClientConsumer at the server side does't detect when the client JVM is going down abruptly, so here is the nightmare:
- jboss is down, JMS receiver (on other host) is down and the queues are empty.
- i start the jboss, then i start the JMS receiver
- start business clients - the messages begin to arrive to the queue and are being consumed normaly by the client
- i stop the business clients and wait for the queue to get empty
- i kill the JMS client
---------------until now everything is OK-------------------------
- if the producer is trying to put a message to the queue, I get this nice exception:
[WARN,ClientConsumer:ID:5] Could not send messages to a receiver.
java.rmi.ConnectException: Connection refused to host: 192.168.254.103(note - this is the client IP); nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jboss.mq.il.rmi.RMIClientIL_Stub.receive(Unknown Source)
at org.jboss.mq.server.ClientConsumer.run(ClientConsumer.java:251)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
... 7 more
and the message is not persited - is lost.
Is this the normal behaviour?
I can get around this pb if I add a shutdown hook the the JMS client so it closes the JMS connection when the client JVM is killed, but what if the client JVM can't invoke the shutdown hook or network problems occurs? It's too much to ask for a JMS implementation not to loose messages?
10X,
Horia
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
