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
c113e43a
Commit
c113e43a
authored
Feb 21, 2014
by
afreyssin
Browse files
ScaleRequest should not be delivered to a basic destination.
Process it as an error.
parent
ad2a9a76
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/joram/mom/core/src/main/java/org/objectweb/joram/mom/dest/Destination.java
View file @
c113e43a
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 201
3
ScalAgent Distributed Technologies
* Copyright (C) 2001 - 201
4
ScalAgent Distributed Technologies
* Copyright (C) 1996 - 2000 Dyade
*
* This library is free software; you can redistribute it and/or
...
...
@@ -62,7 +62,6 @@ import org.objectweb.joram.shared.admin.AdminRequest;
import
org.objectweb.joram.shared.admin.DeleteDestination
;
import
org.objectweb.joram.shared.admin.GetStatsReply
;
import
org.objectweb.joram.shared.admin.GetStatsRequest
;
import
org.objectweb.joram.shared.admin.ScaleRequest
;
import
org.objectweb.joram.shared.admin.SetDMQRequest
;
import
org.objectweb.joram.shared.admin.SetReader
;
import
org.objectweb.joram.shared.admin.SetRight
;
...
...
@@ -83,7 +82,6 @@ import fr.dyade.aaa.agent.AgentId;
import
fr.dyade.aaa.agent.AgentServer
;
import
fr.dyade.aaa.agent.CallbackNotification
;
import
fr.dyade.aaa.agent.Channel
;
import
fr.dyade.aaa.agent.CountDownCallback
;
import
fr.dyade.aaa.agent.DeleteNot
;
import
fr.dyade.aaa.agent.Notification
;
import
fr.dyade.aaa.agent.UnknownAgent
;
...
...
@@ -1066,8 +1064,6 @@ public abstract class Destination extends Agent implements DestinationMBean, TxD
not
.
getReplyTo
(),
not
.
getRequestMsgId
(),
not
.
getReplyMsgId
());
}
else
if
(
adminRequest
instanceof
AdminCommandRequest
)
{
processAdminCommand
((
AdminCommandRequest
)
adminRequest
,
not
.
getReplyTo
(),
not
.
getRequestMsgId
());
}
else
if
(
adminRequest
instanceof
ScaleRequest
)
{
// Ignored, should be handled either by Queues or Topics.
}
else
{
logger
.
log
(
BasicLevel
.
ERROR
,
"Unknown administration request for destination "
+
getId
());
replyToTopic
(
new
AdminReply
(
AdminReply
.
UNKNOWN_REQUEST
,
null
),
...
...
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