开发者

java server to server communication framework (json)

I am building an ESB (enterprise Service Bus). This means i need to set up tcp connections and communicate with JSON (well not NEED.. but json is light and easy) I made a server who is able to set up a TCP socket and receive json. This is all very nice but i need to be able to call methods via a tcp connection.

so for example to call a method:

{server:pictures, method:changeImage('name')}

This is just an example and could change.

my question is: Is there a framework that is able to:

  1. set up tcp server
  2. receive json messages and call the appropriate method
  3. return an answer (in json).
开发者_Go百科

of course json could also be xml but i would rather use json (much cleaner)

thanxs in advance!


A Web Server serving RESTful web services is exactly what you're asking about..

If I were you, I would look into using SOAP based messaging and the WS-* Standards. Things like WS-Federation and WS-AtomicTransactions will allow you to build a more robust ESB.


Any modern Servlet container, perhaps? Running DWR or jabsorb? Have you looked at the modern ESB implementations? Sounds like you have a lot of wheel I've seen before here.


Why do you need to create your own ESB? As I understand it's a quite complex task. Have you considered using existing open-source solutions?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜