spring-jms

org.springframework.jms.remoting
Class JmsInvokerProxyFactoryBean

java.lang.Object
  extended by org.springframework.jms.remoting.JmsInvokerClientInterceptor
      extended by org.springframework.jms.remoting.JmsInvokerProxyFactoryBean
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.FactoryBean<java.lang.Object>, org.springframework.beans.factory.InitializingBean

public class JmsInvokerProxyFactoryBean
extends JmsInvokerClientInterceptor
implements org.springframework.beans.factory.FactoryBean<java.lang.Object>, org.springframework.beans.factory.BeanClassLoaderAware

FactoryBean for JMS invoker proxies. Exposes the proxied service for use as a bean reference, using the specified service interface.

Serializes remote invocation objects and deserializes remote invocation result objects. Uses Java serialization just like RMI, but with the JMS provider as communication infrastructure.

To be configured with a QueueConnectionFactory and a target queue (either as Queue reference or as queue name).

Since:
2.0
Author:
Juergen Hoeller
See Also:
JmsInvokerClientInterceptor.setConnectionFactory(javax.jms.ConnectionFactory), JmsInvokerClientInterceptor.setQueueName(java.lang.String), setServiceInterface(java.lang.Class), JmsInvokerClientInterceptor, JmsInvokerServiceExporter

Constructor Summary
JmsInvokerProxyFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.Object getObject()
           
 java.lang.Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setBeanClassLoader(java.lang.ClassLoader classLoader)
           
 void setServiceInterface(java.lang.Class serviceInterface)
          Set the interface that the proxy must implement.
 
Methods inherited from class org.springframework.jms.remoting.JmsInvokerClientInterceptor
convertJmsInvokerAccessException, createConnection, createRemoteInvocation, createRequestMessage, createSession, doExecuteRequest, executeRequest, extractInvocationResult, getConnectionFactory, getReceiveTimeout, invoke, onInvalidResponse, recreateRemoteInvocationResult, resolveQueue, resolveQueueName, setConnectionFactory, setDestinationResolver, setMessageConverter, setQueue, setQueueName, setReceiveTimeout, setRemoteInvocationFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsInvokerProxyFactoryBean

public JmsInvokerProxyFactoryBean()
Method Detail

setServiceInterface

public void setServiceInterface(java.lang.Class serviceInterface)
Set the interface that the proxy must implement.

Parameters:
serviceInterface - the interface that the proxy must implement
Throws:
java.lang.IllegalArgumentException - if the supplied serviceInterface is null, or if the supplied serviceInterface is not an interface type

setBeanClassLoader

public void setBeanClassLoader(java.lang.ClassLoader classLoader)
Specified by:
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class JmsInvokerClientInterceptor

getObject

public java.lang.Object getObject()
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>

spring-jms