File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What technologies to use and why?

 
vijay shanker
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vijay shanker
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20163
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic