public class EmbeddedJMS
extends org.hornetq.core.server.embedded.EmbeddedHornetQ
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 String |
jmsConfigResourcePath |
protected JMSConfiguration |
jmsConfiguration |
protected BindingRegistry |
registry |
protected JMSServerManagerImpl |
serverManager |
| Constructor and Description |
|---|
EmbeddedJMS() |
| Modifier and Type | Method and Description |
|---|---|
BindingRegistry |
getRegistry() |
Object |
lookup(String name)
Lookup in the registry for registered object, i.e.
|
void |
setContext(Context context)
If you want to use JNDI instead of an internal map, set this property
|
void |
setJmsConfigResourcePath(String jmsConfigResourcePath)
Classpath resource where JMS config file is.
|
void |
setJmsConfiguration(JMSConfiguration jmsConfiguration)
By default, this class uses file-based configuration.
|
void |
setRegistry(BindingRegistry registry)
Only set this property if you are using a custom BindingRegistry
|
void |
start() |
void |
stop() |
protected JMSServerManagerImpl serverManager
protected BindingRegistry registry
protected String jmsConfigResourcePath
protected JMSConfiguration jmsConfiguration
protected Context context
public void setJmsConfigResourcePath(String jmsConfigResourcePath)
jmsConfigResourcePath - public BindingRegistry getRegistry()
public void setRegistry(BindingRegistry registry)
registry - public void setJmsConfiguration(JMSConfiguration jmsConfiguration)
jmsConfiguration - public void setContext(Context context)
context - public Object lookup(String name)
This is a convenience method.
name - public void start()
throws Exception
start in class org.hornetq.core.server.embedded.EmbeddedHornetQExceptionCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.