views:

87

answers:

3

Hi people. 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).

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

thanxs in advance!

+1  A: 

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.

Justin Niessner
+1  A: 

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.

Will Hartung
+1  A: 

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?

Roman
Yes I did. But I already build an ESB in ruby (but of course that is very slooooow ;) ) So i am rebuilding the whole thing in java. But al the "features" these open-source solutions provide are just to much for a simple content management system. In my opinion the only thing an esb should do is 1) know where servers are located 2) transform to the appropriate adapter
Ohw and I am building this for my final thesis (computer science). I am researching if it is possible to use the ESB architecture for web development. In theory this would make it possible to scale, extend and reuse the system for multiple clients