Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-05-18 10:28:56 +0000
committerEike Stepper2010-05-18 10:28:56 +0000
commitf4de3f5cff62a7138204ea7a1b6df72b3ae3db43 (patch)
tree04d46d75b774ca56bcb6b657ce6bfec35e00a172 /plugins/org.eclipse.net4j.jms.server
parentd1d8f27b98246f9f20509867349e51114d7fabbd (diff)
downloadcdo-f4de3f5cff62a7138204ea7a1b6df72b3ae3db43.tar.gz
cdo-f4de3f5cff62a7138204ea7a1b6df72b3ae3db43.tar.xz
cdo-f4de3f5cff62a7138204ea7a1b6df72b3ae3db43.zip
[312393] Use BundleContext.getProperty() instead of System.getProperty() when running in OSGi
https://bugs.eclipse.org/bugs/show_bug.cgi?id=312393
Diffstat (limited to 'plugins/org.eclipse.net4j.jms.server')
-rw-r--r--plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/Server.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/Server.java b/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/Server.java
index 7ef43a3b50..1e68b7f8ad 100644
--- a/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/Server.java
+++ b/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/Server.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Eike Stepper - initial API and implementation
*/
@@ -22,6 +22,7 @@ import org.eclipse.net4j.jms.server.IStoreTransaction;
import org.eclipse.net4j.util.HexUtil;
import org.eclipse.net4j.util.concurrent.NonBlockingLongCounter;
import org.eclipse.net4j.util.concurrent.QueueWorker;
+import org.eclipse.net4j.util.om.OMPlatform;
import javax.jms.Destination;
import javax.naming.Context;
@@ -201,9 +202,9 @@ public class Server extends QueueWorker<MessageImpl> implements IServer
protected void doActivate() throws Exception
{
super.doActivate();
- String name = System.getProperty("net4j.jms.connection.factory.name", "net4j.jms.ConnectionFactory"); //$NON-NLS-1$ //$NON-NLS-2$
- String type = System.getProperty("net4j.jms.connector.type", "tcp"); //$NON-NLS-1$ //$NON-NLS-2$
- String desc = System.getProperty("net4j.jms.connector.description", "localhost"); //$NON-NLS-1$ //$NON-NLS-2$
+ String name = OMPlatform.INSTANCE.getProperty("net4j.jms.connection.factory.name", "net4j.jms.ConnectionFactory"); //$NON-NLS-1$ //$NON-NLS-2$
+ String type = OMPlatform.INSTANCE.getProperty("net4j.jms.connector.type", "tcp"); //$NON-NLS-1$ //$NON-NLS-2$
+ String desc = OMPlatform.INSTANCE.getProperty("net4j.jms.connector.description", "localhost"); //$NON-NLS-1$ //$NON-NLS-2$
jndiContext = new InitialContext();
jndiContext.rebind(name, new ConnectionFactoryImpl(type, desc));

Back to the top