How to Deploy a Java Web Service

By: Emiley J Emailed: 1609 times Printed: 2078 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Having written your web services, the next step is to deploy the web services in a production environment. There are multiple options for deploying a web service. My favourite option is to host it in Tomcat, because thats where I host my other JSPs.

Core Java only

This is the easiest approach that makes it easy to get web services and their clients up and running. The only required software is the JDK, core Java 6 or later. Web services can be deployed easily using the Endpoint, HttpServer, and HttpsServer classes. A tutorial on how to write your first web service with just JDK shows this approach.

Core Java with the current Metro release

This approach takes advantage of Metro features not yet available in the core Java bundle. In general, each Metro release makes it easier to write web services and clients. The current Metro release also indicates where JAX-WS is moving. The Metro release also can be used with core Java 5 if core Java 6 is not an option.

Standalone Tomcat

This approach builds on the familiarity among Java programmers with standalone web containers such as Apache Tomcat, which is the reference implementation. Web services can be deployed using a web container in the same way as are servlets, JSPs, and JSF.

GlassFish

This approach allows deployed web services to interact naturally with other enterprise components such as Java Message Service topics and queues, a JNDI (Java Naming and Directory Interface) provider, a backend database system and the @Entity instances that mediate between an application and the database system, and an EJB (Enterprise Java Bean) container. GlassFish works seamlessly with Metro, including its advanced features, and with popular IDEs (Integrated Development Environment) such as NetBeans and Eclipse.

An appealing feature of JAX-WS is that the API can be separated cleanly from deployment options. Same web service can be deployed in different ways to suit different needs. Core Java alone is good for learning, development, and even lightweight deployment. A standalone web container such as Tomcat provides additional support.A Java application server such as GlassFish promotes easy integration of web services with other enterprise technologies.


WebServices Home | All WebServices Tutorials | Latest WebServices Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Emiley J
Password must include both numeric and alphabetic characters - Magento
What is Hadoop?
Returning multiple values from a web service
Tomcat and httpd configured in port 8080 and 80
Java Webservices using Netbeans and Tomcat
Java WebService connected to Database
How to Deploy a Java Web Service
Call a webservice in Java
Java WebService - Create your first web service in Java
package javax.jws does not exist
Getting Started with Android
HTML5 Location - getCurrentPosition() in HTML5
HTML5 Canvas - Using Canvas in HTML5
HTML5 - Introduction
HTML5 Video - Handling video in HTML5

More Tutorials in WebServices
Returning multiple values from a web service
Java Webservices using Netbeans and Tomcat
How to Deploy a Java Web Service
Java WebService connected to Database
package javax.jws does not exist
Java WebService - Create your first web service in Java
Call a webservice in Java

More Latest News
Most Viewed Articles (in WebServices )
Call a webservice in Java
Java WebService connected to Database
Java WebService - Create your first web service in Java
How to Deploy a Java Web Service
Java Webservices using Netbeans and Tomcat
Returning multiple values from a web service
package javax.jws does not exist
Most Emailed Articles (in WebServices)
Java WebService - Create your first web service in Java
Call a webservice in Java
package javax.jws does not exist
Java Webservices using Netbeans and Tomcat
Returning multiple values from a web service
Java WebService connected to Database
How to Deploy a Java Web Service