org.logicblaze.lingo.jms
Class JmsServiceExporter

java.lang.Object
  extended by org.springframework.remoting.support.RemoteExporter
      extended by org.springframework.remoting.support.RemoteInvocationBasedExporter
          extended by org.logicblaze.lingo.jms.JmsServiceExporterMessageListener
              extended by org.logicblaze.lingo.jms.JmsServiceExporter
All Implemented Interfaces:
javax.jms.MessageListener, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class JmsServiceExporter
extends JmsServiceExporterMessageListener
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

A JMS MessageListener that exports the specified service bean as a JMS service endpoint, accessible via a JMS proxy.

Note: JMS services exported with this class can be accessed by any JMS client, as there isn't any special handling involved.

Author:
James Strachan
See Also:
JmsProxyFactoryBean

Field Summary
 
Fields inherited from class org.springframework.remoting.support.RemoteExporter
logger
 
Constructor Summary
JmsServiceExporter()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  javax.jms.MessageConsumer createConsumer()
          Factory method to create the consumer
 void destroy()
           
 javax.jms.Destination getDestination()
           
 java.lang.String getMessageSelector()
           
 java.lang.String getSubscriberName()
           
 boolean isNoLocal()
           
 void setDestination(javax.jms.Destination destination)
          If specified then the service will be auto-subscribed to this destination
 void setMessageSelector(java.lang.String messageSelector)
          Sets the message selector applied to the subscription
 void setNoLocal(boolean noLocal)
          Sets whether or not topic subscriptions should receive locally produced messages
 void setSubscriberName(java.lang.String subscriberName)
          Sets the durable subscriber name and enables a durable subscription.
 
Methods inherited from class org.logicblaze.lingo.jms.JmsServiceExporterMessageListener
createRemoteProxy, createResponseMessage, doInvoke, getClientID, getConnectionFactory, getInvocationFactory, getMarshaller, getMetadataStrategy, getProducerConfig, getProxy, getResponseRequestor, introduceRemoteReferences, isIgnoreFailures, isPersistentDelivery, onException, onMessage, setClientID, setConnectionFactory, setIgnoreFailures, setInvocationFactory, setMarshaller, setMetadataStrategy, setPersistentDelivery, setProducerConfig, setResponseRequestor, writeRemoteInvocationResult
 
Methods inherited from class org.springframework.remoting.support.RemoteInvocationBasedExporter
getRemoteInvocationExecutor, invoke, invokeAndCreateResult, setRemoteInvocationExecutor
 
Methods inherited from class org.springframework.remoting.support.RemoteExporter
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, isRegisterTraceInterceptor, setRegisterTraceInterceptor, setService, setServiceInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsServiceExporter

public JmsServiceExporter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class JmsServiceExporterMessageListener
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Overrides:
destroy in class JmsServiceExporterMessageListener
Throws:
java.lang.Exception

getDestination

public javax.jms.Destination getDestination()

setDestination

public void setDestination(javax.jms.Destination destination)
If specified then the service will be auto-subscribed to this destination


getMessageSelector

public java.lang.String getMessageSelector()

setMessageSelector

public void setMessageSelector(java.lang.String messageSelector)
Sets the message selector applied to the subscription


isNoLocal

public boolean isNoLocal()

setNoLocal

public void setNoLocal(boolean noLocal)
Sets whether or not topic subscriptions should receive locally produced messages


getSubscriberName

public java.lang.String getSubscriberName()

setSubscriberName

public void setSubscriberName(java.lang.String subscriberName)
Sets the durable subscriber name and enables a durable subscription.


createConsumer

protected javax.jms.MessageConsumer createConsumer()
                                            throws javax.jms.JMSException
Factory method to create the consumer

Throws:
javax.jms.JMSException


Copyright © 2009 LogicBlaze, Inc.. All Rights Reserved.