public class EmbeddedJMS
extends org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ
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
| Modifier and Type | Field and Description |
|---|---|
protected Context |
context |
protected JMSConfiguration |
jmsConfiguration |
protected BindingRegistry |
registry |
protected JMSServerManagerImpl |
serverManager |
| Constructor and Description |
|---|
EmbeddedJMS() |
| Modifier and Type | Method and Description |
|---|---|
JMSServerManager |
getJMSServerManager() |
BindingRegistry |
getRegistry() |
Object |
lookup(String name)
Lookup in the registry for registered object, i.e.
|
EmbeddedJMS |
setConfiguration(org.apache.activemq.artemis.core.config.Configuration configuration)
Set this object if you are not using file-based configuration.
|
EmbeddedJMS |
setContext(Context context)
If you want to use JNDI instead of an internal map, set this property
|
EmbeddedJMS |
setJmsConfiguration(JMSConfiguration jmsConfiguration)
By default, this class uses file-based configuration.
|
EmbeddedJMS |
setRegistry(BindingRegistry registry)
Only set this property if you are using a custom BindingRegistry
|
EmbeddedJMS |
start() |
EmbeddedJMS |
stop() |
protected JMSServerManagerImpl serverManager
protected BindingRegistry registry
protected JMSConfiguration jmsConfiguration
protected Context context
public BindingRegistry getRegistry()
public JMSServerManager getJMSServerManager()
public EmbeddedJMS setRegistry(BindingRegistry registry)
registry - public EmbeddedJMS setJmsConfiguration(JMSConfiguration jmsConfiguration)
jmsConfiguration - public EmbeddedJMS setContext(Context context)
context - public EmbeddedJMS setConfiguration(org.apache.activemq.artemis.core.config.Configuration configuration)
org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQsetConfiguration in class org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQpublic Object lookup(String name)
This is a convenience method.
name - public EmbeddedJMS start() throws Exception
start in class org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQExceptionpublic EmbeddedJMS stop() throws Exception
stop in class org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.