Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate serializable to/from XML

 
Wilberto Montoya
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for an API for serialize Hibernate Objects to/from XML. I tried HiperJAXB but is a little hard to understand for my. Now Im looking XStream works fine but now I have some doubts about Forgering-keys and CLOB Manage. (How I can do that?) Anyone have some experience with this Api or know another API?

thank you

Wilberto
 
Rickard Sundin
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried XMLBeans (http://xmlbeans.apache.org/)?
/Rickard
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that 1stly you should describe the problem, the goal and then I guess some guy will suggest something viable. There are lots of frameworks for XML-Object mapping, but as I always say it is more important to discover exactly which one is best suited to you.

./pope
 
Wilberto Montoya
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well the problem is "easy" I'm peruvian citizen and Internet is very slow in some places inside my country, I have one server in Lima (Peruvian's Capital) with Oracle 9i, in the past many internet solutions where desingned thinking in one big server in Lima but this solution didn't work fine (bandWidth problem).
Now I'm designing one "distributed" solution I still havien one Big server in Lima (database server) and many small servers (Web servers) in the others cities. I use Hibernate to mapping the records, serialize the objects to XML and send the information (by request) with WebServices to the small server the people "work" with Hibernate's objects and send back to the server ( webServices again). and update the Database.
That is te reason I need one very quick Api to serialize to/from XML.

Any Idea? thank You.

Wilberto.
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are speaking about bandwidth problems I do not think that xml is the good answer :-(. You could not send real Serializable objects? (just the POJOs decoupled from the session).

./pope
 
Wilberto Montoya
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes! POJO's would be a good answer, (I think Hibernate's objects are POJO too). Even I was thinking Pojo and JAX-RPC Webservices, but there are another problem: Security. I need Data encription, and digital signing (public/private key) :-(. I not sure about this with Pojo and RPC, but I can do it with SOAP Message ;-).

Thank you.

Wilberto
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if bandwith is limited then webservices/xml are not the perfect solution.
have a look at hessian i never used it but it is supposed to be verry fast.

pascal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic