facebook

Expose EJB as Web Service

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #339853 Reply

    CS Tan
    Participant

    We add the @WebService and @WebMethod in ejb stateless session bean class in ejb project to be expose as web service, by doing so will it expose this ejb bean as web service and generate the WSDL file? Much appreciate for your quick response. Thanks

    import javax.ejb.Stateless;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    
    @Stateless  
    @WebService 
    public class SB_AndroidBean implements SB_AndroidLocal {
     
        @WebMethod
        public boolean logintest(String User, String Password){
            return true;
            
        }
        
    }
    #339866 Reply

    support-swapna
    Moderator

    joejess,

    Please take a look at this link which discusses about exposing EJB as Web Service :
    http://techtipsjava.blogspot.in/2012/12/exposing-ejb-as-web-service-with-client.html

    I suggest you cross post to EJB/Web Service development related forums for better support as this is a development query.

    Hope it helps.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Expose EJB as Web Service

You must be logged in to post in the forum log in