my dog learned polymorphism*
The moose likes XML and Related Technologies and the fly likes What technologies to use and why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "What technologies to use and why?" Watch "What technologies to use and why?" New topic
Author

What technologies to use and why?

vijay shanker
Ranch Hand

Joined: Oct 26, 2007
Posts: 88
Hello folks,

i have got to make a component that will interact to server from our desktop client. in this process i will get Java Object Models that will be send to server.

I am planning to change that model to XML presentation first and then add to an HTTP request body. On the other side that request will analysed and from the request body XML files will be fetched and again changed to corresponding JDO. so This is my application.

Now i want to know what should be best to use for changing this JDO to XML presentation and vice versa.
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

If it is a desktop client, why do you have to use HTTP?
Can't you make an RMI call? This will take care of the serialization automatically. You do not have to write a serializer/deserializer for every JDO. All you have to do is to implement a marker interface i.e. Serializable.


apigee, a better way to API!
vijay shanker
Ranch Hand

Joined: Oct 26, 2007
Posts: 88
thank you nitesh for reply.

but this desision has made. We to use HttpClient API.
We got to differnt Data models at both sides.

We have to make an independent component for the this work. there will be no dependency with any other module of project. this is required.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18110
    
    8

There's plenty of technologies for mapping Java objects to XML and back again: XMLEncoder/XMLDecoder from the standard API, JAXB, Castor, and many others.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What technologies to use and why?
 
Similar Threads
JDO and Web Applications
JDO vs. TopLink
a modelling problem
Persistence frameworks? Who needs them anyway?
Good books or tutorial site for JDO