-
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?
-
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?
-
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?
>
-
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
Forum Rules
|
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
|
Bookmarks