File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "What technologies to use and why?" Watch "What technologies to use and why?" New topic

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

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

Joined: Oct 14, 2005
Posts: 19973

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:
subject: What technologies to use and why?
jQuery in Action, 3rd edition