简体   繁体   中英

Can JAX-WS host “web” service in desktop program?

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM