LLBL and Remoting

Posts   
 
    
raduch
User
Posts: 17
Joined: 26-Jan-2007
# Posted on: 26-Jan-2007 16:09:23   

Hello

I am thinking about building a client-server application using LLBL objects and .net remoting. In version 1.1 which i currently use LLBL objects don't derive from MarshalByRefObject. Is this going to be in an upcoming version?

Briefly i want to create an object on a client and populate it from an application server that will connect to the database. At this point I study if I can use Remoting for doing the client-server communication. Do you have some ideas how can i do it in a nice way?

thanks

Chester
Support Team
Posts: 223
Joined: 15-Jul-2005
# Posted on: 28-Jan-2007 18:29:51   

raduch wrote:

Hello

I am thinking about building a client-server application using LLBL objects and .net remoting. In version 1.1 which i currently use LLBL objects don't derive from MarshalByRefObject. Is this going to be in an upcoming version?

Briefly i want to create an object on a client and populate it from an application server that will connect to the database. At this point I study if I can use Remoting for doing the client-server communication. Do you have some ideas how can i do it in a nice way?

thanks

I don't believe Frans is planning to add new features to the 1.1 code branch, so you'd either need to upgrade to 2.0 (well worth the money in my opinion) or modify the templates for 1.1.

As far as finding help on remoting, start with a search in these forums on the term "remoting". I can't personally endorse any particular thread as being an authority on the subject as I've dealt with web services much more than remoting.

psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 28-Jan-2007 21:44:11   

I don't believe the objects need to derive from MarshalByRefObject--I think you need to create wrappers for your manager methods that do this. I don't remember the details as I haven't done this in a while, but I'm pretty sure that LLBL 1.1 Entities work fine out of the box via remoting (I'm assuming you are using Adapter--I'm not sure about the Self-Servicing entities).

Phil

sami
User
Posts: 93
Joined: 28-Oct-2005
# Posted on: 29-Jan-2007 09:55:00   

When using remoting you can have three kind of remoting types:

  • Server Activated Objects : Stateless - Singlecall

  • Server Activated Objects : Stateful - Singleton

  • Client Activated Objects : Stateful

When using llblgen and remoting, I would say you should use singecall objects, which would be your manager classes (I assume you use adapter) - these manager classes should derive from MarshalByRefObject, since they are activated on server.

Entity objects however do not need to inherit from MarshalByRefObject, since they are not activated on server, they should implement ISerializable instead, and that is what llblgen objects do.