8 Replies Latest reply on Sep 27, 2012 4:34 AM by nurfisya

    Web service not registered when server is up

    nurfisya

      Hi,

      I try to migrate my web service from jboss 5 to jboss 7. I found it not as easy as copy and paste. below is my ear folder in standalone folder.

      folder.png

      Under AddressProcessorEAR.ear, i put my web service (Maven-AddressProcessor.jar). When i start my server, there is no error. But, the web service was not registered to the server. Below is the implementation class of the web service

       

      package my.mimos.sdl.socso.AddressProcessor.service;

       

      import java.util.List;

       

      import javax.ejb.EJB;

      import javax.ejb.Remote;

      import javax.ejb.Stateless;

      import javax.ejb.TransactionAttribute;

      import javax.ejb.TransactionAttributeType;

      import javax.ejb.TransactionManagement;

      import javax.ejb.TransactionManagementType;

      import javax.jws.WebService;

       

      import my.mimos.sdl.socso.AddressProcessor.domain.AbbreviationI;

      import my.mimos.sdl.socso.AddressProcessor.domain.OutputBean;

       

       

      @WebService(serviceName = "AddressProcessor")

      @Remote(AddressProcessor.class)

      @Stateless

      @TransactionManagement(TransactionManagementType.CONTAINER)

      public class AddressProcessorBean implements AddressProcessor{

         

          @EJB

          private static AbbreviationI abbreviation;   

         

          @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)

          public List<OutputBean> getHeader(List<String> shortName)throws Exception{

              List<OutputBean> result = abbreviation.getHeader(shortName);

              return result;   

             

             

          }

         

          @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)

          public List<String> getAbbrByCategory(String cat, String state)throws Exception{

             

              return abbreviation.getAbbrByCategory(cat, state);

             

          }

         

          @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)

          public List<String> getShortName(String fullName)throws Exception{

              return abbreviation.getShortName(fullName);

             

          }

       

      }

       

       

      Please advice on this. Thanks