Commit a51a935f authored by Andre Freyssinet's avatar Andre Freyssinet

JORAM-267: updates properties on creation when the destination already

exists.
parent 529efcef
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 2020 ScalAgent Distributed Technologies
* Copyright (C) 2001 - 2021 ScalAgent Distributed Technologies
* Copyright (C) 2004 Bull SA
* Copyright (C) 1996 - 2000 Dyade
*
......@@ -445,6 +445,9 @@ public abstract class Destination extends AdministeredObject implements javax.jm
dest.agentId = reply.getId();
dest.adminName = name;
// If the destination already exists the properties shall be updated.
dest.setProperties(props);
// Be careful, MBean registration is now done explicitly
}
......
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 - 2020 ScalAgent Distributed Technologies
* Copyright (C) 2009 - 2021 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -773,6 +773,9 @@ public class AdminWrapper implements AdminItf {
Queue queue = Queue.createQueue(reply.getId(), name);
// If the destination already exists the properties shall be updated.
processAdmin(name, AdminCommandConstant.CMD_SET_PROPERTIES, prop);
if (AdminModule.wrapper != this)
queue.setWrapper(this);
......@@ -834,6 +837,9 @@ public class AdminWrapper implements AdminItf {
Topic topic = Topic.createTopic(reply.getId(), name);
// If the destination already exists the properties shall be updated.
processAdmin(name, AdminCommandConstant.CMD_SET_PROPERTIES, prop);
if (AdminModule.wrapper != this)
topic.setWrapper(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment