Remoting Static members

  • Thread starter Thread starter Nicky
  • Start date Start date
N

Nicky

Hello,

Maybe a stupid question.

In my component on the servermachine I have some objects
that are static.

They are serveractivated.

At compiletime of the clientsource, he gives me an error
that I can not access static objects??

Is this normal when you use remoting.

When I use the same component but not with remoting, there
is no problem.

Nicky
 
You simple can not use static members with remoting. Think about it. When
using a remote object the data for the object is send to the other computer.
However static members are stored in the class' data area, not in the
objects data area.
 
Back
Top