[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Why do messages destined for paging not get assigned mes
clebert.suconic@jboss.com
do-not-reply at jboss.com
Wed Sep 24 19:11:53 EDT 2008
I have added a class called SequenceGenerator, and the Journal is using that to generate newIDs now.
I didn't change SessionImpl and TransactionImpl as I assume you are changing those classes because of the replication work you're doing.
As soon as we start assigning IDs on paging, we also need to change PagingManagerImpl to not assign IDs.
I also already added the ID on the file-encode.
Also, Tim: Please take a look on SequenceGenerator. I wanted to avoid a synchronized block on that method. Maybe you would have a better idea in how to make it atomic without requiring synchronization.
On the tests I have done it is ok.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178656#4178656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178656
More information about the jboss-dev-forums
mailing list