This is Java Enterprise Edition code example that shows you how to expose your EJB layer as Web Service (wsdl contract) where other applications can consume the webservice.