Class EmbeddedJMS
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ
-
- org.apache.activemq.artemis.jms.server.embedded.EmbeddedJMS
-
@Deprecated public class EmbeddedJMS extends org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ
Deprecated.Deprecated in favor of org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ. Since Artemis 2.0 all JMS specific broker management classes, interfaces, and methods have been deprecated in favor of their more general counter-parts. Simple bootstrap class that parses activemq config files (server and jms and security) and starts an ActiveMQServer instance and populates it with configured JMS endpoints.JMS Endpoints are registered with a simple MapBindingRegistry. If you want to use a different registry you must set the registry property of this class or call the setRegistry() method if you want to use JNDI
-
-
Field Summary
Fields Modifier and Type Field Description protected ContextcontextDeprecated.protected JMSConfigurationjmsConfigurationDeprecated.protected BindingRegistryregistryDeprecated.protected JMSServerManagerImplserverManagerDeprecated.
-
Constructor Summary
Constructors Constructor Description EmbeddedJMS()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JMSServerManagergetJMSServerManager()Deprecated.BindingRegistrygetRegistry()Deprecated.Objectlookup(String name)Deprecated.Lookup in the registry for registered object, i.e.EmbeddedJMSsetConfiguration(Configuration configuration)Deprecated.EmbeddedJMSsetContext(Context context)Deprecated.If you want to use JNDI instead of an internal map, set this propertyEmbeddedJMSsetJmsConfiguration(JMSConfiguration jmsConfiguration)Deprecated.By default, this class uses file-based configuration.EmbeddedJMSsetRegistry(BindingRegistry registry)Deprecated.Only set this property if you are using a custom BindingRegistryEmbeddedJMSstart()Deprecated.EmbeddedJMSstop()Deprecated.
-
-
-
Field Detail
-
serverManager
protected JMSServerManagerImpl serverManager
Deprecated.
-
registry
protected BindingRegistry registry
Deprecated.
-
jmsConfiguration
protected JMSConfiguration jmsConfiguration
Deprecated.
-
context
protected Context context
Deprecated.
-
-
Method Detail
-
getRegistry
public BindingRegistry getRegistry()
Deprecated.
-
getJMSServerManager
public JMSServerManager getJMSServerManager()
Deprecated.
-
setRegistry
public EmbeddedJMS setRegistry(BindingRegistry registry)
Deprecated.Only set this property if you are using a custom BindingRegistry- Parameters:
registry-
-
setJmsConfiguration
public EmbeddedJMS setJmsConfiguration(JMSConfiguration jmsConfiguration)
Deprecated.By default, this class uses file-based configuration. Set this property to override it.- Parameters:
jmsConfiguration-
-
setContext
public EmbeddedJMS setContext(Context context)
Deprecated.If you want to use JNDI instead of an internal map, set this property- Parameters:
context-
-
setConfiguration
public EmbeddedJMS setConfiguration(Configuration configuration)
Deprecated.- Overrides:
setConfigurationin classorg.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ
-
lookup
public Object lookup(String name)
Deprecated.Lookup in the registry for registered object, i.e. a ConnectionFactory.This is a convenience method.
- Parameters:
name-
-
start
public EmbeddedJMS start() throws Exception
Deprecated.- Overrides:
startin classorg.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ- Throws:
Exception
-
stop
public EmbeddedJMS stop() throws Exception
Deprecated.- Overrides:
stopin classorg.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ- Throws:
Exception
-
-