Java EE Service Engine and Netbeans Support

hundredhonkSoftware and s/w Development

Aug 15, 2012 (4 years and 11 months ago)

325 views

JavaEE_ServiceEngineT
oolingSupport.doc

Java EE Service Engine and Netbeans
Support












Contents



JAVA EE SE
RVICE ENGINE....................................................................................................................2

NETBEANS TOOLING SUPPORT FOR
JAVA EE SE
RVICE ENGINE............................................3

COMPOSITE APPLICATION PROJECT BUILD SUPPORT FOR
JAVA EE SE
RVICE ENGINE 4

SCENARIOS WHERE
JAVA EE SE
RVICE ENGINE IS NEEDED.....................................................5

URLS.............................................................................................................................................................5






Page 1 of 5
JavaEE_ServiceEngineT
oolingSupport.doc

Java EE Service Engine
Java EE Service engine is a JBI component of type Service Engine. It is developed to
optimize communication between in VM Java EE components and JBI components.
By nature this type of JBI component has to be aware of Application server
implementation details and thus will have dependency with App server implementation.



Webservice
JBI SE
Java EE
Service Engine
Webservice Client


NMR
JBI BC

EJB Container
JBI BC
Webservice client
Servlet Container
JBI Container
Glassfish 9.1
Webservice


Page 2 of 5
JavaEE_ServiceEngineT
oolingSupport.doc

Netbeans Tooling support for Java EE Service Engine
Java EE service engine needs to intercept the messages only when Java EE component is
co-located/deployed in the same VM as JBI container/framework.

Current implementation of Java EE Service Engine and tooling support allows Composite
Application developer to optimize communication between JBI and Java EE components
in following way.

• Deploy Java EE components along with JBI components Service Units as part of
Service Assembly. This is the default behavior.
• Deploy Java EE components independent of Service Assembly. Developer
indicates communication optimization between Java EE component by just
creating skeleton/dummy Service unit for Java EE Service Engine.

Netbeans 5.5.1/Kanai release has tooling support for Java EE Service engine.

Support includes adding Java EE Projects (EJB and Web application) project to
Composite Application project. Developer can specify whether to deploy Java EE
project/components thru Service Assembly or to deploy independently and optimize intra
Java VM communication.



By default check box is enabled
and the Java EE archive is
deployed along with composite
a
pp
.


Page 3 of 5
JavaEE_ServiceEngineT
oolingSupport.doc

Composite Application project build support for Java EE
Service Engine
When composite project is built, built service assembly will contain Java EE Service
engine Service Unit inside it for each of the Java EE project. This Service unit is either
complete Java EE component archive with META-INF/jbi.xml or dummy unit with just
META-INF/jbi.xml file.

This jbi.xml file lists all the provider and consumer endpoints of Java EE project.
Service Assembly jbi.xml will also have default connection map linking Consumer with
Provider endpoints across JBI and Java EE components.












Composite App Project






Service Assembly contents


Page 4 of 5
JavaEE_ServiceEngineT
oolingSupport.doc

Scenarios where Java EE Service engine is needed

Generally JBI components are used to handle high level or coarse grained business
operations. JBI components internally may call Java EE components deployed in the
same VM to do fine grained operations.
There may also need to call JBI components from Java EE components.
Ex:
BPEL calling EJB WS.
MDB and/or Servlet calling BPEL.

Currently Java EE Web services stack supports only HTTP-SOAP transport.
Using Java EE Service engine, one can leverage array of Binding components available
as a transport.
Ex:
EJB WS client calling it thru JMS transport using JMS BC.
Java EE components calling Webservice using JMS BC or File BC.
Java EE components making Webservices call thru SMTP transport using SMTP BC.



URLs

Glassfish 9.1
Latest promoted build for Glassfish V2 from
https://glassfish.dev.java.net/public/downloadsindex.html
or
http://download.java.net/javaee5/promoted/

Glassfish comes with HTTP SOAP BC and Java EE Service engine pre-installed. Other
BC and SE needs to be installed separately.



Page 5 of 5