= EJB Webservice :jbake-date: 2016-09-06 :jbake-type: page :jbake-tomeepdf: :jbake-status: published Example ejb-webservice can be browsed at https://github.com/apache/tomee/tree/master/examples/ejb-webservice *Help us document this example! Click the blue pencil icon in the upper right to edit this page.* == Calculator [source,java] ---- package org.superbiz.ws; import javax.ejb.Stateless; import javax.jws.WebService; @Stateless @WebService(portName = "CalculatorPort", serviceName = "CalculatorWebService", targetNamespace = "http://superbiz.org/wsdl") public class Calculator { public int sum(int add1, int add2) { return add1 + add2; } public int multiply(int mul1, int mul2) { return mul1 * mul2; } } ---- == web.xml [source,xml] ---- ----