Results 1 to 2 of 2

Thread: Apache CXF and Spring MVC

  1. #1
    Join Date
    Sep 2011
    Posts
    11

    Default Apache CXF and Spring MVC

    Hello.

    How can I merge CXF and Spring?

    I already finished to configure Apache CXF but my problem is i don't know how to use it by using Spring controller.

    package com.company.auth.service

    Code:
    @WebService
    public interface AuthService {
        Employee getEmployee(@WebParam(name="gid") String gid);
    }
    Code:
    @WebService(endpointInterface = "com.company.auth.service.AuthService", 
    serviceName = "corporateAuthService")
    public class AuthServiceImpl implements AuthService {
    
    	public Employee getEmployee(String gid) {
    		EmployeeDao dao = new EmployeeDao();
    		return dao.getEmployee(gid);
    	}
    
    }

  2. #2
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    432

    Default

    With CXF your webservice implementations are (may be) Spring beans. Just read: http://cxf.apache.org/docs/writing-a...th-spring.html.

    regards
    Grzegorz Grzybek

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •