DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Robert Halstead Guest

    Remoting Question

    I'm build a server to my application and I'm using remoting to pass objects
    back to the client. I was wondering if there was some way to keep track of
    those objects on the server side? Also, is there some way to create an
    object on the server and have the client be able to get that object without
    creating a new instance?
    Is it also possible to just call function names on the server? Would you
    need to pass delegates or something?
    If so, how?

    thanks.

    Robert Halstead



  2. #2
    Michael Gautier Guest

    Re: Remoting Question


    Perhaps you can pool objects in an Application object and pass them around
    through serialization.

    You also try creating a thread pool and manage object acquisition through
    COM+.

    Or if you are using the SOAP Format you could have a windows service "intercept"
    and copy requests and responses and deserialize them into object instances
    on the server.

    "Robert Halstead" <halstear@oit.edu> wrote:
    >I'm build a server to my application and I'm using remoting to pass objects
    >back to the client. I was wondering if there was some way to keep track

    of
    >those objects on the server side? Also, is there some way to create an
    >object on the server and have the client be able to get that object without
    >creating a new instance?
    >Is it also possible to just call function names on the server? Would you
    >need to pass delegates or something?
    >If so, how?
    >
    >thanks.
    >
    >Robert Halstead
    >
    >



  3. #3
    jibin Pan Guest

    Re: Remoting Question


    I have two articles and codes "Remote object 1, 2" on http://www.c-sharpcorner.com/Networking.asp.
    It have window client/server with callback function. It may help.

    Jibin Pan

    "Robert Halstead" <halstear@oit.edu> wrote:
    >I'm build a server to my application and I'm using remoting to pass objects
    >back to the client. I was wondering if there was some way to keep track

    of
    >those objects on the server side? Also, is there some way to create an
    >object on the server and have the client be able to get that object without
    >creating a new instance?
    >Is it also possible to just call function names on the server? Would you
    >need to pass delegates or something?
    >If so, how?
    >
    >thanks.
    >
    >Robert Halstead
    >
    >



  4. #4
    max caber Guest

    Re: Remoting Question


    "Robert Halstead" <halstear@oit.edu> wrote:
    >Is it also possible to just call function names on the server? Would you
    >need to pass delegates or something?
    >If so, how?


    Yes, use .NET Web Services.

    Although SOAP implies OOP, (Simple Object Access Protocol) WSDL, does not
    define a way to maintain object state. Think of a WSDL function as taking
    one argument and returning one value. The input argument and return values
    are referred to as the "input message" and "output message". Since the data
    type of both the "input message" and the "output message" is XML, and XML
    can define hierarchical structures, Web Services can pass objects. So with
    Web Services you are calling functions and passing Objects as args, but not
    maintaining state. In other words, Web Services are "static" methods or "function
    libraries"
    Hope this helps,

    Max

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links