org.logicblaze.lingo.jms
Class JmsServiceExporterMessageListener

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

public class JmsServiceExporterMessageListener
extends JmsServiceExporterSupport

A regular JMS message listener which can be used from inside a message driven object container.

Version:
$Revision: 1.2 $

Field Summary
 
Fields inherited from class org.logicblaze.lingo.jms.JmsServiceExporterSupport
proxy
 
Fields inherited from class org.springframework.remoting.support.RemoteExporter
logger
 
Constructor Summary
JmsServiceExporterMessageListener()
           
 
Method Summary
 void afterPropertiesSet()
           
 ConnectionFactory getConnectionFactory()
           
 JmsProducer getProducer()
           
 void setConnectionFactory(ConnectionFactory connectionFactory)
           
 void setProducer(JmsProducer producer)
           
protected  void writeRemoteInvocationResult(Message message, org.springframework.remoting.support.RemoteInvocationResult result)
          Send the given RemoteInvocationResult as a JMS message to the originator
 
Methods inherited from class org.logicblaze.lingo.jms.JmsServiceExporterSupport
createRemoteProxy, createResponseMessage, getInvocationFactory, getMarshaller, getResponseRequestor, introduceRemoteReferences, isIgnoreFailures, onException, onMessage, setIgnoreFailures, setInvocationFactory, setMarshaller, setResponseRequestor
 
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

JmsServiceExporterMessageListener

public JmsServiceExporterMessageListener()
Method Detail

afterPropertiesSet

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

getProducer

public JmsProducer getProducer()

setProducer

public void setProducer(JmsProducer producer)

getConnectionFactory

public ConnectionFactory getConnectionFactory()

setConnectionFactory

public void setConnectionFactory(ConnectionFactory connectionFactory)

writeRemoteInvocationResult

protected void writeRemoteInvocationResult(Message message,
                                           org.springframework.remoting.support.RemoteInvocationResult result)
                                    throws JMSException
Description copied from class: JmsServiceExporterSupport
Send the given RemoteInvocationResult as a JMS message to the originator

Specified by:
writeRemoteInvocationResult in class JmsServiceExporterSupport
Parameters:
message - current HTTP message
result - the RemoteInvocationResult object
Throws:
JMSException - if thrown by trying to send the message


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