• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate serializable to/from XML

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried XMLBeans (http://xmlbeans.apache.org/)?
/Rickard
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic