Package org.springframework.jms.remoting

Examples of org.springframework.jms.remoting.JmsInvokerProxyFactoryBean


  /* Ignore Unchecked Cast */
  public static <T> T createProxy(ConnectionFactory cf, String queueName,
      Class<T> serviceClass) {
   
    // Create Proxy Factory Instance
    JmsInvokerProxyFactoryBean proxyFactory = new JmsInvokerProxyFactoryBean();
    proxyFactory.setConnectionFactory(cf);
    proxyFactory.setQueueName(queueName);
    proxyFactory.setServiceInterface(serviceClass);
    proxyFactory.afterPropertiesSet();

    // Return Proxy
    return (T) proxyFactory.getObject();
  }
View Full Code Here

TOP

Related Classes of org.springframework.jms.remoting.JmsInvokerProxyFactoryBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.