I'm looking for java frameworks, patterns or technics which allow a client server architecture to communicate via xml. Any suggestions?
A:
The relevant Java EE standards supported by most vendors are:
I have recently written a series of blog posts explaining how easy this is to do using JAX-RS:
Blaise Doughan
2010-08-24 18:59:10
You target relational databases in your blog. In my case, I work with xml, in more details with owl and rdf. The networking between clients and server should be with good performance.
myborobudur
2010-08-25 06:58:54
The data in my example comes from a database. The interaction between client an server is done through XML via JAX-RS over the HTTP protocol.
Blaise Doughan
2010-08-25 13:31:19
Acctualy RESTful Jersey looks pretty nice! Thanks for the input!!
myborobudur
2010-08-26 07:38:43
I just saw the JBoss-Jetty framework. They also offer a layer for the HTTP protocol. Do you think this works the same way like Jersey?
myborobudur
2010-08-26 08:02:46
I work on the Java EE stack that includes Jersey, so I don't have anything nice to say about JBoss.
Blaise Doughan
2010-08-26 13:37:26
I understand. What about RMI. Does Jersey support RMI?
myborobudur
2010-08-28 12:55:03
When you say RMI, do you mean the remote method aspect or the object serialization aspect?
Blaise Doughan
2010-08-30 16:45:16
The remote method aspect. Acctualy I have a more important question: is it possible that the server can send messages to the clients in Jersey? Perhaps this is agains the RESTful idea.
myborobudur
2010-09-13 14:54:40
Jersey/JAX-RS/REST provides a means for clients to access server side data via URIs. It is not appropriate for pushing data to clients.
Blaise Doughan
2010-09-14 14:54:36
Java Message Service (JMS) may be more appropriate for your use case, refer to: http://www.oracle.com/technetwork/java/index-jsp-142945.html
Blaise Doughan
2010-09-14 14:57:52