-
1. Re: Durable diverts
gaohoward Nov 21, 2010 10:27 PM (in response to lato1)I think the programmatic way is just for you to create a 'non-durable' diverts. If you need persistent one, why don't you use configuration way?
Howard
-
2. Re: Durable diverts
clebert.suconic Nov 22, 2010 11:52 AM (in response to gaohoward)if using integrated with JBoss7, JBoss7 has a new way to persist configuration changes (Config domain).
I don't have much details though as this is something under development and is is a specific feature from JBoss7. -
3. Re: Durable diverts
lato1 Nov 23, 2010 6:06 PM (in response to clebert.suconic)Yong, I know I can use configuration but I need to create diverts "on the fly" based on user activity. If I use the configuration I have restart HornetQ.
Clebert, thank you for the reply. Is there any plan to implement persistent diverts, created programmatically? In my view it would be very useful to have persistent diverts the same way you can create persistent topics and queues.
Is there any other means I can use to move messages from one destination to another and persist that link programmatically? I read the whole documentation but could not find anything else.
Regards
-
4. Re: Durable diverts
clebert.suconic Nov 23, 2010 10:24 PM (in response to lato1)You may open a JIRA if you like.
This would be simple enough for anyone to contribute a patch. We may help anyone willing to do it. (don't know if you guys think you could do it).
-
5. Re: Durable diverts
timfox Nov 24, 2010 4:37 AM (in response to clebert.suconic)There is already an old JIRA for this. https://jira.jboss.org/browse/HORNETQ-89
It hasn't been completed yet since we had higher priority things to do.
-
6. Re: Durable diverts
lato1 Nov 25, 2010 2:50 PM (in response to timfox)Tim,
That's exactly what I was asking about. I saw that the Jira item is scheduled for version 2.3.0. Do you know what that means in terms of time.
I started looking at the HornetQ code with the idea to contribute but am finding it difficult to understand what happens where.
Regards
Ivan
-
7. Re: Durable diverts
clebert.suconic Nov 29, 2010 10:09 AM (in response to lato1)Everything happens through the StorageManager.
The Storagemanager will add specific record types for each scenario, and JournalStorageManager loadBindings would have to load those records back and recreate the structures.
I can give you more details if you are really interested in contributing the code.