Installing Petals View

compared with
Version 8 by Sandra TRINO
on Jan 21, 2011 17:00.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (21)

View Page History

h1. Introduction


h2. Overview


h3. Installation in a nutshell:

* download these JBI components: petals-se-notification-X.zip and petals-se-kpi-X.zip;
* download the petals view's war (petals-view-ui-X.war);

h3. How does it work?

* You configure a component so that when it is installed, it will register in petals-se-notification base: "I can send notifications to you".
* Upon reception, petals-se-notification forwards these notifications to petals-se-kpi (configured with its own services assemblies -- sa-kpi).

h3. Servers tested

* Tomcat: versions: 5.5.27, 6.0.29
* JBoss: versions: 4.0.5.GA, 4.2.3.GA, 5.0.1.GA, 5.1.0.GA

h3. Databases tested

* H2
* MySQL: version: 5.0

{multi-excerpt:name=Configuring Petals View}

h1. Stage 2: Configuring Petals View

h3. petals-se-kpi component

* Download the KPI component (petals-se-kip.zip)
* Browse to petals-se-kip.zip/META-INF

h3. PetalsView.war

* Download Petals View (PetalsView.war)
* Browse to PetalsView.war/WEB-INF/spring

{multi-excerpt:name=Configuring and setting up notification environment}

h1. Stage 3: Configuring and setting up notification environment


{multi-excerpt:name=Creating your SA-KPI.zip and corresponding SU-KPI.zip}

h1. Stage 4: Creating your SA-KPI.zip and corresponding SU-KPI.zip

A SA-KPI is composed of: a META-INF folder which will contain jbi.xml file and the su-kpi.zip.

example of a jbi.xml file from a sa-kpi.zip :

{toggle-cloak:id=code4}Display code example
{cloak:id=code4}
{code:lang=xml}
<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi">
</jbi>
{code}
{cloak}

A SU-KPI is composed of: a META-INF folder containing SU's jbi.xml file and a special file, modelNotification.xls

example of jbi.xml file of a SU:

{toggle-cloak:id=code5}Display code example
{cloak:id=code5}
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
service-name="notification:NotificationBrokerService"
endpoint-name="NotificationBrokerServiceEndpoint">

<!-- CDK specific fields -->
<petalsCDK:operation>Subscribe</petalsCDK:operation>
<petalsCDK:mep>InOut</petalsCDK:mep>

<!-- Component specific elements -->
<!-- Subscription to process on init : -->
</jbi:jbi>
{code}
{cloak}

* The text in red defines for which state you configure the present SU: in -- out -- status \--fault.
* Texts in blue define the filtering you want to apply to notifications:
<kpi:MessageContentXpath>boolean(/*\[local-name()='publishBusinessEntity'{color}\])</kpi:MessageContentXpath> :
\*\* here you can apply filtering criteria on content fields, as long as they are present in the messages. If you don't want any content filtering, set the value to "true".
Example : <kpi:MessageContentXpath>boolean({color:#0084d1}true(){color})</kpi:MessageContentXpath> <kpi:MessageContentXpath>boolean(true())</kpi:MessageContentXpath>
** You can filter directly on service's endpoint or interface (these fields are not mandatory). You can also filter on endpoint:
<kpi:MessageContentSOAInterfaceNamespace>{color:#0084d1}[http://org.ow2.petals/demo/travelagency/agency/]{color}</kpi:MessageContentSOAInterfaceNamespace>

{multi-excerpt:name=Configuring the Referential in Petals View}

h1. *Stage 5: Configuring the Referential in Petals View*