|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.services.BaseService
toolbox.services.jms.JmsService
public class JmsService
Convenience service implementation that can be used to develop services
that require interaction with a JMS Broker using the toolbox.jms
package.
| Constructor Summary | |
|---|---|
protected |
JmsService()
Default constructor. |
| Method Summary | |
|---|---|
void |
create(java.lang.String name,
java.lang.String confHome,
ServiceEnvironment env,
XMLProperties xmlProps)
Create the service by obtaining a reference to the JmsManager in the provided environment. |
void |
destroy()
Destroy this service by destroying worker instance. |
protected JmsConsumer |
getJmsConsumer(java.lang.String name)
Return the named JmsConsumer instance. |
protected JmsProducer |
getJmsProducer(java.lang.String name)
Return the named JmsProducer instance. |
| Methods inherited from class toolbox.services.BaseService |
|---|
getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JmsService()
| Method Detail |
|---|
public void create(java.lang.String name,
java.lang.String confHome,
ServiceEnvironment env,
XMLProperties xmlProps)
throws ServiceException
create in interface Servicecreate in class BaseServicename - The name of this service.confHome - The path to the configuration home directory.env - The service environment for this service.xmlProps - XML configuration properties.
ServiceException - if this service cannot be created.protected JmsProducer getJmsProducer(java.lang.String name)
JmsProducer instance.
name - String containing the name of the producer to return.
protected JmsConsumer getJmsConsumer(java.lang.String name)
JmsConsumer instance.
name - String containing the name of the consumer to return.
public void destroy()
destroy in interface Servicedestroy in class BaseService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||