Skip to content
GitLab
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
4e76674d
Commit
4e76674d
authored
Feb 22, 2011
by
Guillaume Surrel
Browse files
Clear Naming directory on stop.
parent
5ce168db
Changes
2
Hide whitespace changes
Inline
Side-by-side
mom-amqp/org.ow2.joram.mom.amqp/src/main/java/org/ow2/joram/mom/amqp/AMQPService.java
View file @
4e76674d
...
...
@@ -204,6 +204,7 @@ public class AMQPService {
if
(
logger
.
isLoggable
(
BasicLevel
.
DEBUG
))
logger
.
log
(
BasicLevel
.
DEBUG
,
"AMQPService.stopService()"
);
amqpService
.
stop
();
Naming
.
clearAll
();
}
/**
...
...
mom-amqp/org.ow2.joram.mom.amqp/src/main/java/org/ow2/joram/mom/amqp/Naming.java
View file @
4e76674d
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 ScalAgent Distributed Technologies
* Copyright (C) 2009
- 2011
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
...
...
@@ -243,6 +243,12 @@ public class Naming {
return
proxies
.
values
();
}
public
static
void
clearAll
()
{
exchanges
.
clear
();
queues
.
clear
();
proxies
.
clear
();
}
public
static
void
createDefaults
()
throws
Exception
{
IExchange
exchange
;
exchange
=
new
DirectExchange
(
IExchange
.
DEFAULT_EXCHANGE_NAME
,
true
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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