Web Services
  Home arrow Web Services arrow Web Services and J2EE
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB SERVICES

Web Services and J2EE
By: Sams Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 4
    2006-05-18

    Table of Contents:
  • Web Services and J2EE
  • Enterprise JavaBeans
  • Roles: Development, Assembly, and Deployment
  • Benefits of Using Web Services with J2EE

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Web Services and J2EE


    (Page 1 of 4 )

    If you would like to learn how to use SOAP, WSDL, and the Web services stack with J2EE, this article gets you off to a good start. It is excerpted from chapter 7 of the book Building Web Services with Java: Making sense of XML, SOAP, WSDL, and UDDI, written by Steve Graham et al. (Sams; ISBN: 0672326418).Chapter 7: Web Services and J2EE

    This chapter introduces the concepts of using SOAP, WSDL, and the Web services stack with Java 2 Enterprise Edition (J2EE). Although a single chapter can't do justice to a wide-ranging development platform, we'll show you how to enable Enterprise JavaBean components as Web services using Axis and the JSR109 JCP proposal.

    Continuing our example scenario, the SkatesTown technical team has been working in Java for a while and recently has been looking at moving some of the Java applications that run on their server into the J2EE platform. They've heard that it's secure, transactional, managed, scalable, and robust—all the things they want for their business applications. But they're also interested in Web services, and they want to be able to create services easily. So, they've decided to build a sample application called SkatesEJB, which will be a pilot project to determine the value in using J2EE to implement their Web services.

    J2EE Overview

    Java 2 Enterprise Edition (J2EE) is the platform for building enterprise applications in Java. J2EE standardizes the services, programming model, and deployment for applications so that developers can build solutions that can be used on a variety of application servers. J2EE has a number of application models:

    • Thin-client/browser-based applications use servlets and JavaServer Pages (JSPs).

    • Thick/managed application clients use RMI-IIOP to communicate with server-based Enterprise JavaBeans (EJB) components.

    • Messaging applications use the Java Message Service to act on messages in queues or from subscriptions.

    To this list we can now add service-based applications, which offer services over SOAP/HTTP to clients.

    J2EE provides a framework that supports high quality of service (QoS). In other words, J2EE lets you build transactional, secure, reliable applications that are available across a cluster of highly available servers. A J2EE application server provides a wide variety of capabilities including the following:

    • Workload and performance management—Thread management, pooling, caching, and cluster support

    • Security management—Password and certificate management and validation, authentication, and access control

    • Resource management—Access to relational databases, transactional management systems, connectors to Enterprise Resource Planning (ERP) systems, and messaging systems

    • Transaction management—Two-phase commit support, transactional access to databases, and distributed transactions

    • Management, configuration, and administration—Deployment, configuration, and administration tools

    These services are provided through the concept of a container.

    Containers

    A container is a logical entity in a J2EE server. Containers are entities that have contracts with the components that are deployed into a server—but they also help you understand the way a J2EE system works. Components are deployed to a container, and the container manages the execution of those components as needed. The container provides isolation by intercepting calls to the EJBs, allowing the container to manage aspects such as threads, security, and transactions between components. The container also provides a useful abstraction between components and the resources they use.

    For example, when one component uses a database, the programmer uses a resource reference (resource ref) to link to the database. Then the deployment engineer can configure the actual database that maps to the reference. So, the code that is written and compiled isn't hard-coded to a specific database.

    This approach is also used for JMS destinations, URLs and URIs, and other EJB components in the same or different applications. Later in the chapter, you'll see an example of an ejb-ref that virtualizes access to another EJB.

    More Web Services Articles
    More By Sams Publishing


       · This article is an excerpt from the book "Building Web Services with Java: Making...
     

    Buy this book now. This article is excerpted from the book Building Web Services with Java: Making sense of XML, SOAP, WSDL, and UDDI, written by Steve Graham et al. (Sams; ISBN: 0672326418). Check it out today at your favorite bookstore. Buy this book now.

    WEB SERVICES ARTICLES

    - Safety, Idempotence, and the Resource-Orient...
    - The Resource-Oriented Architecture in Action
    - Features of the Resource-Oriented Architectu...
    - The Resource-Oriented Architecture
    - Getting Started with Flex
    - Automated Billing and Faxing for the Web
    - An Introduction to Web Services
    - The Foundations of Web Services: From Novice...
    - Web Services Reengineering: Finishing Touches
    - Fault Handling with Web Services
    - Flow and Web Services
    - Process Lifecycles and Web Services
    - Business Processes and Web Services
    - Orchestrating Web Services
    - Notifications and Resources in the WS-Resour...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek