This can be achieved using EJB session beans. EJB3 session beans can be exposed as web service, remote method or local method. Use servlet as EJB client. Using web service, client can be any application .NET application, remote think client application in any language or any web application or mobile application. In case of Remote EJB, client can be any client in java.