[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

microsoft.public.dotnet.framework.remoting

Re: Beginners remoting question!!

Sunny

7/8/2004 2:33:00 PM


Short answer, you can get what you want with remoting. And you can place
your object wherever you want on the network.

The basic steps are:
1. Read more about remoting :)
2. Make your class inherit from MarshalByReference
3. Create a host application, which exposes this class to remoting. It
can be console app, windows forms app, windows service (recommended for
LAN scenario), IIS (you don't have to create it :) )
4. Run the host process on the network machine.
5. Modify your client to use remoting and to connect to the remoted
object.

For intranet(LAN) scenario, you do not need SOAP formatter, it is much
slower than BinaryFormatter. You should look for TCP channels as well.

The types of remoted objects are (you have to select what fits your
needs):

Server activated (SAO) - these objects are created and activated by the
server app. There are 2 kinds - SingleCall (which means that the server
creates a new object to serve every method call. SingleCalls are
stateless, you can not preserve the state between 2 method calls.
Singleton - the server creates only one object, which server all
clients, so it is suitable if you want to preserve the state between
calls and to share information between clients.)

Client activated (CAO) - these objects are created upon client request
to serve this one client. So, they preserve the state between calls from
the same client. And every client has its own object.

Sunny


In article <#yHCL1MZEHA.3596@tk2msftngp13.phx.gbl>,
AlexStevens_NOSPAMPLEASE@gcc.co.uk says...
> Hi All,
>
> We are looking at using remoting at one of our clients sites to share common
> data / objects.
> One application they have so far has been written in a n-tier fashion, and
> all information is retrieved through a middle tier which is a DLL which
> exposes the database information through objects.
>
> So far, this DLL sits in the applications directory with the exe, and has an
> XML file which provides it will the connection information etc.
>
> Now is where I get out of my depth - I read on here about SOAP and CAO but
> it doesn't yet make much sense to me.
>
> Using remoting, are we able to move the dll to a network share or similar
> and call that object from there, having made some modification to the UI
> tier?
>
> In summary, what work needs to be done to use objects from a central
> location, as opposed to locally?
> What do I have to read up on to implement this if it is applicable?
>
> Thanks guys
>
> Alex
>
>
>
1 Answer

Aaron J. Bossig

5/31/2007 10:28:00 PM

0

jt august <starsabre@net.att> wrote in news:starsabre-059425.04512131052007
@inetnews.worldnet.att.net:

> In article <Xns9941EC9A3B3Fchucktoomanygamescom@130.81.64.196>,
> Chuck Whitby <chuck@toomanygames.com> wrote:
>
>> That's pretty crazy. I thought this was borderline nuts, 'til I saw
>> someone actually bid on it, then I knew it was nuts.
>>
>> http://tinyurl....
>
> I searched about, and found nothing to verify anything legit about Super
> Mario Brothers IV. Not even a homebrew.

A lot of the early promotional material listed SMW as "Super Mario
World: Super Mario Bros. 4". That's the only official SMB4 you'll
ever find. I highly doubt Nintendo gave any serious thought to making
it for the NES.

--

Aaron J. Bossig

http://www.Gods...