RMI JDBC


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

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/


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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center