-
1. Re: Second hornetq-configuration.xml ????
clebert.suconic Oct 29, 2009 10:08 PM (in response to satjboss)Look at run.sh. You can specify hornetq-beans.xml, and the directory where the configurations are picked up from.
on the hornetq-beans, you can change the FileConfiguration to use a different property.
on the Configuration bean, there is a property called configurationUrl, where you can set a diffferent hornetq-configuration.xml
Anyway.. the easiest way is to have multiple directories. But you can do it any way you want it. -
3. Re: Second hornetq-configuration.xml ????
sgavarini2 Nov 5, 2009 11:09 PM (in response to satjboss)Hi,
I'd like to add something regarding the file name that happened to me that may help somebody with the same issue. When I changed the default file name "hornetq-configuration.xml", it worked in FileConfiguration and you get many of the options configured, but there is a problem when you also use the tags inside that file instead of the optional hornetq-queue.xml, it won't get deployed. It also happens with the XmlDeployer subclasses, I think it's a little catch, take a look inside QueueDeployer for example:public String[] getDefaultConfigFileNames() { return new String[] { "hornetq-configuration.xml", "hornetq-queues.xml" }; }
That method can't be overridden, at least I didn't find an easy way, because the QueueDeployer is instantiated inside a private method of HornetQServerImpl:queueDeployer = new QueueDeployer(deploymentManager, messagingServerControl);
and it doesn't know about your hornetq-configuration.xml new chosen name.
The end result is a:
Caused by: HornetQException[errorCode=100 message=Binding [your-queue-name] does not exist]
when you first try to use it as it wasn't loaded as part of the predefined queues.
Just my two cents, regards,
Sebastian. -
4. Re: Second hornetq-configuration.xml ????
sgavarini2 Nov 5, 2009 11:14 PM (in response to satjboss)Sorry to double post, I pasted an xml tag that wasn't shown in the previous one, now I removed the angle brackets:
Hi,
I'd like to add something regarding the file name that happened to me that may help somebody with the same issue. When I changed the default file name "hornetq-configuration.xml", it worked in FileConfiguration and you get many of the options configured, but there is a problem when you also use the queues - queue tags inside that file instead of the optional hornetq-queue.xml, it won't get deployed. It also happens with the XmlDeployer subclasses, I think it's a little catch, take a look inside QueueDeployer for example:public String[] getDefaultConfigFileNames() { return new String[] { "hornetq-configuration.xml", "hornetq-queues.xml" }; }
That method can't be overridden, at least I didn't find an easy way, because the QueueDeployer is instantiated inside a private method of HornetQServerImpl:queueDeployer = new QueueDeployer(deploymentManager, messagingServerControl);
and it doesn't know about your hornetq-configuration.xml new chosen name.
The end result is a:
Caused by: HornetQException[errorCode=100 message=Binding [your-queue-name] does not exist]
when you first try to use it as it wasn't loaded as part of the predefined queues.
Just my two cents, regards,
Sebastian. -
5. Re: Second hornetq-configuration.xml ????
clebert.suconic Nov 6, 2009 9:17 AM (in response to satjboss)Why don't you just use directories?