remoting and referenced objects

R

Rogier

Hi All,

I have a problem with referenced data updates using Remoting.
I can access and update all data obtained from a server's existing
object from any client. However, client can only see their own updates
unless "Built-in" variables are used.

For instance:

I have a server object with a method to change the objects version
number called "Task". Task objects also have an ArrayList full of
"Communication" objects.

1. From any client I can call the method:

void changeVersion(long b){}

All clients can call this method and they all see the change in value:
the update is successful.

2. However, when I call from any client the method:

changeCommunication(Communication a, Communication b){}
//this method updates "a" and replaces it with "b" or something like it

A. With this call, the local client can see the update and this update
remains with the client until shut down.
B. None of the other clients see this update
C. The server does inform me of a call to that server method.

Any ideas?
Thanks a lot,
Rogier.
 
R

Rogier

Sorry lads, but I've found the solution. I had forgotten to make ALL
remote objects derived from MarshalByRefObject... I've been at this for
a week, write my first message about this and solve it 30 minutes later
;-)

Any other advise about this is welcome though!

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top