Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Beginner question regarding upgrading a current framework from .net remoting to wcf

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 08-24-2007   #1 (permalink)
chives
Guest


 

Beginner question regarding upgrading a current framework from .net remoting to wcf

Hi.

Is there an eqivalent to System.Runtime.Remoting.ObjRef in wcf?

Basically I want to be able to serialise information regaridng the
endpoints of a service to a remote registry, where other services/
clients can query to find a servcie interface without worrying about
the actual physical location of the service. This allows me to move
services to different machines without configuring other services/
clients etc.

So with my requirmeent known, if ObjRef has no equivalent in wcf - how
would i achieve my requirement using the new wcf model?

Thanks

Tony


My System SpecsSystem Spec
Old 10-22-2007   #2 (permalink)
Newbie


Join Date: Oct 2007
Vista, XP
 
Rep Power: 8
brix is on a distinguished road
  brix is offline

Re: Beginner question regarding upgrading a current framework from .net remoting to w

Quote:
chives
View Post
Hi.

Is there an eqivalent to System.Runtime.Remoting.ObjRef in wcf?

Basically I want to be able to serialise information regaridng the
endpoints of a service to a remote registry, where other services/
clients can query to find a servcie interface without worrying about
the actual physical location of the service. This allows me to move
services to different machines without configuring other services/
clients etc.

So with my requirmeent known, if ObjRef has no equivalent in wcf - how
would i achieve my requirement using the new wcf model?

Thanks

Tony
Hi Tony,

I have exactly the same problem. In our remoting-based infrastructure, we use a "Service Manager" to provide transparent access to our services.
This manager holds a list of ObjRefs.

Now we are going to migrate to WCF.
What I want to do is to use the ServiceEndpoint information instead of an ObjRef to pass info about an endpoint to the clients. This ServiceEndpoint instance can be used in the ChannelFactory constructor to create a channel.
That's the plan. But I've to to say that I don't know if ServiceEndpoint is serializable.
Did you find a solution in the meantime?

Cheers
brix
My System SpecsSystem Spec
Old 10-23-2007   #3 (permalink)
tonyandjess
Guest


 

Re: Beginner question regarding upgrading a current framework from .net remoting to wcf

On Oct 22, 5:07 pm, brix <brix.2yv...@xxxxxx-mx.forums.net> wrote:
Quote:

> chives;431896 Wrote:
>
> Hi. No I haven't really tried hard to implement such a system yet in WCF simply due to a lack of requirement to do so from my workplace.
I did some reading around and found that you can obtain some service
metadata for a service that could be serialised to a service broker.
However I can't for the life of me remeber the classes involved. I
believe ServiceEndpoint is not serialisable (that was my first port of
call).

Even though I have not really specced out anything concrete for a wcf
broker I am thinking that jumping right down into the messaging layer
of wcf would be the way forward as you could implement something very
similar to a remoting objref yourself and simply write a set of
channels that send out the objref onto a pgm network etc. That way
your service borker could actually be part of peer to peer mesh
(useful if you have disaster recovery requirements or high
availaibility requirements etc).

If I ever get around to implementing something I'll gladly post it for
you to use if you want.

I have also found some websites that claim that remoting is 'faster'
than wcf in certain scenarios. Where 'faster' may mean more messages
throughput per second...I guess before I start any new framework for
my firm's services (all internal by the way) I will need to have a
'real world' wcf servcie setup in a similar way to how our services
currently need to be setup...i.e. NO soap or http formatter/transprt
combos only binary and tcp (because we are microsoft only here for
everything) and then compare and contrast performance, working set
sizes, msg throughput rates etc.

Tony
Quote:

>
>
>
Quote:

> > Hi.
>
Quote:

> > Is there an eqivalent to System.Runtime.Remoting.ObjRef in wcf?
>
Quote:

> > Basically I want to be able to serialise information regaridng the
> > endpoints of a service to a remote registry, where other services/
> > clients can query to find a servcie interface without worrying about
> > the actual physical location of the service. This allows me to move
> > services to different machines without configuring other services/
> > clients etc.
>
Quote:

> > So with my requirmeent known, if ObjRef has no equivalent in wcf - how
> > would i achieve my requirement using the new wcf model?
>
Quote:

> > Thanks
>
Quote:

> > Tony
>
> Hi Tony,
>
> I have exactly the same problem. In our remoting-based infrastructure,
> we use a "Service Manager" to provide transparent access to our
> services.
> This manager holds a list of ObjRefs.
>
> Now we are going to migrate to WCF.
> What I want to do is to use the ServiceEndpoint information instead of
> an ObjRef to pass info about an endpoint to the clients. This
> ServiceEndpoint instance can be used in the ChannelFactory constructor
> to create a channel.
> That's the plan. But I've to to say that I don't know if
> ServiceEndpoint is serializable.
> Did you find a solution in the meantime?
>
> Cheers
> brix
>
> --
> brix- Hide quoted text -
>
> - Show quoted text -

My System SpecsSystem Spec
Old 10-23-2007   #4 (permalink)
Newbie


Join Date: Oct 2007
Vista, XP
 
Rep Power: 8
brix is on a distinguished road
  brix is offline

Re: Beginner question regarding upgrading a current framework from .net remoting to w

Quote:
tonyandjess
View Post
On Oct 22, 5:07 pm, brix
If I ever get around to implementing something I'll gladly post it for
you to use if you want.
Tony
That would be great. I'll post new results as well.

Quote:
tonyandjess
View Post
On Oct 22, 5:07 pm, brix
I have also found some websites that claim that remoting is 'faster'
than wcf in certain scenarios. Where 'faster' may mean more messages
throughput per second...I guess before I start any new framework for
my firm's services (all internal by the way) I will need to have a
'real world' wcf servcie setup in a similar way to how our services
currently need to be setup...i.e. NO soap or http formatter/transprt
combos only binary and tcp (because we are microsoft only here for
everything) and then compare and contrast performance, working set
sizes, msg throughput rates etc.

Tony
There are some MSDN articles about WCF performance
like A Performance Comparison of Windows Communication Foundation (WCF) with Existing Distributed Communication Technologies
In this article, they state WFC " is at least comparable to the other existing Microsoft distributed communication technologies".

Anyhow it is a good idea to make some tests on your own.

brix
My System SpecsSystem Spec
Old 10-23-2007   #5 (permalink)
Newbie


Join Date: Oct 2007
Vista, XP
 
Rep Power: 8
brix is on a distinguished road
  brix is offline

Re: Beginner question regarding upgrading a current framework from .net remoting to w

I did some research and here is what I found:
  • A client needs to create a ChannelFactory to access a service.
  • The ChannelFactory instance must be created by using a ServiceEndpoint instance.
  • The ServiceEndpoint is usually created by using three things:
    1) The contract (Service Interface)
    2) The binding (type)
    3) The EndpointAdress
  • The Contract ( 1) from above) is known to the client.
    So only 2) and 3) must be provided by a "service broker".
The information about binding and endpoint can be easily obtained (on server side) by using the ServiceDescription class (see ServiceHost.Description).
Essentially, only a Type and a String must be transferred to the client. These can be easily serialized and used as a new kind of "ObjRef".

brix

Last edited by brix; 10-23-2007 at 10:57 AM.
My System SpecsSystem Spec
Old 11-20-2007   #6 (permalink)
travislspencer
Guest


 

Re: Beginner question regarding upgrading a current framework from.net remoting to wcf

Hey Tony,

On Oct 22, 11:50 pm, tonyandj...@xxxxxx wrote:
Quote:
Quote:
Quote:

> > > Basically I want to be able to serialise information regaridng the
> > > endpoints of a service to a remote registry, where other services/
> > > clients can query to find a servcie interface without worrying about
> > > the actual physical location of the service. This allows me to move
> > > services to different machines without configuring other services/
> > > clients etc.
Check out UDDI and WS-Discovery (http://wcf.netfx3.com/files/folders/
protocol_channels/entry7909.aspx).

UDDI solves the problem above by publishing information about a
service -- e.g., it's contract, policy, and other such info usually
made available by a service using WS-Metadata Exchange (MEX) -- to a
know location (i.e., a service registry). Others only have to know
about the location of the registry, and they will be able to find
different services at runtime and bind to them. On the other hand,
services that use WS-Discovery solve the problem above by broadcasting
their arrival to others on the network. Those who are alive, receive
the message about the newly arrived services and can begin consuming
it if needed. This protocol is usually used in bootstrapping
scenarios and is analogous to DHCP.

--

Regards,

Travis Spencer
My System SpecsSystem Spec
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.NET beginner Question a .NET General 4 06-29-2008 03:42 PM
Question about WMI from a scripting beginner... akcorr PowerShell 5 01-23-2008 12:25 PM
WPF beginner question lallous Avalon 13 08-17-2007 03:19 AM
upgrading current pc to vista Greg88 Vista General 4 08-04-2007 09:10 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51