|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.transport.jms.JMSListener
public class JMSListener
The JMS Transport listener implementation. A JMS Listner will hold one or more JMS connection factories, which would be created at initialization time. This implementation does not support the creation of connection factories at runtime. This JMS Listener registers with Axis to be notified of service deployment/undeployment/start and stop, and enables or disables listening for messages on the destinations as appropriate.
A Service could state the JMS connection factory name and the destination name for use as Parameters in its services.xml as shown in the example below. If the connection name was not specified, it will use the connection factory named "default" (JMSConstants.DEFAULT_CONFAC_NAME) - if such a factory is defined in the Axis2.xml. If the destination name is not specified it will default to a JMS queue by the name of the service. If the destination should be a Topic, it should be created on the JMS implementation, and specified in the services.xml of the service.
Field Summary |
---|
Fields inherited from interface org.apache.axis2.transport.TransportListener |
---|
HOST_ADDRESS, PARAM_PORT |
Constructor Summary | |
---|---|
JMSListener()
|
Method Summary | |
---|---|
void |
destroy()
|
ConfigurationContext |
getConfigurationContext()
|
EndpointReference |
getEPRForService(java.lang.String serviceName,
java.lang.String ip)
Returns the EPR for the given service and IP. |
EndpointReference[] |
getEPRsForService(java.lang.String serviceName,
java.lang.String ip)
Returns EPRs for the given service and IP. |
SessionContext |
getSessionContext(MessageContext messageContext)
To get the sessionContext transport dependent manner. |
void |
init(ConfigurationContext axisConf,
TransportInDescription transprtIn)
This is the TransportListener initialization method invoked by Axis2 |
void |
start()
Start this JMS Listener (Transport Listener) |
void |
stop()
Stop this transport listener and shutdown all of the connection factories |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMSListener()
Method Detail |
---|
public void init(ConfigurationContext axisConf, TransportInDescription transprtIn)
init
in interface TransportListener
axisConf
- the Axis configuration contexttransprtIn
- the TransportIn descriptionpublic void start() throws AxisFault
start
in interface TransportListener
AxisFault
public void stop()
stop
in interface TransportListener
public EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip) throws AxisFault
getEPRsForService
in interface TransportListener
serviceName
- service nameip
- ignored
AxisFault
- not usedpublic EndpointReference getEPRForService(java.lang.String serviceName, java.lang.String ip) throws AxisFault
getEPRForService
in interface TransportListener
serviceName
- service nameip
- ignored
AxisFault
- not usedpublic ConfigurationContext getConfigurationContext()
public SessionContext getSessionContext(MessageContext messageContext)
TransportListener
getSessionContext
in interface TransportListener
messageContext
- : MessageContext which has all the relavent data
public void destroy()
destroy
in interface TransportListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |