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
b5b52ad9
Commit
b5b52ad9
authored
Jun 15, 2010
by
Guillaume Surrel
Browse files
New monitoring destination using the new destination extension mechanism do not exist as services.
parent
74616df3
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/src/org/objectweb/joram/mom/osgi/Activator.java
View file @
b5b52ad9
/*
* Copyright (C) 2009 ScalAgent Distributed Technologies
* Copyright (C) 2009
- 2010
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
...
...
@@ -23,8 +23,6 @@ package org.objectweb.joram.mom.osgi;
import
java.util.Properties
;
import
org.objectweb.joram.mom.dest.MonitoringQueue
;
import
org.objectweb.joram.mom.dest.MonitoringTopic
;
import
org.objectweb.joram.mom.proxies.ConnectionManager
;
import
org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService
;
import
org.objectweb.joram.mom.proxies.tcp.TcpProxyService
;
...
...
@@ -42,10 +40,6 @@ public class Activator implements BundleActivator {
private
ServiceRegistration
sslTcpProxyServiceRegistration
;
private
ServiceRegistration
monitoringTopicRegistration
;
private
ServiceRegistration
monitoringQueueRegistration
;
public
void
start
(
BundleContext
context
)
throws
Exception
{
Properties
props
=
new
Properties
();
props
.
put
(
Service
.
SERVICE_NAME_PROP
,
ConnectionManager
.
class
.
getName
());
...
...
@@ -57,19 +51,12 @@ public class Activator implements BundleActivator {
props
.
put
(
Service
.
SERVICE_NAME_PROP
,
SSLTcpProxyService
.
class
.
getName
());
sslTcpProxyServiceRegistration
=
context
.
registerService
(
Service
.
class
.
getName
(),
new
Service
(),
props
);
props
.
put
(
Service
.
SERVICE_NAME_PROP
,
MonitoringTopic
.
class
.
getName
());
monitoringTopicRegistration
=
context
.
registerService
(
Service
.
class
.
getName
(),
new
Service
(),
props
);
props
.
put
(
Service
.
SERVICE_NAME_PROP
,
MonitoringQueue
.
class
.
getName
());
monitoringQueueRegistration
=
context
.
registerService
(
Service
.
class
.
getName
(),
new
Service
(),
props
);
}
public
void
stop
(
BundleContext
context
)
throws
Exception
{
connectionManagerRegistration
.
unregister
();
tcpProxyServiceRegistration
.
unregister
();
sslTcpProxyServiceRegistration
.
unregister
();
monitoringTopicRegistration
.
unregister
();
monitoringQueueRegistration
.
unregister
();
}
}
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