1. in web.xml, there are two classes of JAX-WS: WSServlet and WSServletContainerListener
<listener>
<listener-class>
com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
</listener>
<servlet>
<servlet-name>ladss</servlet-name>
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ladss</servlet-name>
<url-pattern>/test</url-pattern>
</servlet-mapping>
Please be advised that one WSServlet could be mapped more than one WS instances.
A WSServletContainerListener instance will parse a second (次要的,附加的), sun-specific configuration file named sun-jaxws.xml which provides the web service's endpoint by connecting the WSServlet instance to the service's implementation class.Here is the sun-jaxws.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0">
<endpoint
name="test"
implementation="hello.CircleFunctions"
url-pattern="/test">
</endpoint>
</endpoints>
Security: Application-managed authentication & Container -managed authentication
a. Application-managed authentication
b. Container-managed authentication
Because Tomcat provides the concept 'Realm' [relm] that plays a central role. A realm is a collection of resources, including web pages and web services, with a designed authentication and authorization facility. Tomcat provides five plugins:
1. JDBC
2.DataSource
3. JNDI (the authentication information is stored in an LDAP-based lightweight directory access protocol) directory service, which is available through a JNDI provider.
4.Memory Realm, the authentication info is read into the container at startup from the file conf/tomcat-user/xml. this is the simplest choice and the default.
5.JAAS the authentication information is available (Java authentication & authorization service) provider, which in turn is available in a Java applicaiton server such as BEA, weblogic, glassfish, Jboss.
分享到:
相关推荐
NULL 博文链接:https://jlins.iteye.com/blog/633480
The book covers security technologies that apply to both client and server and enables you to identify and deploy Windows 8 security features in your systems based on different business and ...
This book is focused on solving those problems using VMware vCloud and the vCloud Networking and Security product suite, which includes vCloud Networking and Security App, vShield Endpoint, and ...
NULL 博文链接:https://flyvszhb.iteye.com/blog/2311919
jax-ws web service开发dome,详细资源配置,代码流程
Manage and deploy application deployed on Tomcat 7 using Manager Application Secure Tomcat 7 server using security realms or HTTPS protocol Embed Tomcat 7 server into your desktop Java application ...
Detailed, hands-on coverage of Tomcat 5.x will teach you how to deploy it at an enterprise level, as well as integrate it with other components, including databases, LDAP and web application ...
For users, it supplies insightful information on how to deploy Tomcat. And seasoned enterprise Java developers will have a complete reference to setting up, running, and using this powerful software....
Moreover, this book covers a wide swath of security measures, showing readers how to create and deploy captchas, validate email, fend off SQL injection attacks, prevent cross-site scripting attempts,...
Implement maximum control, security, and compliance processes in Azure cloud environments In Microsoft Azure Security Infrastructure, three leading experts show how to plan, deploy, and operate ...
包含tomcat默认配置,dockerfile构建,ssl配置,以及docker-compose文件
To that end, I let you choose from among several popular Linux systems, show you how to install Docker on the one you choose, and provide working examples of using Docker for everything from running ...
Deploy software to your desktops, set up roaming profiles, and configure Offline Files for all your Windows clients—and manage it all with Group Policy settings Secure your desktops and servers with ...
Docker Containers Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
netscreen firewall deploy model and maintain
Imagine creating and testing Java EE applications on Apache Tomcat or Wildfly in minutes, along with deploying and managing Java applications swiftly. Sounds too good to be true? You have a reason to ...
Title: Docker Hands on: Deploy, Administer Docker Platform Author: Bibin W, Navin Sabharwal Length: 300 pages Edition: 1 Language: English Publication Date: 2015-01-06 ISBN-10: B00RXFHYZY This book ...
This resource provides detailed guidance on how to design and deploy directory services, including upgrading and restructuring domains, as well as designing and deploying directory services, and more.