Logo

Welcome to Service Oriented Architecture – SOA

Login or Signup to meet new friends, find out what's going on, and connect with others on the site.


Registration is closed

Sorry, you are not allowed to register by yourself on this site!

You must either be invited by one of our team member or request an invitation by email..

Note: If you are the admin and want to display the register form here, log in to your dashboard, and go to Settings > General and click "Anyone can register".

Forgot Your Password?

A new password will be e-mailed to you.

Member Login

You are browsing the archive for ESB SOA.

by admin

WLST Best Practices

6:01 am in ESB SOA by admin

by admin

WebLogic Server With Oracle RAC

6:01 am in ESB SOA by admin

by admin

Fly Like a Rocket using JRockit JVM

6:01 am in ESB SOA by admin

by admin

New Combo Meal – JDeveloper 11g + WebLogic Server 10g

6:01 am in ESB SOA by admin

by admin

Encrypt the credentials when running WLST in interactive or script mode

6:01 am in ESB SOA by admin

by admin

Local Proxy & Federated Portals

6:01 am in ESB SOA by admin

by admin

Identity Management At Ease

6:01 am in ESB SOA by admin

by admin

Extend WLST with your own commands

6:01 am in ESB SOA by admin

by admin

Open ESB Tip : Getting Started With The Back In Black Monitor

6:00 am in ESB SOA by admin

Read the original article at The Crooked Stick

Now that I have complete switched over to the “Back In Black” format
of the monitor I thought it was about time I put together a new
“Getting Started” blog entry to match the new screens and explain the
exteneded functionality. The previous entry still exist for those using
the older style Monitoring application but as mentioned I will not be
updating the old style because the main driver, so far, for the
development of the Monitoring UI have been the UK Pre-Sales
group. 

Overview


The Open ESB BPEL Monitoring tool is built upon the standard Open
ESB
Management and Monitoring API and provides a simple interface to view
the running BPEL Processes and their instances. When the Monitor is
first displayed, or
refresh with the browser, the user will be presented with the Dashboard
Tab displaying a summary of the currently deployed / monitored BPEL
Processes. Selecting on of these processes will display
the selected process with the Process Monitor tab.

Dashboard

Provides the user with a summary of all BPEL Processes that have
been deployed and have run to the application server. You may not see
all your BPEL processes because the Dashboard only shows processes that
have been executed at least once and the monitoring data exists in the
database (see Archive and Purge). The Business processes are displayed
in Alphabetical order and as can be seen show the following summary
information:

  • Running : Count of the
    currently running processes.
  • Complete : Count of the
    completed processes.
  • Suspended : Number of
    currently suspended processes.
  • Faulted : Number of
    Faulted processes.
  • Terminated : Number of
    Terminated processes.
  • Last Updated : Last time
    anything happened to any instance of this processes.

These figures are based on the data in the Monitoring Database so
Archiving / Purging the data will affect these values. On the Dashboard
tab you will see a small refresh icon that will cause the data to be
reloaded which is useful when you do not have the automatic refresh set.

Dashboard

Process Monitor

The Process Monitor is the main Tab that will be used and contains a
number of accordion-tabs that display process specific information. The
information displayed within this tab is that associated with the
select Business Process. When initially selected the Summary
information will be displayed this repeats the information displayed
within the dashboard row for the selected Business Process. Again the
Process Monitor Tab contains a small refresh icon that can be used to
manually refresh the displayed data.

Summary Accordion

The summary tab displays the overall aggregated information for all
instances of this process that exist in the database since the last
Archived / Purged date. In addition if the Show Management Buttons
configuration option is selected then the user will also see the
following buttons :

  • Suspend All
  • Resume All
  • Terminate All

The affect all instances of the selected process that are currently
Running or Suspended.

Process Monitor

Instances Accordion

The Instances tab displays a
Filtered list of all instances for the process and are colour coded,
based on their status, as follows:

  • Green : Completed.
  • Blue : Running.
  • Red : Terminated / Faulted.
  • Yellow : Selected.

The Filter fields that can
be used to restrict and order the displayed instances based on :

  • Staus
  • Max Number Records
  • Sort Column / Order

Once the Refresh button has been pressed the data will be
redisplayed appropriately. These settings will be saved as cookies on
the users browser and used as the default next time.

In addition if the “Show Management Buttons” has been selected the
user will see the Suspend All / Resume All  / Terminated All
buttons under the filter fields and for any processes currently Running
/ Suspended the appropriate Suspend / Resume / Terminate buttons next
to the process in the table.

Instances

Process Accordion

Displays the business process in a graphical format that is defined
by the configuration properties. If the user would link to see the
process as the developer did then selecting a Vertical Orientation and
the Open ESB icon will do so. Personally I like the horizontal layout
because it uses less screen real-estate. The exact representation
displayed depends on what options the user selects in the Configuration
tab (see below). In addition to the SVG representation of the Business
Process the use has a slider that provides zoom functionality thus
allowing the user to fit even large Processes onto the screen.

The image below is displayed with Collapse Composites and User
Business Icons set. When Composites are collapsed the user has the
ability to click and expand or for those already expanded to collapse
using the small blue collapse icon. Thus the user can be very specific
about what the view.

Process SVG

When the user selects and instance the displayed Business Process
will be updated to indicate the status of the individual Activities
within the Business Process thus highlighting where the business
process is in its processes and any activities where it is either
waiting or broken.

Selected Instance

In addition to this if the Business Process Invokes another,
Sub-Process, within the same deployment the user will be able to click
on the Invoke and drill down to the Sub-Process. Once you have drilled
down you will notice that the Breadcrumb above the scroll bar will be
updated to indicate the current drill-down level.

Sub Process

Statistics Accordion

The Statistics Tab will display simple processing Statistics for the
Select BPEL Process Instances displayed in the Instance Table and the
data is controlled by the same filter criteria. If a specific instance
is selected in the instance table the Statistics Accordion will display
the processing information for each activity within the selected
instance.

Statistics

Activities Accordion

For any selected Instance the user can select the Activities Tab and
a table of all the activities within the Process will be displayed
along with their associated statistics.

Activities

Variable Accordion

This Accordion allows the user to view and edit, if the instance is
suspended, the variables associated with a selected BPEL Instance. Both
the Simple and Process Variables are displayed within a simple table.
Variables

If the Variable can be edited then its name will ba a Hyperlink that
when click will dynamically generate and edit from above the Variable
list.
Edit frame

All fields are created as simple text input with no specific
validation (because I am working from an XML with no additional
information) and hence the user is responsible for adding the correctly
formatted information. When the user has completed the changed
selecting Update will write these to the process and this can take a
long time for large process variables. Whilst the variable is being
updated an indeterminate progress bar will be displayed. On completion
the screen will be refreshed and the status displayed.
UpdatingUpdated

BPEL Source Accordion

The Accordion simply displays the Source BPEL Directly to the user.
The exact functionality available within the Source Accordion will
depend on your browser.

Source

Search

The search tab provides the user with the ability to search either
simple BPEL variables or the complex (XML) variables and is only
available when the user has selected a BPEL Process. This allows the
Monitor to restrict the amount of work done by the search when the user
selects the Full search option. At present the user is able to enter a
simple search string that will be used as an exact match on the simple
search or an contains type match on the full search.
Search

Simple Search

Simple Search

Full Search

Full Search

Configuration

The Configuration Tab allows the user to specify a number of
optional parameters that will affect the way that the monitor will be
displayed. The configuration parameters available in the present
release are as follows and have the functionality described below:

  • Refresh Period : Defines
    the Refresh period for the data displayed within the Monitor. If this
    is set to “Manual Refresh” then the monitor data will only be refreshed
    when the user selects the Browsers Refresh button.
  • Process Layout : Simply
    defines the display layout for the business process. This allows you to
    switch between standard OpenESB Vertical layout to a more browser
    friendly horizontal layout.
  • Icon Set : Defines the
    Icon Set to be used within the display of the Business Process. At
    present you can select between the standard Open ESB Icons and an
    alternative set.
  • Icon Size : Allow the
    user to select the size of the icons to be displayed. This can be
    useful for large business processes that do not fit easily on the page.
  • Layout : Additional BPEL
    Process Layout functions:
    • Show Sequence Names :
      Display the Sequence Name for all Sequences in the process.
    • Show Scope Names :
      Display the Scope Name for all scopes within the process.
    • Hide Assigns : Flag to
      indicate if the Assigns should be displayed within the Business
      Process. Useful for large business processes.
    • Collapse Composite Activities
      : Flag to indicate if the Composite Activities (Sequence and Scope)
      should be collapsed. If this flag is set the user will be able to click
      the collapsed Activity to expand it and see the contained Activities.
    • Show Management Button
      : Displays the Suspend / Resume / Terminate buttons on the Instances /
      Summary screens
    • Show Business Icons :
      Replaces the standard collapsed Icons with user defined business
      specific Icons.
    • Bright Activity Colours
      : Switches to brighter colours for identifying the activity status
      (useful for projecting the monitor).
  • Theme Switcher : Switches
    the UI Theme to one of a number of pre-defined colour schemes.

Once the properties have been chosen the “Update” button will apply
the settings and redisplay the Process Monitor tab.

Configuration

Archive & Purge

The Archive & Purge Tab allows the user to maintain the data
within the BPEL Monitor database. The user has the option of selecting
a date before which the records in the Database will be either Archived
and Purged or Purged. If the user selects Archive then the record
within the Database tables will first be written to archive table:

  • ARCHIVEMONITORBPELACTIVITY
  • ARCHIVEMONITORBPELACTIVITYVARIABLE
  • ARCHIVEMONITORBPELINSTANCE
  • ARCHIVEMONITORBPELVARIABLE
  • ARCHIVEMONITORNMPROPERTY
  • ARCHIVEMONITORNMSIMPLEPROPERTY
  • ARCHIVEMONITORSIMPLEVARIABLE
  • ARCHIVEMONITORVARIABLEATTACHMENT

Once this has been done the purge process is executed and the records
removed from the Database tables.
purge
purge
purge

Once the Archive & Purge / Purge has completed the Monitor will
display the results of the process indicating how many records were
Archived and how many Purged.

Adding New Icon Sets

With the latest release of the Monitor we are able to customise the
Monitor Web Application by adding additional Icon Sets. Once added
these Icons can be used instead of the standard shipped Icons. The
following step show you how to this can be done:

  1. Create an Icon Set of type .png and with the specific names used
    in the existing Icon Sets. To check you have this correct look in <glassfish
    domain>/applications/j2ee-modules/BpelMonitor/resources/icons/openesb
    .

  2. Create a sub directory of <glassfish
    domain>/applications/j2ee-modules/
    BpelMonitor/resources/icons
    to contain your icons (myicons)
    and copy the icons into it.
  3. Edit the <glassfish
    domain>/applications/j2ee-modules/
    BpelMonitor/iconsets.properties
    file and add the following:

    myicons=My Icons Display Name
    (This is what will appear in the drop
    down)

  4. Refresh the monitor page and choose your Icon Set.

Performance Tweaks

If you are seeing some performance degradation when their is a large
number of instances within the BPELSE monitoring database we can
improve query performance by adding the following indexes to the
database.

CREATE INDEX idx_BPELID ON MONITORBPELINSTANCE(BPELID);CREATE INDEX idx_CRMPINVOKEID ON MONITORBPELACTIVITY(CRMPINVOKEID);CREATE INDEX idx_CRMPRECEIVEID ON MONITORBPELACTIVITY(CRMPRECEIVEID);

This can be achieved by opening / creating a connection the the
bpelseDB within NetBeans and executing the commands against the
connection.

by admin

Open ESB Tip : Simplified Business View Generation

6:00 am in ESB SOA by admin

Read the original article at The Crooked Stick

In the never search for simplicity and perfection I have written a
new Servlet that is designed to simply retrieve the business view of
the BPEL based on the BPEL Instance Id which can be easily obtained
from the Business Process. This I hope will greatly simplify the task
of generating the Business View and make it easier to integrate with
web applications, such as the Sun Pre-Sale Cars Online Demo, to provide
user feedback.

This blog entry, which will probably take longer to write than the
Servlet, will document how to call the new Servlet, the html / xhtml
requirements and what we information need from the business process.

I am assuming that the reader has read the previous blog entries
associated with this topic and therefore understands how to add the
specific Business Style Icons and how to design and build their
Business Processes to take advantages of this functionality. With this
version I have made not attempt to generate Internet Explorer / Opera
compatible code but the reader can do this by looking at the previous
entries.

I will split the description on usage into the the following section:

  • BPEL Modifications
  • Client Side Code.
  • Server Side Code.

BPEL Modifications


To allow this new Servlet to be integrated into any web application
requires a number of simple modification to the layout / grouping of
the Business Process. These are defined in my previous blog entry “Giving
the
Monitor
a Business Skin
“. In addition to this we need to obtain
the running processes Instance Id and this easily to by using the “Get
BP ID” function available from the BPEL Menu in the mapping tools bar
(see below).

BPEL Id

Once we have the Instance Id this needs to be returned to the User
Interface before the process has completed. This can be done either by
having the reply early in the process (I’m assuming Asynchronous
processing) or we need to place this information in a location where
the front end can read / correlate this information database / jms.

Client Side Code


I have provided a simple jsp page (index.jsp) to demonstrate the
call to the Servlet (below) and as you can see it simply takes an
Instance Id and then displays the SVG for the Business Process. I have
documented the index.jsp because it shows some key features required to
display the svg, inline, correctly.
Example

index.jsp

The demo page created has a few key pieces of information you will
require within your page to display the inline svg correctly. Line 30
is the most important line because it changes the standard “text/html”
Type for the page to “application/xhtml+html” this allows the svg to be
placed inline and display correctly, in Firefox / SeaMonkey / Chrome,
correctly. If this is not done then the code will not be displayed
correctly with only the titles being displayed.

Once the content type has been set we need to set the content of the
html to xhtml as shown by line 33.

To force the Browser not to cache the pages I have added lines 36-39
by setting the various no cache and timeout options.

ajax.js

This simple JavaScript simply calls the Servlet using the JQuery
$.ajax functionality and then place the result of the Servlet call into
the div defined in the index.jsp page. It can be seen from the
JavaScript code that I simply call the Servlet and pass the contents of
the instanceId input field on index.jsp. Obviously this instanceId can
be obtained programatically and passed onto the call.

BPEL Instance Id is defined in MONITORBPELINSTANCE
database table.

&amp;amp;lt;br&amp;amp;gt;

Server Side Code


The Server side code has been simplified to a single Servlet and
Singleton Factory. The Single exists only to provide a simple cache so
that I do not have to access the database for each invocation of the
Servlet. This is not an intelligent cache by any means just simple
storage implementation.

AjaxGenerateBusinessSvgServlet

The AjaxGenerateBusinessSvgServlet will take the Instance Id passed
and obtain the BPEL Id (line 133) and then obtain the BPEL as a String
(line 135). This BPEL is then Unmarshalled into a JAXB Structure (Line
137) before we build the required SVG Layout and Generator (Lines 138 -
167).

The Activities and their status is obtained from the BPEL Management
API (Line 131) and these are converted to background colours in lines
147 – 161. Whilst the business Icons are obtained at line 146.

&amp;amp;lt;br&amp;amp;gt;

In addition to the required instanceId parameter the Servlet also
accepts a scaling and iconSet parameters. The scaling parameter is a
double that defines how the generated svg will be scaled. The default
value is 1.0 and hence generates with no scaling. The iconSet defaults
to alternative (the only available) but can be changed if you add your
own icons sub-directory.

BusinessSvgFactory

Simple cache of the database information so that I can quickly
access / retrieve the BPEL as a String and Business Icons.

&amp;amp;lt;br&amp;amp;gt;

Get Adobe Flash playerPlugin by wpburn.com wordpress themes