-
1. Re: How to run HornetQ standalone as part of AS 7?
ataylor Dec 4, 2012 2:53 AM (in response to yairogen)I don't really understand the question, a standalone hornetq is something that runs outside of an application server using the HornetQ distro
-
2. Re: How to run HornetQ standalone as part of AS 7?
yairogen Dec 4, 2012 4:18 AM (in response to ataylor)My Problem is that unlike Infinispan that has a commercial flavor - HornetQ doesn't have a standalond commercial product. Either you use the community edition - with no commerical support, or you use HornetQ module as part of AS or EAP. Am I wrong?
Assuming I am right, and as a company I must provide my customers a commercial license gor HornetQ, I must learn how to do that.
Assuming I don't use AS for anything else - how do I disble any non hornetq related module?
-
3. Re: How to run HornetQ standalone as part of AS 7?
jmesnil Dec 4, 2012 4:21 AM (in response to yairogen)Yair Ogen wrote:
Assuming I don't use AS for anything else - how do I disble any non hornetq related module?
You can start from the standalone-full.xml configuration files, remove all extensions (except the messaging one).
You can then remove all subsystem except the messaging one and you should be really close to have only HornetQ server running inside AS7.
-
4. Re: How to run HornetQ standalone as part of AS 7?
clebert.suconic Dec 4, 2012 7:03 PM (in response to jmesnil)I had previously successfull isolated all the required components on this standalone file.
Notice that the management interface on AS7 has changed. although you can still re-enable jmx administration by placing <jmx-management-enabled>true</jmx-management-enabled>, however that's being deprecated in favour of the new management interface.
if you set it to true you should be able to connect to the jboss' console through jconsole
-
standalone-messaging.xml 11.0 KB
-
-
5. Re: How to run HornetQ standalone as part of AS 7?
yairogen Dec 5, 2012 4:14 AM (in response to clebert.suconic)By "re-enable jmx administration" do you mean it will export an RMI port for JMX?
- Where exactly do I add this line?
- How do i control the port exposed to a remote application?
Thanks.
-
6. Re: How to run HornetQ standalone as part of AS 7?
ataylor Dec 5, 2012 4:16 AM (in response to yairogen)Where exactly do I add this line?
to the messaging subsystem
How do i control the port exposed to a remote application?
I'm not sure whether AS7 exposes its own JMX server or just uses the default, i would ask on the AS7 forums.
-
7. Re: How to run HornetQ standalone as part of AS 7?
yairogen Dec 5, 2012 4:22 AM (in response to ataylor)Thanks. I'm new to this.
Do you mean under the <hornetq-server> node directly? somewhere else?
The subsystem xml section is quite big. I don't where to add it.
-
8. Re: How to run HornetQ standalone as part of AS 7?
ataylor Dec 5, 2012 4:27 AM (in response to yairogen)yes, under the the hornetq-server node, for future referece AS7 ships with the schemas for all the subsystems, under docs/schema, that you can use to check your configuration.
-
9. Re: How to run HornetQ standalone as part of AS 7?
yairogen Dec 5, 2012 5:54 AM (in response to ataylor)Thanks. I now see hornetq in jconsole.
Last thing I can't do is connect to the hornetq jmx via remote connection.
Please advise.
-
10. Re: How to run HornetQ standalone as part of AS 7?
clebert.suconic Dec 5, 2012 9:19 AM (in response to yairogen)I have web searched and found a thread here:
https://community.jboss.org/thread/157719
It should be a simple thing now.
-
11. Re: How to run HornetQ standalone as part of AS 7?
yairogen Dec 6, 2012 3:40 AM (in response to clebert.suconic)It doesn't work.
I get this error:
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
Although I do see teh server is listening on 9999.
Tried the jmx url with both IP and host name. Same error.
-
12. Re: How to run HornetQ standalone as part of AS 7?
ataylor Dec 6, 2012 7:31 AM (in response to yairogen)Slim down the subsystems to what you only need for hornetq to run, regarding New hornetq releases, these will be integrated into AS7 on a regular basis.
-
13. Re: How to run HornetQ standalone as part of AS 7?
yairogen Dec 6, 2012 10:20 AM (in response to ataylor)Clebert helped to shrink the subsystems. I have the minimal set. However I am getting the above error trying to connect to JMX remotely.
-
14. Re: How to run HornetQ standalone as part of AS 7?
clebert.suconic Dec 6, 2012 10:40 AM (in response to yairogen)Try first with plain jconsole, that will show you all the possible remote options, than use those options to connect in your application.