public class EmbeddedJMS extends 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 |
activeMQServer, configResourcePath, configuration, mbeanServer, securityManager
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(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() |
getActiveMQServer, initStart, setConfigResourcePath, setMbeanServer, setSecurityManager, waitClusterForming
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(Configuration configuration)
EmbeddedActiveMQ
setConfiguration
in class EmbeddedActiveMQ
public Object lookup(String name)
This is a convenience method.
name
- public EmbeddedJMS start() throws Exception
start
in class EmbeddedActiveMQ
Exception
public EmbeddedJMS stop() throws Exception
stop
in class EmbeddedActiveMQ
Exception
Copyright © 2017 JBoss by Red Hat. All rights reserved.