I saw that EmbeddedJMS is deprecated.
Is there already a successor class which can be used instead of?
I'm currently using this code to start activemq artemis server and I want now 
to implement/start the jms server too.

       public void startServer() throws Exception {
             this.configuration = new ConfigurationImpl();
             this.configuration.addAcceptorConfiguration("in-vm", 
ACTIVE_MQ_EMBEDDED_SERVER_URL);
             this.configuration.setPersistenceEnabled(true);
             this.configuration.setSecurityEnabled(false);
             this.configuration.addQueueConfiguration(new 
QueueConfiguration(ACTIVE_MQ_SMTP_QUEUE));

             JMSConfiguration jmsConfig = new JMSConfigurationImpl();

             TransportConfiguration connectorConfig = new 
TransportConfiguration(InVMAcceptorFactory.class.getName());
             ConnectionFactoryConfiguration cfConfig = new 
ConnectionFactoryConfigurationImpl();
       jmsConfig.getConnectionFactoryConfigurations().add(cfConfig);

             JMSQueueConfiguration queueConfig = new 
JMSQueueConfigurationImpl();
              jmsConfig.getQueueConfigurations().add(queueConfig);

             this.server = new ActiveMQServerImpl(this.configuration);
             this.server.start();
       }

       public void stopServer() throws Exception {
             if (this.server != null)
                    this.server.stop();
       }

Reply via email to