|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.core.command.AbstractCommand
com.ail.core.command.Accessor
com.ail.core.command.JMSAccessor
public class JMSAccessor
Deployment specific command for use with JMS. This accessor object acts as a client to a point-to-point JMS queue. The accessor takes two parameters: Factory and Queue which it uses to locate the ConnectionFacctory and Queue via JNDI.
The following example shows how a JMSAccessor can be configured:
<service name="NotifyPartyByEmailService" builder="ClassBuilder" key="com.ail.core.command.JMSAccessor">
<parameter name="Factory">ConnectionFactory</parameter>
<parameter name="Queue">queue/AilCommandQueue</parameter>
</service>
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
JMSAccessor()
|
|
| Method Summary | |
|---|---|
CommandArg |
getArgs()
Get the argument set associated with this command. |
Configuration |
getConfiguration()
Fetch the configuration of the entry point associated with this command. |
java.lang.String |
getFactory()
|
java.lang.String |
getQueue()
|
Version |
getVersion()
Fetch the version of the command (entry point) associated with this command. |
void |
invoke()
Invoke the command associated with this command object. |
void |
setArgs(CommandArg args)
Update this Command object's arguments with those taken from the command arg passed in. |
void |
setConfiguration(Configuration properties)
Update the configuration of the entry point associated with this command. |
void |
setFactory(java.lang.String factory)
|
void |
setQueue(java.lang.String queue)
|
| Methods inherited from class com.ail.core.command.Accessor |
|---|
getLoggingIndicator, getLoggingIndicatorAsString, setLoggingIndicator, setLoggingIndicatorAsString |
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSAccessor()
| Method Detail |
|---|
public void invoke()
throws JMSServiceException
AbstractCommand
invoke in class AbstractCommandJMSServiceExceptionpublic void setArgs(CommandArg args)
AbstractCommand
setArgs in class AbstractCommandargs - Source for argumentspublic CommandArg getArgs()
AbstractCommand
getArgs in class AbstractCommandpublic Version getVersion()
AbstractCommandNote: This method does not return the version of the command.
getVersion in class AbstractCommandpublic Configuration getConfiguration()
AbstractCommand
getConfiguration in class AbstractCommandpublic void setConfiguration(Configuration properties)
AbstractCommand
setConfiguration in class AbstractCommandproperties - Properties to replace the current configuration.public void setFactory(java.lang.String factory)
public java.lang.String getFactory()
public void setQueue(java.lang.String queue)
public java.lang.String getQueue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||