[jboss-dev-forums] [Design of JBossCache] - Re: Binding proxy to Cache in AS JNDI
bstansberry@jboss.com
do-not-reply at jboss.com
Thu May 31 14:21:31 EDT 2007
Here's problem in a little more detail. The following is not really accurate; I'm avoiding some abstractions/indirections in the interest of clarity.
The binding is done by an external mbean service, JRMPProxyFactory. It creates a proxy that implements the specified interface. Our goal is to expose Cache, so lets say it implements Cache.
The proxy knows how to communicate with one of the AS' detached invokers (which one is a config detail of the JRMPProxyFactory.) When the client invokes a method, it sends back an Invocation object encapsulating the ObjectName of the service to call on, along with the method name and params.
The detached invoker receives the Invocation and extracts the ObjectName, method name and args. It then does a call on the MBeanServer to invoke the given method.
Problem is there is no mbean anywhere that exposes the Cache interface. Hence the detached invoker cannot make a call via the MBeanServer to any of the Cache methods.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050276#4050276
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050276
More information about the jboss-dev-forums
mailing list