DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4

Thread: RMI JDBC

  1. #1
    David Guest

    RMI JDBC


    does anybody know how to pass a ResultSet from a Server to a Client Program
    via RMI. i have in the past broken down the ResultSet on the server as a
    Vector of Vectors but it is very messy.

    So my question is does anybody know how to serialise a resultset?

  2. #2
    Tony John Guest

    Re: RMI JDBC


    If there are no security concerns about the confidentiality of the data, try
    XML-izing it and passing it as a string to the client and then parsing it
    on the client using SAX or JAXP ?

    "David" <javastudent@eircom.net> wrote:
    >
    >does anybody know how to pass a ResultSet from a Server to a Client Program
    >via RMI. i have in the past broken down the ResultSet on the server as a
    >Vector of Vectors but it is very messy.
    >
    >So my question is does anybody know how to serialise a resultset?



  3. #3
    Percy Dobbelsteyn Guest

    Re: RMI JDBC


    serializing for storing...
    well, every class could implement Serializable or
    every variable which isn't already Serializable you could make
    Serializable by putting the word: stenient in the variable like this:

    final lenient MagicTheGatheringCard aCard = new MagicTheGatheringCard();

    is that what you were looking for?


    "Tony John" <tonyjohn@hotmail.com> wrote:
    >
    >If there are no security concerns about the confidentiality of the data,

    try
    >XML-izing it and passing it as a string to the client and then parsing it
    >on the client using SAX or JAXP ?
    >
    >"David" <javastudent@eircom.net> wrote:
    >>
    >>does anybody know how to pass a ResultSet from a Server to a Client Program
    >>via RMI. i have in the past broken down the ResultSet on the server as

    a
    >>Vector of Vectors but it is very messy.
    >>
    >>So my question is does anybody know how to serialise a resultset?

    >



  4. #4
    eppo Guest

    Re: RMI JDBC


    "David" <javastudent@eircom.net> wrote:
    >
    >does anybody know how to pass a ResultSet from a Server to a Client Program
    >via RMI. i have in the past broken down the ResultSet on the server as a
    >Vector of Vectors but it is very messy.
    >
    >So my question is does anybody know how to serialise a resultset?


    It's impossible to serialize object such as a ResultSet. You need some kind
    of framework to access results from server.

    But if you really want use ResultSet-like object, go and check this out:
    www.objectweb.org/rmijdbc/


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