Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
joram
joram
Commits
2f7afd92
Commit
2f7afd92
authored
Jan 15, 2021
by
Andre Freyssinet
Browse files
JORAM-267: updates properties on creation when the destination already
exists.
parent
1a2de958
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/Destination.java
View file @
2f7afd92
This diff is collapsed.
Click to expand it.
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/admin/AdminWrapper.java
View file @
2f7afd92
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 - 201
8
ScalAgent Distributed Technologies
* Copyright (C) 2009 - 20
2
1 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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment