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
a51a935f
Commit
a51a935f
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
529efcef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/Destination.java
...main/java/org/objectweb/joram/client/jms/Destination.java
+4
-1
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/admin/AdminWrapper.java
...va/org/objectweb/joram/client/jms/admin/AdminWrapper.java
+7
-1
No files found.
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/Destination.java
View file @
a51a935f
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 202
0
ScalAgent Distributed Technologies
* Copyright (C) 2001 - 202
1
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/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/admin/AdminWrapper.java
View file @
a51a935f
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 - 202
0
ScalAgent Distributed Technologies
* Copyright (C) 2009 - 202
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
...
...
@@ -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
);
...
...
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