Opening up TCP Sockets in j2ee Webapplication
        Posted  
        
            by 
                Gvenez
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Gvenez
        
        
        
        Published on 2011-02-08T23:25:01Z
        Indexed on 
            2011/02/08
            23:25 UTC
        
        
        Read the original article
        Hit count: 213
        
Hello, We have to communicate with a C++ component from a J2ee web application and my proposal involved using JMS server to communicate with the C++ component which is located on other machine.
However the developer of the C++ component wants me to open up TCP/IP sockets from the webapplication and communicate over XML. My view is that socket programming in web application is error prone and will not scale well since there is a limited amount of sockets that can be opened up.
Please let me have your architecture/design preference on using JMS vs TCP/IP sockets.
Thank you
© Stack Overflow or respective owner