You might wish to try an approach *outside *of using the Eclipse IDE - I would suggest the following helpful tutorials by Glen Mazza:
http://www.jroller.com/gmazza/entry/blog_article_index http://www.jroller.com/gmazza/entry/web_service_tutorial http://www.jroller.com/gmazza/entry/java_first_web_service http://www.jroller.com/gmazza/entry/soap_client_tutorial Hope these help... Mark On Wed, Apr 10, 2013 at 5:33 AM, Florin Pop <[email protected]> wrote: > Hello everybody! > > *I would like to publish a cxf endpoint which is configurend in spring. * > > <jaxws:endpoint > id="serveru" > implementor="com.pachet.nou.HelloWorldImpl" > address="http://localhost:9003/ws/serviciu" > publishedEndpointUrl="http://localhost:9004/ws/serviciuok"> > > *I could use the structure below in order to instantiate the bean.* > > ApplicationContext context = new ClassPathXmlApplicationContext( > "/com/pachet/nou/server.xml"); > EndpointImpl publishedService = (EndpointImpl) > context.getBean("serveru"); > > *and then* > > publishedService.publish(); > > *This starts jetty behind (i think) and i am able to see the wsdl in > browser. The problem is that when i close eclipse, the server is destroyed. > I would like to make it work all the time regardless of what application is > started or closed. * > > *I also tried the code below.* > > HelloWorldImpl implementor = new HelloWorldImpl(); > JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean(); > svrFactory.setServiceClass(HelloWorld.class); > svrFactory.setAddress("http://localhost:9005/helloWorld"); > svrFactory.setServiceBean(implementor); > svrFactory.create(); > > *How can i manage this situation? If i use this* > > javax.xml.ws.Endpoint jaxwsEndpoint *to make an endpoint public, it works > all the time until i call jaxwsEndpoint.unpublish(), even if i close > eclipse.* > > Can i use the same behaviour with cxf? >
