Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-1799

Two ejb3s exposed as 2 different web services in the same ear file. Can't have same methods with different parameters..

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • jbossws-1.2.1
    • None
    • None

      Please look at the url for description. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116665

      First ejb:

      @WebService(name="UserAccountServiceEndPoint",
      targetNamespace="namespace1", serviceName="UserAccountService1.0")
      @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,use=SOAPBinding.Use.LITERAL)
      @Stateless
      @WebContext(transportGuarantee="NONE",contextRoot="/svc-useracctv1.0",urlPattern="/UserAccountService1.0")

      public class UserAccountService implements IUserAccountService
      {

      @WebMethod
      @TransactionAttribute(javax.ejb.TransactionAttributeType.SUPPORTS)
      public boolean authenticate(@WebParam(name="username") String aUsername)

      { boolean ret; ......... return ret; }

      }

      interface for 1st ejb:

      @Remote
      public interface IUserAccountService
      {
      public boolean authenticate(String aUsername);
      }

      second ejb:

      @WebService(name="UserAccountServiceExtEndPoint",
      targetNamespace="namespaceExt", serviceName="UserAccountServiceExt1.0")
      @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,use=SOAPBinding.Use.LITERAL)
      @Stateless
      @WebContext(transportGuarantee="NONE",contextRoot="/svc-useracctv1.0",urlPattern="/UserAccountServiceExt1.0")

      public class UserAccountServiceExt implements IUserAccountServiceExt
      {


      @WebMethod
      @TransactionAttribute(javax.ejb.TransactionAttributeType.SUPPORTS)
      public boolean authenticate(@WebParam(name="username") String aUsername, @WebParam(name="password") String password)
      { boolean ret; ......... return ret; }

      }

      interface for 2nd ejb:

      @Remote
      public interface IUserAccountServiceExt
      {
      public boolean authenticate(String aUsername, String aPassword);
      }

              ropalka Richard Opalka
              sursha_jira Sureshbabu Thyvalappil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: