Remoting example needed

Posts   
 
    
Ceres
User
Posts: 20
Joined: 31-Jan-2007
# Posted on: 19-Feb-2008 18:13:57   

Hello,

Am trying to understand how to implement remoting for a simple WinForm app based on Adapter V2.5 and VB.

Is there a simple remoting example anywhere (eg. how to create a Remoting Interface, etc). Can anyone help?

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39905
Joined: 17-Aug-2003
# Posted on: 19-Feb-2008 18:34:42   

Have you checked our winforms remoting example on our website ? simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Ceres
User
Posts: 20
Joined: 31-Jan-2007
# Posted on: 19-Feb-2008 18:36:28   

Going there now!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39905
Joined: 17-Aug-2003
# Posted on: 19-Feb-2008 20:37:48   

The example is in C# but it should be straight forward simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Ceres
User
Posts: 20
Joined: 31-Jan-2007
# Posted on: 19-Feb-2008 21:18:52   

Great, got it running. Now just a couple of quick questions please to orientate me.

  1. I presume that the Interfaces assembly is deployed with the client?

  2. Your Service class seems to be the equivalent of my BL Manager classes with its Fetches, Saves & Deletes.

  3. Is it deployed Client side or Server side?

  4. Is there any significance to it being in a namespace called RemotingService - whats in a name sunglasses 3. Finally on the Server: DbSpecific, DbGeneric, ORMSupport ?

I know these are basic questions, but for me remoting is new and the fog is lifting.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 20-Feb-2008 10:18:25   
  1. I presume that the Interfaces assembly is deployed with the client?

Yes, should be available at the client side.

  1. Your Service class seems to be the equivalent of my BL Manager classes with its Fetches, Saves & Deletes.

Exactly.

Is it deployed Client side or Server side?

The Service should be on the Server side.

Is there any significance to it being in a namespace called RemotingService - whats in a name

No problem.

  1. Finally on the Server: DbSpecific, DbGeneric, ORMSupport ?

Yes.

The remoting example contains 2 solutions, one is called the Service and the other is called the client. What's in the service stays in the Server side (All projects and references). And what's in the Client need to be in the client side (All projects and references).

The client needs the Interface to define the Service methods. Also the client needs references to the DBGeneric and the ORMSupport to be able to deal with LLBLGen objects.

Ceres
User
Posts: 20
Joined: 31-Jan-2007
# Posted on: 21-Feb-2008 16:30:43   

Hi,

As well as making 'ServicesInterface' & 'RemotingInterface' conform to my own application, is the Remoting example a good basis for my own use or is it too simplistic?

i.e. Are there other things I need to add, like: Moving channel registration into a config file and accessing it via RemotingConfiguration.Configure etc ..

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 22-Feb-2008 10:54:45   

It's a simple example but it can also be the ground of a good solution. So use it and only change what you need to change.