views:

40

answers:

2

Can Java (JAX-WS) host "web" service in desktop program? For example .net wcf can host services anywhere. Tnx all.

A: 

As long as there is a tool to handle HTTP - yes. Jetty can be embedded in desktop applications. Here is some documentation about standalone http transport with cxf.

Bozho
A: 

This should be possible using the javax.xml.ws.Endpoint class (and the server from the JDK). You can learn more about this in the following article.

Another option would be to use an embeddable container like Jetty, to embed it in your desktop app and to deploy your JAX-WS web services on it.

Pascal Thivent