I'm experiencing problems with the message redistribution between the cluster
nodes. I'm running two server nodes jboss-4.2.0.GA with
jboss-messaging-1.4.0.SP2
(http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.0.SP2/html/installation.html#install.automated
).
Running the example with the default settings is OK. I have tried to change the
default distributed queue with another one. So I defined it into the
destinations-service.xml into both cluster nodes:
| ...
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=TestService"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| <attribute name="Clustered">true</attribute>
| </mbean>
| ...
|
(is the configuration ok?)
..and then executing the examlpe does not always work:
|
D:\research\MessageBus\JBossMQ\jboss-messaging-1.4.0.SP2\examples\distributed-queue>ant
-Dexample.queue.name=TestService
| Buildfile: build.xml
|
| identify:
| [echo]
###########################################################################
| [echo] # Running the DISTRIBUTED QUEUE example
#
| [echo]
###########################################################################
| [echo] The queue: TestService
| [echo] The client jar: ../..//jboss-messaging-client.jar
|
| sanity-check:
|
| init:
|
| compile:
|
| run:
| [java] Distributed queue /queue/TestService exists
| [java] The message was successfully sent to the distributed queue
| [java] java.lang.NullPointerException
| [java] at
org.jboss.example.jms.distributedqueue.DistributedQueueExample.example(DistributedQueueExample.java:112)
| [java] at
org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:147)
| [java] at
org.jboss.example.jms.distributedqueue.DistributedQueueExample.main(DistributedQueueExample.java:167)
| [java]
| [java] #####################
| [java] ### FAILURE! ###
| [java] #####################
|
| BUILD FAILED
|
Then if I check the jbm_msg table I see that the message is there but I do not
always get it.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113781#4113781
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113781
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user