|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hornetq.core.server.embedded.EmbeddedHornetQ
org.hornetq.jms.server.embedded.EmbeddedJMS
public class EmbeddedJMS
Simple bootstrap class that parses hornetq config files (server and jms and security) and starts a HornetQServer 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 | |
---|---|
protected Context |
context
|
protected String |
jmsConfigResourcePath
|
protected JMSConfiguration |
jmsConfiguration
|
protected BindingRegistry |
registry
|
protected JMSServerManagerImpl |
serverManager
|
Fields inherited from class org.hornetq.core.server.embedded.EmbeddedHornetQ |
---|
configResourcePath, configuration, hornetQServer, mbeanServer, securityManager |
Constructor Summary | |
---|---|
EmbeddedJMS()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.hornetq.core.server.embedded.EmbeddedHornetQ |
---|
getHornetQServer, initStart, setConfigResourcePath, setConfiguration, setMbeanServer, setSecurityManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JMSServerManagerImpl serverManager
protected BindingRegistry registry
protected String jmsConfigResourcePath
protected JMSConfiguration jmsConfiguration
protected Context context
Constructor Detail |
---|
public EmbeddedJMS()
Method Detail |
---|
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.EmbeddedHornetQ
Exception
public void stop() throws Exception
stop
in class org.hornetq.core.server.embedded.EmbeddedHornetQ
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |