-
1. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
synclpz Nov 25, 2013 8:19 AM (in response to mevans7)I'm also trying to achieve your goal - reliable clustered messaging. At the moment only I have achieved is reliable clustered mess
As for your question, I see that a post from one of developers could help (but I did't try myself): https://github.com/andytaylor/HornetQ-AS7-examples/tree/master/domain-replication
Here he says that we should do next thing from JBoss-CLI:
/host=master/server-config=hornetq-live:stop
{
"outcome" => "success",
"result" => "STOPPING"
} -
2. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
mevans7 Nov 25, 2013 2:44 PM (in response to synclpz)Thanks Viktor. I saw that article. It appears to be written for "domain" mode rather than "standalone" mode. If I run that command, I get the following result:
[standalone@myhost:9999 /] /host=master/server-config=hornetq-live:stop
{
"outcome" => "failed",
"failure-description" => "JBAS014883: No resource definition is registered for address [
(\"host\" => \"master\"),
(\"server-config\" => \"hornetq-live\")
]",
"rolled-back" => true
}
Good luck with your clustered messaging.
-
3. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
jbertram Nov 25, 2013 3:21 PM (in response to mevans7)HornetQ 2.3.12.Final should have all the changes necessary to allow the broker to restart automatically after fail-back (see https://github.com/hornetq/hornetq/commit/8d91a31b0f1a8cb7a8584b6472477c17a4474ae0).
-
4. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
mevans7 Nov 25, 2013 4:44 PM (in response to jbertram)Thank you Justin! Is this change in a 2.3.x version (tag) of HornetQ that I can incorporate into my JBoss 7? Looking at github, the most recent label on 2.3 appears to be 2.3.12.Final, and I downloaded and installed that last week. What tag are these changes made under?
-
5. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
jbertram Nov 25, 2013 4:53 PM (in response to mevans7)As I indicated, this change is already in 2.3.12.Final which you are already apparently using. Therefore, I'm not sure why it isn't working for you. Have you tried configuring 2 standalone HornetQ 2.3.12.Final servers and connecting to those from your applications running in the application server?
-
6. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
mevans7 Nov 25, 2013 5:49 PM (in response to jbertram)The bug report here https://bugzilla.redhat.com/show_bug.cgi?id=1013536 says:
jbertram 2013-10-25 17:29:38 EDT
FYI - Andy's fix added support for <max-saved-replicated-journals-size> to HornetQ,
but from what I can see the messaging subsystem in EAP 6 was *not* updated to
support this new parameter. Therefore, users will be stuck with the default value for
max-saved-replicated-journals-size (i.e. 2) until the messaging subsystem is updated
appropriately.
So I was thinking that this value could not be passed through the JBoss 7 configuration to HornetQ.
Are you suggesting I run HornetQ outside of JBoss, and if so, are you suggesting it as a deliverable solution? I have to think about that. What about message driven beans? Other issues?
(Thank you for your responses, and putting up with my careless analysis of your prior comment -- you clearly stated HQ 2.3.12.Final had the fix -- I let myself get distracted by the bugzilla report link.)
-
7. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
jbertram Nov 25, 2013 5:59 PM (in response to mevans7)So I was thinking that this value could not be passed through the JBoss 7 configuration to HornetQ.
You're right. It can't - at least not in the version you're using. However, that shouldn't stop the default value from being used.
Are you suggesting I run HornetQ outside of JBoss, and if so, are you suggesting it as a deliverable solution? I have to think about that. What about message driven beans? Other issues?
I am suggesting that if you want this to work you should consider trying running HornetQ standalone (i.e. outside of the application server). I'm not sure what you mean by "deliverable solution". MDBs can still run in the application server and connect remotely to the HornetQ servers.
-
8. Re: Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
bbuterbrott Dec 10, 2013 2:56 AM (in response to jbertram)Miroslav Novak in his comment to bz (https://bugzilla.redhat.com/show_bug.cgi?id=1013536#c15) said that he added this property using the CLI. He was speaking about JBoss EAP 6.2.0? Because when I tried to add it myself in JBoss EAP 6.1.0 using this CLI command:
{ "address" => [ ("subsystem" => "messaging"), ("hornetq-server" => "test-hornetq-1-backup") ], "operation" => "write-attribute", "name" => "max-saved-replicated-journal-size", "value" => -1 }
I got this outcome, stating that this attribute is not known:
{ "outcome" => "failed", "failure-description" => "JBAS014792: Unknown attribute max-saved-replicated-journal-size", "rolled-back" => true }
I would like to know if there is a way to set this new property in JBoss EAP 6.1.0. Or maybe a way to tweak it default value to -1?
-
9. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
jbertram Dec 11, 2013 10:53 PM (in response to bbuterbrott)There is no way to set this EAP 6.1 because it doesn't even exist in EAP 6.1. If you want to use this then move to EAP 6.2.
-
10. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
synclpz Dec 12, 2013 8:06 AM (in response to jbertram)Justin, is this specific to some EAP libraries? We have already updated HornetQ jars to 2.3.12. May be some updates could solve the problem?
-
11. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
jbertram Dec 12, 2013 1:02 PM (in response to synclpz)Yes, this is specific to EAP. All CLI or XML based administration is performed by EAP itself and then enacted upon the underlying HornetQ implementation.
-
12. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
synclpz Dec 12, 2013 9:58 PM (in response to jbertram)Got it. Is that option available in WildFly?
-
13. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
jbertram Dec 12, 2013 10:58 PM (in response to synclpz)It's not available in any release of Wildfly, but you can pull the latest snapshot build it if you want or just download a recent nightly build.
Also, as I indicated previously, it is in EAP 6.2 which is available for download as well.
-
14. Re: JBoss 7, HornetQ, Restart backup HornetQ after failback
synclpz Dec 13, 2013 2:39 AM (in response to jbertram)Thanks. We will try nighly wildfly.