Using the Java EE Service Engine in a Project
  • Previous: Book Information

Using the Java EE Service Engine in a Project

This guide provides an overview of the Java EE Service Engine and its relationship with the application server and JBI runtime environment. It includes details that are necessary to start the Java EE Service Engine in a JBI project.

What You Need to Know

These links take you to what you need to know before you use the Java EE Service Engine.

Using the Java EE Service Engine

These links take you to topics containing information about using the Java EE Service Engine in a project.

About the Java EE Service Engine

The Java EE Service Engine is a JSR 208-compliant JBI runtime component that connects Java EE web services to JBI components. The framework of the Java EE Service Engine is defined by the interconnectivity of GlassFish and the JBI runtime environment, which is installed as part of the application server. The Java EE Service Engine acts as a bridge between the application server and the JBI runtime environment, facilitating interaction between Java EE and JBI components.

Without the Java EE Service Engine, a Java EE component that is deployed as a servlet or Enterprise Java Beans web service can only be accessed from the HTTP SOAP transport. With the application server and JBI runtime environment working together, Java EE components can more readily access an array of binding components for transport or service engines for business logic, processing, transformation, and routing services. Enterprise beans and servlets that are packaged as web services and deployed on the application server are transparently exposed as service providers in JBI environment. Therefore the Java EE components can consume services exposed in JBI environment using the Java EE Service Engine without being aware of the underlying binding or protocol. This in-process communication between components of the application server and JBI runtime components results in increased request processing speed because all component interactions occur within the application server.

The following illustration shows the relationship between the application server, the JBI runtime environment, and the Java EE Service Engine. Acting as either a service provider or as a service consumer, the Java EE Service Engine communicates directly with the Normalized Message Router (NMR) and EJB web services using JAX-WS. The power and versatility of the Java EE web service communication continues to expand when additional JBI components are added to the runtime environment.

The Java EE Service Engine is bundled as part of NetBeans IDE 6.1 Preview with SOA and Project Open ESB. You can download these components from the Sun Developer Network at: http://java.sun.com/downloads.

Java EE Service Engine as bridge between application server
and JBI

Java EE Service Engine Features

The features of theJava EE Service Engine are:

For more information on the Java EE Service Engine Features, see the article Bridging Java EE Web Services and JBI Components.

Java EE Service Engine Limitations

The Java EE Service Engine has the following limitations:

Java EE Service Engine Use Case Scenarios

JBI components are typically used to handle high-level business operations. The Java EE Service Engine becomes necessary in situations where complex Java EE-based business logic needs to communicate with JBI components. In these situations, the Java EE Service Engine facilitates the transfer of data between components. Some examples of this data exchange include:

Java EE Service Engine as Service Provider and Service Consumer

JBI uses the abstract service model as the main basis of component interactions. As with other JBI runtime components, the Java EE Service Engine can act either as a service provider that performs a service, or as a service consumer that invokes a service.

Java EE Service Engine as a Service Provider

The Java EE Service Engine functions as a service provider by enabling an endpoint in the NMR. When a Java EE web service is deployed, the deployment runtime of application server notifies the Java EE Service Engine so that an endpoint is enabled in the NMR of the JBI runtime. The notification enables any component deployed in the NMR to access the Java EE web service. For example, a BPEL application running inside the BPEL service engine can access the Java EE web service by sending a normalized message to the endpoint enabled by the Java EE Service Engine. This way of accessing Java EE web services is an alternative to the normal web service client access defined by JAX-WS.

Java EE Service Engine as a service provider

Java EE Service Engine as a Service Consumer

When a Java EE application needs to access an endpoint of a service provider deployed in the JBI runtime environment, the Java EE Service Engine communicates with the application server and the NMR in the JBI environment. In this case, the Java EE Service Engine normalizes the SOAP message that otherwise would have been used in the JAX-WS communication and sends it to the NMR. This normalized message is handled by a service that has been enabled by a service provider deployed in the JBI runtime environment. The following illustration depicts three JBI binding components acting as service providers, offering application-specific content to external clients.

Java EE Service Engine as a service consumer

Java EE Service Engine Example Scenario

The following example shows how the Java EE Service Engine can be used in a business integration.

Client Application Acting as a Web Service

Scenario Message Flow

The example scenario message flow works as follows:

NetBeans Tooling Support for the Java EE Service Engine

To make Java EE web services work with JBI runtime components, deploy Java EE web services as part of a composite application. NetBeans provides full fledged support to create/deploy/manager the Java EE Service Units. NetBeans 6.1 includes additional server resource support for Java EE applications packaged inside composite applications. Java EE projects or components can be deployed through the Service Assembly, or they can be deployed independently with optimization of the intra-JVM communication.

These two deployment methods address the issue of Java EE applications packaged inside composite applications with resource dependencies, such as connection pools or JMS destinations, that are created before deployment. The addition of server resource support for Java EE applications makes resolving resource dependencies easier by combining all the resource dependencies of a Java EE application into a single sun-resources.xml before packaging the information into a .jar or .war file.

For additional information on this tooling support, see the help topic “About JBI and Java EE Web Services” in the NetBeans help.

Software Requirements and Installation

The GlassFish V2 bundles OpenESB JBI runtime, and also includes Java EE Service Engine and HTTP Binding components as the system components.

To use the Java EE Service Engine, install the following software:


Note –

You must have the JDK (Java Development Kit) software installed and JAVA_HOME set as an environment variable, prior to installing GlassFish ESB or the installation will halt midway. See Installing the JDK Software and Setting JAVA_HOME in the Open ESB documentation for details.


Configuring and Starting the Java EE Service Engine

The Java EE Service Engine requires no configuration.

The Java EE Service Engine can be started in three ways. It starts automatically whenever a JBI service assembly which contains a Java EE Service Unit is deployed.

Users who work with the service engine in the NetBeans IDE must start the component from the GlassFish V2 application server.

ProcedureTo Start the Java EE Service Engine from the GlassFish V2 Application Server

  1. From the NetBeans IDE's main page, in the Services window, expand the GlassFish V2 -> JBI -> Service Engines nodes.

  2. Right-click sun-javaee-engine and choose Start from the pop-up menu.

    The following message appears in the Output window:

    Engine sun-javaee-engine has been started.

ProcedureTo Start the Java EE Service Engine from the Admin Console

  1. In the NetBeans Services window, log in to the GlassFish Administrator Console by right-clicking your application server and choosing View Admin Console.

    Ensure that the GlassFish application server is running. A green arrow icon next to the server node indicates that the server is running. If the server is not running, right click the server name and choose Start from the pop—up menu.

  2. You can also open the Admin Console from your web browser using the correct URL, for example: http://localhost:4848.

    The default log in username isadmin, and the password is adminadmin.

    The Sun Java System Application Server Admin Console opens in a new browser window.

  3. On the left pane under the JBI node expand Components and choose sun-javaee-engine.

    The Java EE Service Engine properties page opens.

  4. Click on the Start button on the General tab page to start the Java EE Service Engine.

ProcedureTo Start the Java EE Service Engine Using Command Line Interface

  1. Navigate to the location where you have installed the GlassFishESB and open the folders glassfish-> bin.

  2. Double click asadmin.batfile.

  3. At the asadmin command prompt type start-jbi-component sun-javaee-engine.

Installing Java EE Service Engine Using Command Line Interface

The Java EE Service Engine comes installed and configured when the GlassFish application server is installed. If you uninstall the Java EE Service Engine accidentally, you can use the CLI (Command Line Interface) to install it again manually.

Type the following command:

asadmin install-jbi-component [ApplicationServer-InstallDir]/jbi/components/sun-javaee-engine/appserv-jbise.jar

Other Operations Using the Command Line Interface

Using the CLI we can perform many operations.

asadmin uninstall-jbi-component sun-javaee-engine

Administering the Java EE Service Engine

You can administer the Java EE Service Engine instances using the GlassFish Admin Console tools. These tools enable you to monitor and change the Java EE Service Engine's variable values, and suspend, resume, or terminate instances.

ProcedureTo View the General Properties

  1. Log in to the GlassFish Administrator Console and on the left pane under the JBI node expand Components and choose sun-javaee-engine

    The Java EE Service Engine properties page opens.

    Here you can view the details of the Java EE Service Engine, Service Units, and perform Start, stop and shut down operations.

    Java EE Service Engine General Properties

Java EE Service Engine Log Management

The NetBeans IDE provides the ability to define logging for process activities.

Logging is used to write specified expression values or partner links endpoint reference information to the server log. The log level for the Java EE Service Engine is specified through the GlassFish Admin Console.

ProcedureTo Set the Log Level for the Java EE Service Engine

  1. Access the Java EE Service Engine General Properties page.

    For more information see To View the General Properties.

  2. Once on the General Properties page, click the Loggers tab.

  3. Choose the appropriate log level for the sun-javaee-engine from the drop down list.

    If logging is defined for a process activity, and the log level specified for it corresponds to the log level set for the Java EE Service Engine, after you perform a test run of the process, the selected variable value will be written to the server log file.

    The following levels of logging are available:

    • FINEST

    • FINER

    • FINE

    • CONFIG

    • INFO

    • WARNING

    • SEVERE

    • OFF

    Java EE Service Engine Loggers

ProcedureTo View a Log File

  1. From the NetBeans IDE's main page, in the Services window, under the Servers node, right-click GlassFish V2 application server node and choose View Server Log from the pop—up menu.

    The GlassFish server log opens in the Output window. The activity message value is included in the log. You can use Search to find the log information. Note that some overhead information is hidden.

  2. Another alternate method is to view the server log file is in a text editor and see the full information. Navigate to application server installation directory -> domains/domain1 and open the server.log file with the text editor.

    The information provided in the log includes the following points, divided with the vertical bar:

    • Date and time of the entry

    • Log level

    • Manager type

    • Thread

Java EE Service Engine Deployment Articrafts

A composite business application can contain Java EE applications. Users prefer to deploy and manage composite applications as a single entity and would prefer not to deploy the Java EE applications separately from the JBI service assembly. Java EE service units can make Java EE applications part of the JBI service assembly, enabling them to be deployed and managed as one entity. By definition, a Java EE service unit is a Java EE application that can be bundled as part of the JBI service assembly. So, when the JBI service assembly is deployed, the Java EE Service Engine takes care of deploying any Java EE applications that are bundled in the service assembly.

In addition, any life cycle operation that is applied to the JBI service assembly (start, stop, undeploy, and so on) results in the same life cycle operation being applied to the bundled Java EE applications. The difference between a normal Java EE application and the Java EE Service unit is that the latter contains an additional descriptor file named jbi.xml. This JBI runtime descriptor describes the services provided and consumed by a Java EE application in the JBI environment.

As shown in the following illustration, a composite application can contain various service units, where each unit needs to be deployed into the proper component of the JBI environment. For example, if the application needs to read input from a file and execute a BPEL process, then your composite business application contains at least two units: one unit is deployed into the File Binding Component , and another unit is deployed into the BPEL Service Engine.

Java EE Service Engine Service Units
  • Previous: Book Information

哆哆女性网vue seo解决方案免费门店起名外贸网站制作开发卖炭翁译文谷德设计网站大全帮小孩子起名字双胞胎起名男怎么解决老是做梦属牛的适合起什么名字单机破解版精灵宝可梦签名子免费签名设计网站网站设计的大公司网站seo顾问厦门移动营业厅修行者起名大全女孩姓高都市最强兵王小说周易预测蒋震云丁女孩起名小姑娘起小名软件项目起名绿山墙的安妮主要内容男孩起名带北亚当斯一家2好听的海鲜店铺起名济南市快排seo如何算自己有几两命冀南烈士陵园观后感小白学习seo淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻不负春光新的一天从800个哈欠开始有个姐真把千机伞做出来了国产伟哥去年销售近13亿充个话费竟沦为间接洗钱工具重庆警方辟谣“男子杀人焚尸”男子给前妻转账 现任妻子起诉要回春分繁花正当时呼北高速交通事故已致14人死亡杨洋拄拐现身医院月嫂回应掌掴婴儿是在赶虫子男孩疑遭霸凌 家长讨说法被踢出群因自嘲式简历走红的教授更新简介网友建议重庆地铁不准乘客携带菜筐清明节放假3天调休1天郑州一火锅店爆改成麻辣烫店19岁小伙救下5人后溺亡 多方发声两大学生合买彩票中奖一人不认账张家界的山上“长”满了韩国人?单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#青海通报栏杆断裂小学生跌落住进ICU代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了当地回应沈阳致3死车祸车主疑毒驾武汉大学樱花即将进入盛花期张立群任西安交通大学校长为江西彩礼“减负”的“试婚人”网友洛杉矶偶遇贾玲倪萍分享减重40斤方法男孩8年未见母亲被告知被遗忘小米汽车超级工厂正式揭幕周杰伦一审败诉网易特朗普谈“凯特王妃P图照”考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼恒大被罚41.75亿到底怎么缴男子持台球杆殴打2名女店员被抓校方回应护栏损坏小学生课间坠楼外国人感慨凌晨的中国很安全火箭最近9战8胜1负王树国3次鞠躬告别西交大师生房客欠租失踪 房东直发愁萧美琴窜访捷克 外交部回应山西省委原副书记商黎光被逮捕阿根廷将发行1万与2万面值的纸币英国王室又一合照被质疑P图男子被猫抓伤后确诊“猫抓病”

哆哆女性网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化