Hi,

I am also playing with a new invoker. Well, not really new... It is 
actually the JRMP invoker code, with just a few changes to sent the 
Invocation over IIOP rather than JRMP. In the lack of a better name, 
I am calling it JavaIIOPInvoker.

JavaIIOPInvoker is quite different from the plain IIOPInvoker. It is also
much simpler. By way of comparison:

 - IIOPInvoker allows IIOP access to the actual interfaces of deployed 
   beans. When a client calls create() on an EJBHome, an IIOP request with 
   operation name "create" goes over the wire and is handled by the 
   plain IIOPInvoker. 

 - JavaIIOPInvoker allow IIOP acess to a single interface: Invoker, which
   essentially has a single operation, invoke(). When a client class 
   create() on an EJBHome, an IIOP request with operation name "invoke"
   goes over the wire and is handled by the JavaIIOPInvoker. Info on the
   actual method to be invoked (create(), in this case) goes within the
   Invocation parameter to invoke().

Unlike IIOPInvoker, which uses an IORFactory, JavaIIOPInvoker works with 
the "standard" JBoss ProxyFactory. Whan a client gets a reference to an
EJBHome or EJBObject, it really gets a serialized Java proxy, just like
in the JRMP case. The only difference is that this proxy's delegate has
a CORBA reference (IOR) to the JavaIIOPInvoker, instead of a RMI/JRMP
reference to the JRMPInvoker. Everything else works (or should work) as 
in the JRMP case: interceptors, client container, transactions, etc.

JavaIIOPInvoker is useless to non-Java clients (hence its name). I am
interested in comparing it with the JRMPInvoker WRT performance. So far
(a simple hello test) I got pretty much the same numbers... Of course,
the performance may change with the ORB used. I am doing everything 
with JacORB.

Should I commit this stuff? Right now I am not really sure if it will
be useful or not.

Cheers,

Francisco



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to