From a86ce5ef1e08eb136d3e674d291aeb59e4894809 Mon Sep 17 00:00:00 2001 From: Nicolas Tachker Date: Wed, 23 Mar 2016 14:29:08 +0000 Subject: [PATCH] JORAM-244: Update OSGi, felix and gogo version. --- joram/a3/common/pom.xml | 2 +- .../aaa/agent/services/A3ManagedService.java | 4 +-- .../aaa/agent/services/CommonService.java | 4 +-- .../agent/services/JoramManagedService.java | 4 +-- .../fr/dyade/aaa/jndi2/osgi/Activator.java | 5 ++-- .../joram/client/connector/JoramAdapter.java | 5 ++-- .../joram/client/osgi/Activator.java | 25 ++++++++++++++++++- .../client/osgi/ConnectionFactoryMSF.java | 4 +-- .../joram/client/osgi/DestinationMSF.java | 4 +-- .../client/osgi/ServiceAcquisitionQueue.java | 4 +-- .../client/osgi/ServiceAcquisitionTopic.java | 4 +-- .../joram/client/osgi/ServiceAdmin.java | 6 ++--- .../joram/client/osgi/ServiceAliasQueue.java | 4 +-- .../client/osgi/ServiceConnectionFactory.java | 4 +-- .../joram/client/osgi/ServiceDestination.java | 6 ++--- .../client/osgi/ServiceDistributionQueue.java | 4 +-- .../client/osgi/ServiceDistributionTopic.java | 4 +-- .../joram/client/osgi/ServiceFtpQueue.java | 4 +-- .../joram/client/osgi/ServiceQueue.java | 4 +-- .../client/osgi/ServiceSchedulerQueue.java | 4 +-- .../joram/client/osgi/ServiceTopic.java | 4 +-- .../joram/client/osgi/ServiceUser.java | 4 +-- .../objectweb/joram/client/osgi/UserMSF.java | 4 +-- joram/joram/jca/ra/pom.xml | 2 +- joram/joram/jca/remote/pom.xml | 2 +- joram/joram/mom/amqp/pom.xml | 2 +- joram/pom.xml | 18 ++++++------- joram/shell/a3/pom.xml | 2 +- joram/shell/jndi/pom.xml | 2 +- joram/shell/mom/pom.xml | 2 +- 30 files changed, 86 insertions(+), 61 deletions(-) diff --git a/joram/a3/common/pom.xml b/joram/a3/common/pom.xml index ea2a52a7a..17bd1fbb7 100644 --- a/joram/a3/common/pom.xml +++ b/joram/a3/common/pom.xml @@ -51,7 +51,7 @@ org.osgi - org.osgi + org.osgi.core \ No newline at end of file diff --git a/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/A3ManagedService.java b/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/A3ManagedService.java index 1753d842e..f5a5f794a 100644 --- a/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/A3ManagedService.java +++ b/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/A3ManagedService.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -88,7 +88,7 @@ public class A3ManagedService extends CommonService implements ManagedService { registration = bundleContext.registerService( ManagedService.class.getName(), this, - props); + (Dictionary)props); } protected void doStop() { diff --git a/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/CommonService.java b/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/CommonService.java index 3b1b80107..23c74ee91 100644 --- a/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/CommonService.java +++ b/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/CommonService.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -98,7 +98,7 @@ public class CommonService { bundleContext.registerService( ServerDesc.class.getName(), serverDesc, - props); + (Dictionary)props); if (logmon.isLoggable(BasicLevel.DEBUG)) logmon.log(BasicLevel.DEBUG, "CommonService ServerDesc register: " + serverDesc); } diff --git a/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/JoramManagedService.java b/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/JoramManagedService.java index c0074681c..1c4da6aad 100644 --- a/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/JoramManagedService.java +++ b/joram/a3/services/src/main/java/fr/dyade/aaa/agent/services/JoramManagedService.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -89,7 +89,7 @@ public class JoramManagedService extends CommonService implements ManagedService registration = bundleContext.registerService( ManagedService.class.getName(), this, - props); + (Dictionary)props); } diff --git a/joram/jndi/client/src/main/java/fr/dyade/aaa/jndi2/osgi/Activator.java b/joram/jndi/client/src/main/java/fr/dyade/aaa/jndi2/osgi/Activator.java index 9c559c8a1..887cceea8 100644 --- a/joram/jndi/client/src/main/java/fr/dyade/aaa/jndi2/osgi/Activator.java +++ b/joram/jndi/client/src/main/java/fr/dyade/aaa/jndi2/osgi/Activator.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2013 ScalAgent Distributed Technologies + * Copyright (C) 2013 - 2016 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 @@ -22,6 +22,7 @@ */ package fr.dyade.aaa.jndi2.osgi; +import java.util.Dictionary; import java.util.Properties; import org.objectweb.util.monolog.api.BasicLevel; @@ -54,7 +55,7 @@ public class Activator implements BundleActivator { registration = context.registerService( javax.naming.spi.ObjectFactory.class.getName(), new scnURLContextFactory(), - props); + (Dictionary)props); } public void stop(BundleContext context) throws Exception { diff --git a/joram/joram/client/jca/src/main/java/org/objectweb/joram/client/connector/JoramAdapter.java b/joram/joram/client/jca/src/main/java/org/objectweb/joram/client/connector/JoramAdapter.java index b0512f1d6..9aac5b9a5 100644 --- a/joram/joram/client/jca/src/main/java/org/objectweb/joram/client/connector/JoramAdapter.java +++ b/joram/joram/client/jca/src/main/java/org/objectweb/joram/client/connector/JoramAdapter.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2004 - 2012 ScalAgent Distributed Technologies + * Copyright (C) 2004 - 2016 ScalAgent Distributed Technologies * Copyright (C) 2004 - 2006 Bull SA * * This library is free software; you can redistribute it and/or @@ -27,6 +27,7 @@ package org.objectweb.joram.client.connector; import java.io.FileNotFoundException; import java.net.ConnectException; import java.util.Date; +import java.util.Dictionary; import java.util.Properties; import javax.jms.Connection; @@ -510,7 +511,7 @@ public final class JoramAdapter extends JoramResourceAdapter implements JoramAda registration = Activator.context.registerService( AdminItf.class.getName(), wrapper, - props); + (Dictionary) props); if (logger.isLoggable(BasicLevel.DEBUG)) logger.log(BasicLevel.DEBUG, "Bundle context " + Activator.context + " registerService AdminWrapper " + getName()); } diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/Activator.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/Activator.java index 4f20f5be8..a44db61ed 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/Activator.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/Activator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 - 2013 ScalAgent Distributed Technologies + * Copyright (C) 2009 - 2016 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 @@ -21,11 +21,15 @@ */ package org.objectweb.joram.client.osgi; +import javax.naming.spi.ObjectFactory; + +import org.objectweb.joram.client.jms.admin.AdminModule; import org.objectweb.joram.client.jms.admin.JoramAdminConnect; import org.objectweb.util.monolog.api.BasicLevel; import org.objectweb.util.monolog.api.Logger; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; +import org.osgi.framework.ServiceReference; import fr.dyade.aaa.common.Debug; @@ -38,6 +42,8 @@ public class Activator implements BundleActivator { public static final Logger logmon = Debug.getLogger(Activator.class.getName()); + public static final String ADMIN_XML_PATH = "joram.adminXML"; + private JoramAdminConnect joramAdminConnect; private DestinationMSF destMSF = null; private UserMSF userMSF = null; @@ -84,6 +90,23 @@ public class Activator implements BundleActivator { sfq = new ServiceFtpQueue(context); salq = new ServiceAliasQueue(context); sadmin = new ServiceAdmin(context); + + ClassLoader myClassLoader = getClass().getClassLoader(); + ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader(); + try { + Thread.currentThread().setContextClassLoader(myClassLoader); + String adminXmlFile = context.getProperty(ADMIN_XML_PATH); + if (adminXmlFile != null) { + ServiceReference ref = context.getServiceReference(javax.naming.spi.ObjectFactory.class); + if (ref == null) { + if (logmon.isLoggable(BasicLevel.ERROR)) + logmon.log(BasicLevel.ERROR, "No ServiceReference for javax.naming.spi.ObjectFactory, start jndi client bundle to use jndi."); + } + AdminModule.executeXMLAdmin(adminXmlFile); + } + } finally { + Thread.currentThread().setContextClassLoader(originalContextClassLoader); + } } /* (non-Javadoc) diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ConnectionFactoryMSF.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ConnectionFactoryMSF.java index 6c0c2274b..2ff71606e 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ConnectionFactoryMSF.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ConnectionFactoryMSF.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -104,7 +104,7 @@ public class ConnectionFactoryMSF implements ManagedServiceFactory { registration = this.bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); cnxFactories = new HashMap(); jndiHelper = new JndiHelper(); jndiNames = new HashMap(); diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/DestinationMSF.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/DestinationMSF.java index 01e291f83..3d4be0549 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/DestinationMSF.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/DestinationMSF.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -127,7 +127,7 @@ public class DestinationMSF implements ManagedServiceFactory { registration = this.bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); destinations = new HashMap(); jndiHelper = new JndiHelper(); jndiNames = new HashMap(); diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAcquisitionQueue.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAcquisitionQueue.java index a41a636cd..389e333d8 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAcquisitionQueue.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAcquisitionQueue.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -98,7 +98,7 @@ public class ServiceAcquisitionQueue extends ServiceDestination implements Manag registration = bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); } public void doStop() { diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAcquisitionTopic.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAcquisitionTopic.java index cbd09e52a..79706f0c2 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAcquisitionTopic.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAcquisitionTopic.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -98,7 +98,7 @@ public class ServiceAcquisitionTopic extends ServiceDestination implements Manag registration = bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); } public void doStop() { diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAdmin.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAdmin.java index 51e0d2851..5b8737f7a 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAdmin.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAdmin.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2013 ScalAgent Distributed Technologies + * Copyright (C) 2013 - 2016 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 @@ -116,7 +116,7 @@ public class ServiceAdmin implements ManagedServiceFactory { registration = this.bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); wrappers = new HashMap(); connections = new HashMap(); } @@ -232,7 +232,7 @@ public class ServiceAdmin implements ManagedServiceFactory { registration = bundleContext.registerService( AdminItf.class.getName(), wrapper, - props); + (Dictionary)props); if (logmon.isLoggable(BasicLevel.DEBUG)) logmon.log(BasicLevel.DEBUG, "doUpdated registration = " + registration); diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAliasQueue.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAliasQueue.java index a8f0289dd..555b01c0b 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAliasQueue.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceAliasQueue.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -94,7 +94,7 @@ public class ServiceAliasQueue extends ServiceDestination implements ManagedServ registration = bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); } public void doStop() { diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceConnectionFactory.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceConnectionFactory.java index f73d9a72e..5cc9aefb7 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceConnectionFactory.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceConnectionFactory.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 - 2013 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -103,7 +103,7 @@ public class ServiceConnectionFactory implements ManagedServiceFactory { registration = this.bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); cnxFactories = new HashMap(); jndiHelper = new JndiHelper(); jndiNames = new HashMap(); diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDestination.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDestination.java index 5d2b6d6b4..5f2206f6b 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDestination.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDestination.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 - 2013 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -303,12 +303,12 @@ public abstract class ServiceDestination { reg = bundleContext.registerService( javax.jms.Queue.class.getName(), dest, - props); + (Dictionary)props); else reg = bundleContext.registerService( javax.jms.Topic.class.getName(), dest, - props); + (Dictionary)props); registrations.put(pid, reg); diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDistributionQueue.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDistributionQueue.java index 62ae0a617..d9a34c680 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDistributionQueue.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDistributionQueue.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -97,7 +97,7 @@ public class ServiceDistributionQueue extends ServiceDestination implements Mana registration = bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); } public void doStop() { diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDistributionTopic.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDistributionTopic.java index db3cb08b5..e73af5716 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDistributionTopic.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceDistributionTopic.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -97,7 +97,7 @@ public class ServiceDistributionTopic extends ServiceDestination implements Mana registration = bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); } public void doStop() { diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceFtpQueue.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceFtpQueue.java index fc82d138c..94adb0155 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceFtpQueue.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceFtpQueue.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -97,7 +97,7 @@ public class ServiceFtpQueue extends ServiceDestination implements ManagedServic registration = bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); } public void doStop() { diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceQueue.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceQueue.java index a279afddb..f470ce38b 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceQueue.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceQueue.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -93,7 +93,7 @@ public class ServiceQueue extends ServiceDestination implements ManagedServiceFa registration = bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); } public void doStop() { diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceSchedulerQueue.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceSchedulerQueue.java index 758b27e0c..d6268742c 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceSchedulerQueue.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceSchedulerQueue.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -94,7 +94,7 @@ public class ServiceSchedulerQueue extends ServiceDestination implements Managed registration = bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); } public void doStop() { diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceTopic.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceTopic.java index 4d893edd8..c80830b8e 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceTopic.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceTopic.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -94,7 +94,7 @@ public class ServiceTopic extends ServiceDestination implements ManagedServiceFa registration = bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); } public void doStop() { diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceUser.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceUser.java index c9f130c9d..269c536f0 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceUser.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/ServiceUser.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -123,7 +123,7 @@ public class ServiceUser implements ManagedServiceFactory { registration = this.bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); users = new HashMap(); jndiHelper = new JndiHelper(); jndiNames = new HashMap(); diff --git a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/UserMSF.java b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/UserMSF.java index 96cf5ba5e..ebb556fdb 100644 --- a/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/UserMSF.java +++ b/joram/joram/client/jms/src/main/java/org/objectweb/joram/client/osgi/UserMSF.java @@ -1,6 +1,6 @@ /* * JORAM: Java(TM) Open Reliable Asynchronous Messaging - * Copyright (C) 2012 ScalAgent Distributed Technologies + * Copyright (C) 2012 - 2016 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 @@ -122,7 +122,7 @@ public class UserMSF implements ManagedServiceFactory { registration = this.bundleContext.registerService( ManagedServiceFactory.class.getName(), this, - props); + (Dictionary)props); users = new HashMap(); jndiHelper = new JndiHelper(); jndiNames = new HashMap(); diff --git a/joram/joram/jca/ra/pom.xml b/joram/joram/jca/ra/pom.xml index 2e08e2a12..6d8d5619e 100644 --- a/joram/joram/jca/ra/pom.xml +++ b/joram/joram/jca/ra/pom.xml @@ -62,7 +62,7 @@ org.osgi - org.osgi + org.osgi.core diff --git a/joram/joram/jca/remote/pom.xml b/joram/joram/jca/remote/pom.xml index 1527383ff..b9587d127 100644 --- a/joram/joram/jca/remote/pom.xml +++ b/joram/joram/jca/remote/pom.xml @@ -52,7 +52,7 @@ org.osgi - org.osgi + org.osgi.core \ No newline at end of file diff --git a/joram/joram/mom/amqp/pom.xml b/joram/joram/mom/amqp/pom.xml index cf58f4fea..fb0200946 100644 --- a/joram/joram/mom/amqp/pom.xml +++ b/joram/joram/mom/amqp/pom.xml @@ -52,7 +52,7 @@ ${project.version} - org.osgi + org.osgi.core org.osgi diff --git a/joram/pom.xml b/joram/pom.xml index 05ad6535e..3c2f19214 100644 --- a/joram/pom.xml +++ b/joram/pom.xml @@ -180,19 +180,19 @@ 1.52 1.0.0 1.0.13 - 4.2.0 - 3.0.0 + 5.0.0 + 6.0.0 1.1.1 1.2.2 5.1.6 1.0.3 - 4.2.0 + 5.4.0 1.4.2 1.1.2 1.4.1 - 0.10.0 - 0.12.0 - 0.10.0 + 0.16.2 + 0.16.0 + 0.12.0 2.3.7 UTF-8 @@ -232,8 +232,8 @@ org.osgi - org.osgi - ${org.osgi.version} + org.osgi.core + ${org.osgi.core.version} jar @@ -327,7 +327,7 @@ org.osgi - org.osgi + org.osgi.core provided diff --git a/joram/shell/a3/pom.xml b/joram/shell/a3/pom.xml index a57b544e0..39899139b 100644 --- a/joram/shell/a3/pom.xml +++ b/joram/shell/a3/pom.xml @@ -34,7 +34,7 @@ org.osgi - org.osgi + org.osgi.core org.ow2.joram diff --git a/joram/shell/jndi/pom.xml b/joram/shell/jndi/pom.xml index 3044e58c6..b37dd094b 100644 --- a/joram/shell/jndi/pom.xml +++ b/joram/shell/jndi/pom.xml @@ -32,7 +32,7 @@ org.osgi - org.osgi + org.osgi.core org.ow2.joram diff --git a/joram/shell/mom/pom.xml b/joram/shell/mom/pom.xml index 56b420d68..f698be923 100644 --- a/joram/shell/mom/pom.xml +++ b/joram/shell/mom/pom.xml @@ -33,7 +33,7 @@ org.osgi - org.osgi + org.osgi.core org.ow2.joram -- GitLab