com.caucho.hessian.client
Class HessianJMSProxy

java.lang.Object
  extended by com.caucho.hessian.client.HessianJMSProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class HessianJMSProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Proxy implementation for Hessian clients using JMS. Applications will generally use HessianProxyFactory to create proxy clients.


Field Summary
private  HessianProxyFactory _factory
           
private  javax.jms.Connection _jmsConnection
           
private  javax.jms.Session _jmsSession
           
private  java.lang.String _outboundName
           
private  javax.jms.MessageProducer _producer
           
protected static java.util.logging.Logger log
           
 
Constructor Summary
HessianJMSProxy(HessianProxyFactory factory, java.lang.String outboundName, java.lang.String connectionFactoryName)
           
 
Method Summary
 java.lang.String getOutboundName()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Handles the object invocation.
private  void sendRequest(java.lang.String methodName, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static java.util.logging.Logger log

_factory

private HessianProxyFactory _factory

_producer

private javax.jms.MessageProducer _producer

_jmsSession

private javax.jms.Session _jmsSession

_jmsConnection

private javax.jms.Connection _jmsConnection

_outboundName

private java.lang.String _outboundName
Constructor Detail

HessianJMSProxy

HessianJMSProxy(HessianProxyFactory factory,
                java.lang.String outboundName,
                java.lang.String connectionFactoryName)
          throws javax.naming.NamingException,
                 javax.jms.JMSException
Throws:
javax.naming.NamingException
javax.jms.JMSException
Method Detail

getOutboundName

public java.lang.String getOutboundName()

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Handles the object invocation.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy - the proxy object to invoke
method - the method to call
args - the arguments to the proxy object
Throws:
java.lang.Throwable

sendRequest

private void sendRequest(java.lang.String methodName,
                         java.lang.Object[] args)
                  throws javax.jms.JMSException,
                         java.io.IOException
Throws:
javax.jms.JMSException
java.io.IOException