0% found this document useful (0 votes)
59 views

Software Components Interaction Standards: - Java 2 Enterprise Edition (J2EE) - Windows Communication Foundation (WCF)

- J2EE (Java 2 Enterprise Edition) and WCF (Windows Communication Foundation) are platforms for developing distributed applications and web services. - J2EE provides APIs and services for developing multi-tier web applications using Java, including APIs for databases, messaging, mail, and more. - WCF provides a unified framework for building services and applications using .NET, with support for interoperability, multiple messaging patterns, hosting options, and security.

Uploaded by

krunal_1008
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views

Software Components Interaction Standards: - Java 2 Enterprise Edition (J2EE) - Windows Communication Foundation (WCF)

- J2EE (Java 2 Enterprise Edition) and WCF (Windows Communication Foundation) are platforms for developing distributed applications and web services. - J2EE provides APIs and services for developing multi-tier web applications using Java, including APIs for databases, messaging, mail, and more. - WCF provides a unified framework for building services and applications using .NET, with support for interoperability, multiple messaging patterns, hosting options, and security.

Uploaded by

krunal_1008
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25

Software Components Interaction

Standards

• Java 2 Enterprise Edition(J2EE)


• Windows Communication Foundation(WCF)
J2EE
Java Platform

• J2SE – Java 2 Standard Edition -> Java for


desktop/workstation
• J2ME – Java 2 Micro Edition -> Java for consumer
device
• J2EE – Java 2 Enterprise Edition -> Java for server
What is j2ee?
 J2EE is a platform-independent, Java-
centric environment for developing,
building and deploying Web-based
enterprise applications online.
 The J2EE platform consists of a set of
services, APIs, and protocols that
provide the functionality for
developing multitier, Web-based
applications.
Why we require J2EE?
 Simplifies application development and
decrease the need for programming.
 Programmer training by creating
standardized, reusable module
component and by enabling the tier.
 To develop distributed system like E-
Commerce
 To better implementation of MVC(Model
view control)
 For better security

J2EE Multitier distributed Application
J2EE clients
 Web Client
 That contain dynamic WebPages .
 Some time called thin client.

 Application Client
 Typicallyhave GUI.
 Abstract windows toolkit
 May be., command line interface.


Java Server Communication
Web Tier and j2ee application
J2ee and ESI tier
Data
J2EE Architect JDBC

RDBMS

Client Application Logic


JavaMail

Web Container Mail Server


HTML/
XML RMI
Servlets JSPs
J2EE
Application
JavaMail
RMI/IIOP

Server IIOP
JNDI

JDBC
JTA

JMS

JAF
Applet
EJB Container CORBA
Session Beans Entity Beans
JNDI
Client
Applica-
tion
Directory Services

JavaMail
RMI/IIOP

JMS
JNDI

JDBC
JTA

JMS

JAF
J2ee API
 RMI : RMI is an API which allows Java
objects to communicate remotely with
other objects. This API has the same
purpose of CORBA from OMG.
 JNDI : provide naming and directory
functionality.
 JDBC : Let you invoke SQL command from
java program.
 JMS : Messaging standard tat allow to
crate, send, receive and read messages.
 JavaMail : to create e-mail.
Windows communication foundation
Introduction
 WCF is an extension of the .NET
framework to build and run connected
systems.
 WCF provides a unified framework for
building secure and reliable transacted
Web services.
 The WCF framework builds loosely-
coupled applications on a service
oriented architecture that
interoperates more securely and
The architectures
The WCF Framework Model
Architecture

T h e fo llo w in g
g ra p h ic illu stra te s
th e m a jo r la ye rs o f
th e W in d o w s
C o m m u n ica tio n
Fo u n d a tio n
a rch ite ctu re .
Contracts and Descriptions
v C o n tra ct d e fin e va rio u s a sp e cts o f th e m e ssa g e syste m .
v T h e d a ta co n tra ct d e scrib e s e ve ry p a ra m e te r th a t m a ke s
u p e ve ry m e ssa g e th a t a se rvice ca n cre a te o r co n su m e .
( The message parameters are defined by XML Schema
d e fin itio n la n g u a g e d o cu m e n ts.)
v T h e m e ssa g e co n tra ct d e fin e s sp e cific m e ssa g e p a rts
u sin g S O A P p ro to co ls, a n d a llo w s fin e r-g ra in e d co n tro l
o ve r p a rts o f th e m e ssa g e , w h e n in te ro p e ra b ility
d e m a n d s su ch p re cisio n .
v T h e se rvice co n tra ct sp e cifie s th e a ctu a lm e th o d
sig n a tu re s o f th e se rvice , a n d is d istrib u te d a s a n
in te rfa ce in o n e o f th e su p p o rte d p ro g ra m m in g
la n g u a g e s, su ch a s V isu a lB a sic o r V isu a lC # .
v Policies and bindings stipulate the conditions required to
communicate with a service.
v
Service Runtime
vThe service runtime layer contains the
behaviors that occur only during the
actual operation of the service, that is,
the runtime behaviors of the service.
vThrottling controls how many messages
are processed, which can be varied if
the demand for the service grows to a
preset limit.
vAn error behavior specifies what occurs
when an internal error occurs on the
service
Messaging
v The messaging layer is composed of channels. A channel
is a component that processes a message in some way.
v A set of channels is also known as a channel stack.
Channels operate on messages and message headers.
v There are two types of channels: transport channels and
protocol channels.
v Transport channels read and write messages from the
network (or some other communication point with the
outside world). Examples of transports are HTTP,
named pipes, TCP, and MSMQ. Examples of encodings
are XML and optimized binary.
v Protocol channels implement message processing
protocols, often by reading or writing additional headers
to the message. Examples of such
Hosting and Activation

vIn its final form, a service is a program.


Like other programs, a service must be
run in an executable. This is known as a
self-hosted service.
vServices can also be hosted, or run in an
executable managed by an external
agent, such as IIS or Windows
Activation Service (WAS). Services can
also be manually run as executables
(.exe files) or be run automatically as a
Windows service. COM+ components
can also be hosted as WCF services.

Features of WCF
• Interoperability
v WCF implements modern industry standards for Web
service interoperability. (For more information about the
supported standards, see
Interoperability and Integration.)
• Multiple Message Patterns

v The most common pattern is the request/reply


pattern, where one endpoint requests data from a
second endpoint. The second endpoint replies.
There are other patterns such as a one-way
message in which a single endpoint sends a
message without any expectation of a reply. A more
complex pattern is the duplex exchange pattern
where two endpoints establish a connection and
send data back and forth, similar to an instant
WCF COMMUNICATION MODEL
Windows Communication Foundation (WCF) follows a
client–server model to establish
communication between applications. Client
applications can directly access services
through Endpoints exposed by the service.
Endpoints are nothing but locations defined,
through which messages can be sent or
received, and a service can have multiple
endpoints.

A WCF Service is comprised of the following
major components
ØService Contract
ØOperation Contract
ØData Contract
ØData Member

qService Contract
Service contract is a contract that specifies the
direction and type of the messages in a conversation.
It is an interface or a class that defines the
service contract in a Windows Communication
Foundation (WCF) application.
qOperation Contract
An operation contract defines the methods of
the service that are accessible by external
systems.
qData Contract
A data contract defines a
type with a set of data members or fields that
will be used as the composite type in a service
contract.
qData Member
A data member specifies the
type which is part of a data contract used as a
composite type member of the contract.

You might also like