简体   繁体   English

Java中的WCF自托管功能

[英]WCF Self-Hosting capabilities in Java

大家好,有没有办法像WCF一样在Java中自托管Web服务?

Jersey using Grizzly embedded within it would seem like a good fit for your needs. 内嵌Grizzly的Jersey似乎很适合您的需求。 It wouldn't require and outside application server and would be fairly lightweight to get setup. 它不需要外部应用程序服务器,并且安装起来相当轻巧。 You can just read the Jersey getting started documents to get going with that exact path: Jersey User Guide 您可以只阅读Jersey入门文档来了解确切路径: Jersey用户指南

If by self-hosting you mean generating a web service endpoint for invocation, there are a number of ways to go on this, depending on your potential deployment environment. 如果通过自我托管来表示要生成用于调用的Web服务端点,则有多种方法可以进行此操作,具体取决于您的潜在部署环境。

I'd start off looking at Oracle's JAX-WS implementation, which includes RESTful capabilities. 我将首先研究Oracle的JAX-WS实现,其中包括RESTful功能。 If you want to run a relatively simple stack, you could use Apache Axis2 . 如果要运行相对简单的堆栈,则可以使用Apache Axis2 And then JBoss has JBossWS , which can run standalone or in the JBoss Application Server. 然后,JBoss具有JBossWS ,它可以独立运行,也可以在JBoss Application Server中运行。 I'm pretty sure most of the major application server engines have a Web Services component as well. 我很确定大多数主要的应用服务器引擎也都具有Web服务组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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