[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

OneWay method on remoted object

TT

9/24/2004 12:43:00 PM

Hi,

I have a remoted object which implements an interface with a OneWay method.
Suppose the remoted object is not alive (ie RemotingServices.Marshal was't
called). The client connects to it and receives a TransparantProxy. The
client calls the OneWay method and does not get an exception, even though the
remoted object is dead. Is this expected behaviour?

Thanks,
--
Tom Tempelaere.
2 Answers

Ken Kolda

9/24/2004 3:24:00 PM

0

Yes, this is the expected behavior. As long as the channel has already been
established by a prior, successful method invocation on the server, OneWay
methods will not return an error is the object is disconnected or even if
the server isn't running anymore.

Ken


"TT (Tom Tempelaere)" <_|\|_0$P@|/\|titi____AThotmailD.Tcom|/\|@P$0_|\|_>
wrote in message news:F3AE48ED-9E26-449F-A9EC-54D491B4A771@microsoft.com...
> Hi,
>
> I have a remoted object which implements an interface with a OneWay
method.
> Suppose the remoted object is not alive (ie RemotingServices.Marshal was't
> called). The client connects to it and receives a TransparantProxy. The
> client calls the OneWay method and does not get an exception, even though
the
> remoted object is dead. Is this expected behaviour?
>
> Thanks,
> --
> Tom Tempelaere.


TT \(Tom Tempelaere\)

9/25/2004 10:54:00 AM

0

Thanks for the insight, Ken.
---
Tom Tempelaere


"Ken Kolda" <ken.kolda@elliemae-nospamplease.com> wrote in message
news:ukP0KqkoEHA.4068@TK2MSFTNGP10.phx.gbl...
> Yes, this is the expected behavior. As long as the channel has already
been
> established by a prior, successful method invocation on the server, OneWay
> methods will not return an error is the object is disconnected or even if
> the server isn't running anymore.
>
> Ken
>
>
> "TT (Tom Tempelaere)" <_|\|_0$P@|/\|titi____AThotmailD.Tcom|/\|@P$0_|\|_>
> wrote in message
news:F3AE48ED-9E26-449F-A9EC-54D491B4A771@microsoft.com...
> > Hi,
> >
> > I have a remoted object which implements an interface with a OneWay
> method.
> > Suppose the remoted object is not alive (ie RemotingServices.Marshal
was't
> > called). The client connects to it and receives a TransparantProxy. The
> > client calls the OneWay method and does not get an exception, even
though
> the
> > remoted object is dead. Is this expected behaviour?
> >
> > Thanks,
> > --
> > Tom Tempelaere.
>
>