This closes #55 open wire tests
This commit is contained in:
commit
7a257a416f
|
@ -304,6 +304,12 @@
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.activemq</groupId>
|
||||||
|
<artifactId>artemis-jms-server</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.activemq</groupId>
|
<groupId>org.apache.activemq</groupId>
|
||||||
<artifactId>artemis-openwire-protocol</artifactId>
|
<artifactId>artemis-openwire-protocol</artifactId>
|
||||||
|
|
|
@ -28,9 +28,11 @@ import org.apache.activemq.artemis.api.core.SimpleString;
|
||||||
import org.apache.activemq.artemis.api.core.TransportConfiguration;
|
import org.apache.activemq.artemis.api.core.TransportConfiguration;
|
||||||
import org.apache.activemq.artemis.core.config.Configuration;
|
import org.apache.activemq.artemis.core.config.Configuration;
|
||||||
import org.apache.activemq.artemis.core.config.impl.SecurityConfiguration;
|
import org.apache.activemq.artemis.core.config.impl.SecurityConfiguration;
|
||||||
|
import org.apache.activemq.artemis.core.registry.JndiBindingRegistry;
|
||||||
import org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants;
|
import org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants;
|
||||||
import org.apache.activemq.artemis.core.security.Role;
|
import org.apache.activemq.artemis.core.security.Role;
|
||||||
import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
|
import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
|
||||||
|
import org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl;
|
||||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManagerImpl;
|
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManagerImpl;
|
||||||
import org.apache.activemq.artemiswrapper.ArtemisBrokerHelper;
|
import org.apache.activemq.artemiswrapper.ArtemisBrokerHelper;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
|
@ -39,6 +41,7 @@ public class ArtemisBrokerWrapper extends ArtemisBrokerBase
|
||||||
{
|
{
|
||||||
|
|
||||||
protected final Map<String, SimpleString> testQueues = new HashMap<String, SimpleString>();
|
protected final Map<String, SimpleString> testQueues = new HashMap<String, SimpleString>();
|
||||||
|
protected JMSServerManagerImpl jmsServer;
|
||||||
|
|
||||||
public ArtemisBrokerWrapper(BrokerService brokerService)
|
public ArtemisBrokerWrapper(BrokerService brokerService)
|
||||||
{
|
{
|
||||||
|
@ -154,11 +157,12 @@ public class ArtemisBrokerWrapper extends ArtemisBrokerBase
|
||||||
anySet.add(guestRole);
|
anySet.add(guestRole);
|
||||||
anySet.add(destRole);
|
anySet.add(destRole);
|
||||||
}
|
}
|
||||||
/* no need to start jms server here
|
|
||||||
jmsServer = new JMSServerManagerImpl(server);
|
jmsServer = new JMSServerManagerImpl(server);
|
||||||
jmsServer.setContext(new InVMNamingContext());
|
InVMNamingContext namingContext = new InVMNamingContext();
|
||||||
|
jmsServer.setRegistry(new JndiBindingRegistry(namingContext));
|
||||||
jmsServer.start();
|
jmsServer.start();
|
||||||
*/
|
|
||||||
Set<TransportConfiguration> acceptors = serverConfig.getAcceptorConfigurations();
|
Set<TransportConfiguration> acceptors = serverConfig.getAcceptorConfigurations();
|
||||||
Iterator<TransportConfiguration> iter = acceptors.iterator();
|
Iterator<TransportConfiguration> iter = acceptors.iterator();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue