Hello Vladimir,

> > The problems
> > ============
> > I seem to have problems to serialize the ContainerRemote
> objects in my MBEAN
...
> > when communicating between distant JVM? (see *** above)
>
> your problem stems from the fact that you have to , in your writeExternal
> implementation of StatelessSessionProxy, include the list of all
> container remotes not
> only one as it is now.
>
> Have you done this?

Yes, I did this already.

> > This method in GenericProxy:
> >
...
> is the first
> > time I dig in JBoss code)
> >
>
> client proxy does make a check in invoke, it does isLocal()
> thingy and calls directly
> over locally available reference to JRMPInvoker (implements
> ContainerRemote) or if it
> is not local makes the call across the wire using stub of
> JRMPContainerInvoker.

Yes, but I do not understand the basic writeExternal method. If isLocal() is
false it does NOT serialize the container reference. Shouldn't this be the
opposite?

And this only the first part of my problem. Maybe you can help me for the
second one. When trying to serialize the ContainerRemote reference in my
MBEAN, I get a "java.rmi.MarshalException: Invalid remote object". Here are
all the info:
        - my MBEAN receive a ContainerRemote object through a method call (~
MY_MBEAN.addContainer (ContainerRemote cr)
        - my MBEAN add this reference to a distributed hashtable from the
JavaGroups framework
        - this framework has been (and must be) compiled with jdk1.2.2 whereas I
work with JDK 1.3
        - the JavaGroups framework tries to serialize my ContainerRemote reference
and receives the previously mentionned exception

Where is the problem? Is this comming from the JDK version (do not think so)
or from the fact that my MBEAN cannot access the ContainerRemote class
because its ClassLoader is restricted to some particular classes?

This is strange... and so frustrating! ;)

Thank you for your help anyway. Cheers.



                                Sacha


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to