Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
joram
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
joram
joram
Commits
2f7afd92
Commit
2f7afd92
authored
Jan 15, 2021
by
Andre Freyssinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JORAM-267: updates properties on creation when the destination already
exists.
parent
1a2de958
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1131 additions
and
1122 deletions
+1131
-1122
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/Destination.java
...main/java/org/objectweb/joram/client/jms/Destination.java
+1123
-1120
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/admin/AdminWrapper.java
...va/org/objectweb/joram/client/jms/admin/AdminWrapper.java
+8
-2
No files found.
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 - 20
18
ScalAgent Distributed Technologies
* Copyright (C) 2009 - 20
21
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
Markdown
is supported
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