[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - managementService.registerQueue call on JournalStorageManage
clebert.suconic@jboss.com
do-not-reply at jboss.com
Thu Aug 7 11:23:46 EDT 2008
On the latest change done by Jeff Mesnil on the management API, it was added a managementService call to register the Queue during loadBindings.
Shouldn't that be done by the PostOffice? The JournalStorageManager doesn't seem qualified to IMO.
Maybe:
private void loadBindings() throws Exception
| {
| List<Binding> bindings = new ArrayList<Binding>();
|
| List<SimpleString> dests = new ArrayList<SimpleString>();
|
| storageManager.loadBindings(queueFactory, bindings, dests);
|
|
|
| for (Binding binding: bindings)
| {
| managementService.registerQueue(bindings...blablabla);
| }
|
|
| //Destinations must be added first to ensure flow controllers exist before queues are created
| for (SimpleString destination: dests)
| {
| addDestination(destination, false);
| }
|
| Map<Long, Queue> queues = new HashMap<Long, Queue>();
|
| for (Binding binding: bindings)
| {
| addBindingInMemory(binding);
|
| queues.put(binding.getQueue().getPersistenceID(), binding.getQueue());
| }
|
| storageManager.loadMessages(this, queues);
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169328#4169328
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169328
More information about the jboss-dev-forums
mailing list