Serialização de ResultSet  XML
Índice dos Fóruns » Certificação Java
Autor Mensagem
clvPJ
GUJ Master
[Avatar]

Membro desde: 25/09/2003 00:00:00
Mensagens: 1156
Localização: 168149809
Offline

Dae Pessoas,
Tem como eu serializar um ResultSet??? (Tentei o ObjectOutputStream, mas nao rola! Pois tem q ser um objeto com interface serializable) (Eu sei q o ResultSet é uma interface!)
Eu to usando jdbc da micosoft!
Ou alguma alternativa para eu obter os resultados de uma maneira "legal" pra eu manipular na otra ponta!???

Valeu!!!
[WWW] aim icon [ICQ]
CordovaPJ
Smalltalk
[Avatar]

Membro desde: 22/07/2004 00:00:00
Mensagens: 2
Offline

Sorry for answering in english, I can read a little portugues, but I can't write it.

Here you will find two technical articles about serializing disconnected recordsets using HTTP and the Hessian web services protocol (a lightweight ws protocol).

http://www.martincordova.com/docs/dinamica-hessian.pdf

http://www.martincordova.com/docs/dinamica-http.pdf

It is not exactly what you asked for, but since resultsets can't be serialized (Cached Rowset can), you may want to look for alternatives.

Best regards,
Martin Cordova
-----
Dinamica - Open source J2EE framework
Free, easy and powerful
http://www.martincordova.com
[WWW] [ICQ]
matheusPJ
GUJ Hacker
[Avatar]

Membro desde: 23/03/2003 00:00:00
Mensagens: 6928
Offline

usuários estrangeiros? Portal Java em nível internacional? 8O beeeeeeeeeiiiiiiiiiiiiiii!!!!!!! hj o mundo, amanhã o universo!

http://www.portaljava.com
[WWW] aim icon [ICQ]
clvPJ
GUJ Master
[Avatar]

Membro desde: 25/09/2003 00:00:00
Mensagens: 1156
Localização: 168149809
Offline

Cordova wrote:Sorry for answering in english, I can read a little portugues, but I can't write it.

Here you will find two technical articles about serializing disconnected recordsets using HTTP and the Hessian web services protocol (a lightweight ws protocol).

http://www.martincordova.com/docs/dinamica-hessian.pdf

http://www.martincordova.com/docs/dinamica-http.pdf

It is not exactly what you asked for, but since resultsets can't be serialized (Cached Rowset can), you may want to look for alternatives.

Best regards,
Martin Cordova
-----
Dinamica - Open source J2EE framework
Free, easy and powerful
http://www.martincordova.com


Thanks Cordova,
I'll study this article and try to adapt for my need!!

See ya!!

PS.: E ainda aceito mais sugestões!
[WWW] aim icon [ICQ]
clvPJ
GUJ Master
[Avatar]

Membro desde: 25/09/2003 00:00:00
Mensagens: 1156
Localização: 168149809
Offline

Hi Cordova,
I was trying to use your library and i got some problem,
Im using it on a non-J2EE application.
I want just make a SELECT on a table and send it to an applet, so i make a Recordset from my ResultSet with the query results. Then, on the other node(applet), when readObject() as a HashMap,

i got an ClassNotFoundException saying "dinamica.RecordsetField", just that!! Ive imported dinamica.*;

Thats a part of the server node:

Where rs is a ResultSet!

How can i make an application like that?? It's possible?!?
How can i solve this problem?

Thanks in advance!
[WWW] aim icon [ICQ]
Samuel_PessorrussoPJ
JavaEvangelist
[Avatar]

Membro desde: 22/04/2004 00:00:00
Mensagens: 451
Localização: 4759103
Offline

Cordova...

How did you know about us (Portal Java) ??


Thanks..

http://
[WWW] aim icon [ICQ]
jack_-_ganzhaPJ
Java Ninja
[Avatar]

Membro desde: 11/02/2003 00:00:00
Mensagens: 254
Localização: 171007919
Offline

Hi, oi, salut... :grin:

Uma ClassNotFoundException ocorre, claro, em tempo de execução e não de compilação. Tente coloca-la no seu classpath ou entre as libs do seu projeto, se estiver usando uma IDE que deve funcionar.

valeuz...

http://www.javafree.com.br
[WWW] aim icon [ICQ]
 
Índice dos Fóruns » Certificação Java
Ir para:   
Powered by JForum 2.1.8 © JForum Team