|With (much appreciated) help from Jay Walters, I've added a
|prototype for support of local interfaces to CVS. There are many
|aspects of this I haven't tested (e.g. a bean with both local and
|remote interfaces, functionality of the EnterpriseContext, etc.), so I
|was hoping that some of you familiar with the EJB 2.0 spec could
|use them a little and post problems to this list or Sourceforge bug
|tracker... or, of course, fix problems yourself. :-)
ok let's move this to JBOSS 3.0 branch...
|I'm not posting this announcement to jboss-user because local
|interface support definitely needs a little time to cook before it
|enters general use. Please help me to cook it. Anyone who
|disagrees with this may go ahead and cross post without further
|discussion. :-)
Oh come on Dan you are more of an old timer than that you know you are on
your own (pretty much).
|Just a quick design note for the code reviewers: I modeled local
|interface support on the JRMP container invoker whenever
|possible, so that someone familiar with that code base would
|instantly understand what I was doing. However, I thought it better
|not to add local interface support to the existing pluggable
|ContainerInvoker system. This is because the local interfaces
|implementation can remain constant as the distribution mechanism
|(e.g. RMI/JRMP, CORBA, whatever...) changes. So local interfaces
|are broken out.
mmmm, I am not sure I understand the thought fully but the CI stuff is going
to be fully detached from the invocation layer (part of Rabbit hole). I
have a pretty clear idea on how to do that so the local interface should
just be a plug in teh container directly, bypassing all invocation, and
definitely independent of RMI, Corba, SOAP etc etc...
|Also, you'll notice that I do not publish the home interface in our
|JNDI system, except in a component name space when a bean
|uses an ejb-local-ref. There is no reason to make the home globally
|available, since local interfaces will only work for components
|within an application. So instead, I publish the interfaces to the
|application class.
yep.
|Finally, I made a small change to the verifier so it doesn't throw an
|exception when a bean without remote interfaces is deployed.
|However, you should know the local interfaces are not verified.
|(Quick reminder: don't throw java.rmi.RemoteException.)
Pardon my ignorance of teh 2.0 spec but the whole stack of interceptors
still needs to be there for the local stuff right? in other words, the only
thing you bypass is the RemoteContainerInvoker stuff right? I am going to
remove that in the near future anyway...
Finally, I thought that a bean could be Remote or Local and that it was
transparent to the container, and we could use the same chain of
invocations.... I understand that this is a separate container stack
instanciated? so that you only have one mode of operation?
marcf
|
|-Dan O'Connor
|
|_______________________________________________
|Jboss-development mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-development
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development