Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Proper place to write cxf publishing code  RSS feed

 
venkatesh kannan iyengar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am learning apache CXF. I have a service SEI and implementation class. Just want to understand if apache CXF services are always published through an extra piece of code that goes something like the below... Can't they be left to directly get published by a server.

JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
svrFactory.setServiceClass(CreditService.class);
svrFactory.setAddress("http://something.com/services/CreditService");
svrFactory.setServiceBean(serviceObj);
org.apache.cxf.endpoint.Server server = svrFactory.create();
Endpoint cxfEndpoint = server.getEndpoint();


If there needs to be separate piece of code, in a web app, where should that ideally be?

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!