com.caucho.hessian.client
Class HessianJMSProxy
java.lang.Object
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.
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 |
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
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
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 invokemethod
- the method to callargs
- 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