Commit 72e0cfb2 authored by Andre Freyssinet's avatar Andre Freyssinet
Browse files

Minor changes.

parent 19908d7a
/* /*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging * JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 2017 ScalAgent Distributed Technologies * Copyright (C) 2001 - 2019 ScalAgent Distributed Technologies
* Copyright (C) 2004 France Telecom R&D * Copyright (C) 2004 France Telecom R&D
* Copyright (C) 2003 - 2004 Bull SA * Copyright (C) 2003 - 2004 Bull SA
* Copyright (C) 1996 - 2000 Dyade * Copyright (C) 1996 - 2000 Dyade
...@@ -1740,7 +1740,8 @@ public final class UserAgent extends Agent implements UserAgentMBean, ProxyAgent ...@@ -1740,7 +1740,8 @@ public final class UserAgent extends Agent implements UserAgentMBean, ProxyAgent
} }
dest.setName(req.getName()); dest.setName(req.getName());
dest.setAdminId(getId()); dest.setAdminId(getId());
dest.setFreeWriting(true); // Setting free WRITE right on the destination // Setting free WRITE right on the destination
dest.setFreeWriting(true);
if (!DestinationConstants.isTemporary(req.getType())) if (!DestinationConstants.isTemporary(req.getType()))
dest.setFreeReading(true); // Setting free READ right on the destination dest.setFreeReading(true); // Setting free READ right on the destination
destId = dest.getId(); destId = dest.getId();
...@@ -1750,8 +1751,7 @@ public final class UserAgent extends Agent implements UserAgentMBean, ProxyAgent ...@@ -1750,8 +1751,7 @@ public final class UserAgent extends Agent implements UserAgentMBean, ProxyAgent
throw new RequestException("Could not create destination:" + exc.getMessage()); throw new RequestException("Could not create destination:" + exc.getMessage());
} }
// Registers the newly created destination // Registers the newly created destination
AdminTopic.registerDest(destId, (req.getName() == null) ? destId.toString() : req.getName(), AdminTopic.registerDest(destId, (req.getName() == null) ? destId.toString() : req.getName(), req.getType());
req.getType());
if (DestinationConstants.isTemporary(req.getType())) { if (DestinationConstants.isTemporary(req.getType())) {
// Registers the temporary destination in order to clean it at the end // Registers the temporary destination in order to clean it at the end
......
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