Commit 2f7afd92 authored by Andre Freyssinet's avatar Andre Freyssinet

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

exists.
parent 1a2de958
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 - 2018 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
......@@ -772,10 +772,13 @@ public class AdminWrapper implements AdminItf {
CreateDestinationReply reply = (CreateDestinationReply) doRequest(cdr);
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);
return queue;
}
......@@ -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