1 Reply Latest reply on Dec 3, 2004 3:35 PM by infectedrhythms

    ServerSocket MBean

    infectedrhythms Novice

      I think Dimitris is going to start hating me lol But then again I should have been maybe posting this question here or maybe someone can point put a good forum to go discuss this...

      Am thinking I want to write a service that will offer server capabilities to all my other services and I would like to discuss a few design ideas with you guys.

      Can any one help?

      Thanks

        • 1. Re: ServerSocket MBean
          infectedrhythms Novice

          So here goes...

          I currently have some "services" application that run there own TCP/IP server socket. They use that socket to receive requests, process the request and respond back to the client. Bassically we design a very crewd RPC...

          Now recently I started looking to maybe porting these application as JBoss MBean services...

          So I was thinking maybe I could separate the server code of these "services" and have them share one server.

          How would I go about implementing this? and would it be worthwile?

          1- Create an MBean that creates a server. As service beging to create themselves, they register a handler with this MBean. When this MBean receives a request, it will pass therequest to the appropriate handler. The server will determine the handler through the incomming request....

          2- Create an MBean that creates a ServerSocket and passes it back to the requesting MBean. Personally I see this no different then just creating the ServerSocket code in my actual services...

          Thanks