SlideShare a Scribd company logo
1 of 50
WebSphere Message Broker v6.x Overview 2008-01-09  Zystems Gothenburg Mårten Gustafson Zystems
WMBv6.x general overview compared to WBIMBv5.x ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
New in WMBv6.0 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
New in WMBv6.1
New in WMBv6.1 ,[object Object]
New in WMBv6.1 Nodes – Not yet released ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
New in WMBv6.1 Nodes - Considerations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
New in WMBv6.1 Infrastructure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
New in WMBv6.1 Security ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
New in WMBv6.1 Extended use of XPath in node configuration ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
WMBv6.x Java Compute Node
WMBv6.x - Java Compute Node Overview ,[object Object],[object Object],[object Object],[object Object],[object Object]
WMBv6.x - Java Compute Node Overview
WMBv6.x - Java Compute Node Overview In
WMBv6.x - Java Compute Node Overview Failure
WMBv6.x - Java Compute Node Overview Out
WMBv6.x - Java Compute Node Overview Alternate
WMBv6.x - Java Compute Node Overview ,[object Object],[object Object]
WMBv6.x - Java Compute Node Possible uses ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
WMBv6.x - Java Compute Node ,[object Object]
WMBv6.x - Java Compute Node Accessing the tree ,[object Object],[object Object],[object Object],[object Object],[object Object]
WMBv6.x - Java Compute Node Accessing the tree ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
WMBv6.x - Java Compute Node Accessing the tree ,[object Object]
WMBv6.x - Java Compute Node Accessing the tree using object API (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
WMBv6.x - Java Compute Node Accessing the tree using object API assembly.getMessage();
WMBv6.x - Java Compute Node Accessing the tree using object API MbElement xmlnsc = assembly.getMessage().getRootElement().getLastChild();
WMBv6.x - Java Compute Node Accessing the tree using object API MbElement xmlnsc = assembly.getMessage().getRootElement().getLastChild(); MbElement chapter = xmlnsc.getFirstChild().getFirstChild();
WMBv6.x - Java Compute Node Accessing the tree using object API public class SampleFlow_JavaCompute extends MbJavaComputeNode { public void evaluate(MbMessageAssembly assembly) throws MbException { MbElement xmlnsc = assembly.getMessage().getRootElement().getLastChild(); MbElement chapter = xmlnsc.getFirstChild().getFirstChild(); } }
WMBv6.x - Java Compute Node MbElement object (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) ) MbElement chapter = xmlnsc.getFirstChild().getFirstChild(); chapter.getName(); // Returnerar ”chapter” chapter.getValue(); // Returnerar ”This is chapter one” chapter.getType(); // Returnerar MbElement.TYPE_NAME_VALUE chapter.getSpecificType(); // Returnerar 0x3000000 (XMLNSC-typkoden för element) chapter.setName(”foo”); chapter.setValue(”bar”); …
WMBv6.x - Java Compute Node ESQL equivalents getMessage().getRootElement() InputRoot getMessage().getRootElement() .getLastChild() InputBody getLocalEnvironment().getRootElement() InputLocalEnvironment getGlobalEnvironment().getRootElement() Environment getExceptionList().getRootElement() InputExceptionList
WMBv6.x - Java Compute Node Accessing the tree ,[object Object]
WMBv6.x - Java Compute Node Accessing the tree with XPath / <document> <chapter title=”Chapter One”> This is chapter one </chapter> </document> (0x01000000): XMLNSC  = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
WMBv6.x - Java Compute Node Accessing the tree with XPath /document < document > <chapter title=”Chapter One”> This is chapter one </chapter> </ document > (0x01000000):XMLNSC = ( (0x01000000): document  = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
WMBv6.x - Java Compute Node Accessing the tree with XPath /document/chapter <document> < chapter  title=”Chapter One”> This is chapter one </ chapter > </document> (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000): chapter  = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
WMBv6.x - Java Compute Node Accessing the tree with XPath /document/chapter/@title <document> <chapter  title=”Chapter One” > This is chapter one </chapter> </document> (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100): title   = 'Chapter One' ) ) )
WMBv6.x - Java Compute Node Accessing the tree with XPath /document/chapter[@title=’Chapter One’] <document> < chapter  title=”Chapter One”> This is chapter one </ chapter > </document> (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000): chapter  = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
WMBv6.x - Java Compute Node Accessing the tree with XPath /document/chapter[@title=’Chapter One’]/.. < document > <chapter title=”Chapter One”> This is chapter one </chapter> </ document > (0x01000000):XMLNSC = ( (0x01000000): document  = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
WMBv6.x - Java Compute Node Accessing the tree with XPath string(/document/chapter/@title) <document> <chapter title=” Chapter One ”> This is chapter one </chapter> </document> (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = ' Chapter One ' ) ) )
WMBv6.x - Java Compute Node ,[object Object]
WMBv6.x - Java Compute Node Modifying the tree with XPath Funktioner: set-value() set-local-name() set-namespace-uri()
WMBv6.x - Java Compute Node Modifying the tree with XPath Broker specific XPath additions: ?myElement Selects myElement, created if not present ?$myElement Creates myElement as last child and selects it ?^myElement Creates myElement as first child and selects it ?>myElement Creates myElement as next sibling and selects it ?<myElement Creates myElement as previous sibling and selects it @ Used to select attributes, e.g; ?@myAttribute[set-value(’Attribute value’)]
WMBv6.x - Java Compute Node Modifying the tree with XPath <document> <chapter title=”Chapter One”> This is chapter one </chapter> </document>
WMBv6.x - Java Compute Node Modifying the tree with XPath <document> <chapter title=”Chapter One”> This is chapter one </chapter> </document> /document/?$chapter [set-value('This is chapter two')] [?@title[set-value('Chapter Two')]]
WMBv6.x - Java Compute Node Modifying the tree with XPath <document> <chapter title=”Chapter One”> This is chapter one </chapter> </document> /document/?$chapter [set-value('This is chapter two')] [?@title[set-value('Chapter Two')]] <document> <chapter title=”Chapter One”> This is chapter one </chapter> <chapter title=”Chapter Two”> This is chapter two </chapter> </document>
WMBv6.x - Java Compute Node ,[object Object]
WMBv6.x - Java Compute Node Classloading ,[object Object]
WMBv6.x - Java Compute Node Classloading ,[object Object],[object Object],[object Object]
WMBv6.x - Java Compute Node Classloading ,[object Object]
WMBv6.x - Java Compute Node Classloading ,[object Object],[object Object],[object Object]
WMBv6.1 Recommended skill set ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

What's hot (20)

Spring 4 final xtr_presentation
Spring 4 final xtr_presentationSpring 4 final xtr_presentation
Spring 4 final xtr_presentation
 
JDBC Basics (In 20 Minutes Flat)
JDBC Basics (In 20 Minutes Flat)JDBC Basics (In 20 Minutes Flat)
JDBC Basics (In 20 Minutes Flat)
 
Breaking the-database-type-barrier-replicating-across-different-dbms
Breaking the-database-type-barrier-replicating-across-different-dbmsBreaking the-database-type-barrier-replicating-across-different-dbms
Breaking the-database-type-barrier-replicating-across-different-dbms
 
Spring data requery
Spring data requerySpring data requery
Spring data requery
 
Kotlin @ Coupang Backed - JetBrains Day seoul 2018
Kotlin @ Coupang Backed - JetBrains Day seoul 2018Kotlin @ Coupang Backed - JetBrains Day seoul 2018
Kotlin @ Coupang Backed - JetBrains Day seoul 2018
 
Clojure: a LISP for the JVM
Clojure: a LISP for the JVMClojure: a LISP for the JVM
Clojure: a LISP for the JVM
 
Resthub framework presentation
Resthub framework presentationResthub framework presentation
Resthub framework presentation
 
How Scala code is expressed in the JVM
How Scala code is expressed in the JVMHow Scala code is expressed in the JVM
How Scala code is expressed in the JVM
 
Kotlin is charming; The reasons Java engineers should start Kotlin.
Kotlin is charming; The reasons Java engineers should start Kotlin.Kotlin is charming; The reasons Java engineers should start Kotlin.
Kotlin is charming; The reasons Java engineers should start Kotlin.
 
Scala
ScalaScala
Scala
 
Slice: OpenJPA for Distributed Persistence
Slice: OpenJPA for Distributed PersistenceSlice: OpenJPA for Distributed Persistence
Slice: OpenJPA for Distributed Persistence
 
Java7 - Top 10 Features
Java7 - Top 10 FeaturesJava7 - Top 10 Features
Java7 - Top 10 Features
 
JavaFX and Scala in the Cloud
JavaFX and Scala in the CloudJavaFX and Scala in the Cloud
JavaFX and Scala in the Cloud
 
How and why I turned my old Java projects into a first-class serverless compo...
How and why I turned my old Java projects into a first-class serverless compo...How and why I turned my old Java projects into a first-class serverless compo...
How and why I turned my old Java projects into a first-class serverless compo...
 
Clojure, Plain and Simple
Clojure, Plain and SimpleClojure, Plain and Simple
Clojure, Plain and Simple
 
Jdbc api
Jdbc apiJdbc api
Jdbc api
 
Advance java session 5
Advance java session 5Advance java session 5
Advance java session 5
 
Hybrid Applications
Hybrid ApplicationsHybrid Applications
Hybrid Applications
 
Dropwizard
DropwizardDropwizard
Dropwizard
 
Examples from Pune meetup
Examples from Pune meetupExamples from Pune meetup
Examples from Pune meetup
 

Viewers also liked

2011 03-31 Riak Stockholm Meetup
2011 03-31 Riak Stockholm Meetup2011 03-31 Riak Stockholm Meetup
2011 03-31 Riak Stockholm Meetup
Mårten Gustafson
 

Viewers also liked (6)

2011-06-01-stockholm-devops-blitz
2011-06-01-stockholm-devops-blitz2011-06-01-stockholm-devops-blitz
2011-06-01-stockholm-devops-blitz
 
2011 05-12 nosql-progressive.net
2011 05-12 nosql-progressive.net2011 05-12 nosql-progressive.net
2011 05-12 nosql-progressive.net
 
2011 03-31 Riak Stockholm Meetup
2011 03-31 Riak Stockholm Meetup2011 03-31 Riak Stockholm Meetup
2011 03-31 Riak Stockholm Meetup
 
2011 05-23 metrics-agilasverige-english
2011 05-23 metrics-agilasverige-english2011 05-23 metrics-agilasverige-english
2011 05-23 metrics-agilasverige-english
 
2011 05-12 nosql-fritidsresor
2011 05-12 nosql-fritidsresor2011 05-12 nosql-fritidsresor
2011 05-12 nosql-fritidsresor
 
WebSphere Message Broker In Shared Runtime Environments
WebSphere Message Broker In Shared Runtime EnvironmentsWebSphere Message Broker In Shared Runtime Environments
WebSphere Message Broker In Shared Runtime Environments
 

Similar to WebSphere Message Broker v6.x Overview - 2008-01-09

Laurens Van Den Oever Xopus Presentation
Laurens Van Den Oever Xopus PresentationLaurens Van Den Oever Xopus Presentation
Laurens Van Den Oever Xopus Presentation
Ajax Experience 2009
 
Introduction to apache_cassandra_for_developers-lhg
Introduction to apache_cassandra_for_developers-lhgIntroduction to apache_cassandra_for_developers-lhg
Introduction to apache_cassandra_for_developers-lhg
zznate
 
B2 2006 tomcat_clusters
B2 2006 tomcat_clustersB2 2006 tomcat_clusters
B2 2006 tomcat_clusters
Steve Feldman
 
02 Hibernate Introduction
02 Hibernate Introduction02 Hibernate Introduction
02 Hibernate Introduction
Ranjan Kumar
 

Similar to WebSphere Message Broker v6.x Overview - 2008-01-09 (20)

What's new in Java EE 6
What's new in Java EE 6What's new in Java EE 6
What's new in Java EE 6
 
WLST
WLSTWLST
WLST
 
Introduction to JDBC and database access in web applications
Introduction to JDBC and database access in web applicationsIntroduction to JDBC and database access in web applications
Introduction to JDBC and database access in web applications
 
java
javajava
java
 
Jdbc[1]
Jdbc[1]Jdbc[1]
Jdbc[1]
 
JDBC programming
JDBC programmingJDBC programming
JDBC programming
 
The Experience of Java on Kubernetes with Microservices from HackFest
The Experience of Java on Kubernetes with Microservices from HackFestThe Experience of Java on Kubernetes with Microservices from HackFest
The Experience of Java on Kubernetes with Microservices from HackFest
 
Aop clustering
Aop clusteringAop clustering
Aop clustering
 
Laurens Van Den Oever Xopus Presentation
Laurens Van Den Oever Xopus PresentationLaurens Van Den Oever Xopus Presentation
Laurens Van Den Oever Xopus Presentation
 
Introduction to apache_cassandra_for_developers-lhg
Introduction to apache_cassandra_for_developers-lhgIntroduction to apache_cassandra_for_developers-lhg
Introduction to apache_cassandra_for_developers-lhg
 
Nodejs Intro Part One
Nodejs Intro Part OneNodejs Intro Part One
Nodejs Intro Part One
 
Interoperable Web Services with JAX-WS and WSIT
Interoperable Web Services with JAX-WS and WSITInteroperable Web Services with JAX-WS and WSIT
Interoperable Web Services with JAX-WS and WSIT
 
Understanding Framework Architecture using Eclipse
Understanding Framework Architecture using EclipseUnderstanding Framework Architecture using Eclipse
Understanding Framework Architecture using Eclipse
 
B2 2006 tomcat_clusters
B2 2006 tomcat_clustersB2 2006 tomcat_clusters
B2 2006 tomcat_clusters
 
JEE5 New Features
JEE5 New FeaturesJEE5 New Features
JEE5 New Features
 
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScriptJavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
 
02 Hibernate Introduction
02 Hibernate Introduction02 Hibernate Introduction
02 Hibernate Introduction
 
Tomcat + other things
Tomcat + other thingsTomcat + other things
Tomcat + other things
 
College Project - Java Disassembler - Description
College Project - Java Disassembler - DescriptionCollege Project - Java Disassembler - Description
College Project - Java Disassembler - Description
 
Maven + Jsf + Richfaces + Jxl + Jdbc - Complete Code Example
Maven + Jsf + Richfaces + Jxl + Jdbc - Complete Code ExampleMaven + Jsf + Richfaces + Jxl + Jdbc - Complete Code Example
Maven + Jsf + Richfaces + Jxl + Jdbc - Complete Code Example
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

WebSphere Message Broker v6.x Overview - 2008-01-09

  • 1. WebSphere Message Broker v6.x Overview 2008-01-09 Zystems Gothenburg Mårten Gustafson Zystems
  • 2.
  • 3.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 12.
  • 13. WMBv6.x - Java Compute Node Overview
  • 14. WMBv6.x - Java Compute Node Overview In
  • 15. WMBv6.x - Java Compute Node Overview Failure
  • 16. WMBv6.x - Java Compute Node Overview Out
  • 17. WMBv6.x - Java Compute Node Overview Alternate
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24. WMBv6.x - Java Compute Node Accessing the tree using object API (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
  • 25. WMBv6.x - Java Compute Node Accessing the tree using object API assembly.getMessage();
  • 26. WMBv6.x - Java Compute Node Accessing the tree using object API MbElement xmlnsc = assembly.getMessage().getRootElement().getLastChild();
  • 27. WMBv6.x - Java Compute Node Accessing the tree using object API MbElement xmlnsc = assembly.getMessage().getRootElement().getLastChild(); MbElement chapter = xmlnsc.getFirstChild().getFirstChild();
  • 28. WMBv6.x - Java Compute Node Accessing the tree using object API public class SampleFlow_JavaCompute extends MbJavaComputeNode { public void evaluate(MbMessageAssembly assembly) throws MbException { MbElement xmlnsc = assembly.getMessage().getRootElement().getLastChild(); MbElement chapter = xmlnsc.getFirstChild().getFirstChild(); } }
  • 29. WMBv6.x - Java Compute Node MbElement object (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) ) MbElement chapter = xmlnsc.getFirstChild().getFirstChild(); chapter.getName(); // Returnerar ”chapter” chapter.getValue(); // Returnerar ”This is chapter one” chapter.getType(); // Returnerar MbElement.TYPE_NAME_VALUE chapter.getSpecificType(); // Returnerar 0x3000000 (XMLNSC-typkoden för element) chapter.setName(”foo”); chapter.setValue(”bar”); …
  • 30. WMBv6.x - Java Compute Node ESQL equivalents getMessage().getRootElement() InputRoot getMessage().getRootElement() .getLastChild() InputBody getLocalEnvironment().getRootElement() InputLocalEnvironment getGlobalEnvironment().getRootElement() Environment getExceptionList().getRootElement() InputExceptionList
  • 31.
  • 32. WMBv6.x - Java Compute Node Accessing the tree with XPath / <document> <chapter title=”Chapter One”> This is chapter one </chapter> </document> (0x01000000): XMLNSC = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
  • 33. WMBv6.x - Java Compute Node Accessing the tree with XPath /document < document > <chapter title=”Chapter One”> This is chapter one </chapter> </ document > (0x01000000):XMLNSC = ( (0x01000000): document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
  • 34. WMBv6.x - Java Compute Node Accessing the tree with XPath /document/chapter <document> < chapter title=”Chapter One”> This is chapter one </ chapter > </document> (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000): chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
  • 35. WMBv6.x - Java Compute Node Accessing the tree with XPath /document/chapter/@title <document> <chapter title=”Chapter One” > This is chapter one </chapter> </document> (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100): title = 'Chapter One' ) ) )
  • 36. WMBv6.x - Java Compute Node Accessing the tree with XPath /document/chapter[@title=’Chapter One’] <document> < chapter title=”Chapter One”> This is chapter one </ chapter > </document> (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000): chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
  • 37. WMBv6.x - Java Compute Node Accessing the tree with XPath /document/chapter[@title=’Chapter One’]/.. < document > <chapter title=”Chapter One”> This is chapter one </chapter> </ document > (0x01000000):XMLNSC = ( (0x01000000): document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = 'Chapter One' ) ) )
  • 38. WMBv6.x - Java Compute Node Accessing the tree with XPath string(/document/chapter/@title) <document> <chapter title=” Chapter One ”> This is chapter one </chapter> </document> (0x01000000):XMLNSC = ( (0x01000000):document = ( (0x03000000):chapter = 'This is chapter one' ( (0x03000100):title = ' Chapter One ' ) ) )
  • 39.
  • 40. WMBv6.x - Java Compute Node Modifying the tree with XPath Funktioner: set-value() set-local-name() set-namespace-uri()
  • 41. WMBv6.x - Java Compute Node Modifying the tree with XPath Broker specific XPath additions: ?myElement Selects myElement, created if not present ?$myElement Creates myElement as last child and selects it ?^myElement Creates myElement as first child and selects it ?>myElement Creates myElement as next sibling and selects it ?<myElement Creates myElement as previous sibling and selects it @ Used to select attributes, e.g; ?@myAttribute[set-value(’Attribute value’)]
  • 42. WMBv6.x - Java Compute Node Modifying the tree with XPath <document> <chapter title=”Chapter One”> This is chapter one </chapter> </document>
  • 43. WMBv6.x - Java Compute Node Modifying the tree with XPath <document> <chapter title=”Chapter One”> This is chapter one </chapter> </document> /document/?$chapter [set-value('This is chapter two')] [?@title[set-value('Chapter Two')]]
  • 44. WMBv6.x - Java Compute Node Modifying the tree with XPath <document> <chapter title=”Chapter One”> This is chapter one </chapter> </document> /document/?$chapter [set-value('This is chapter two')] [?@title[set-value('Chapter Two')]] <document> <chapter title=”Chapter One”> This is chapter one </chapter> <chapter title=”Chapter Two”> This is chapter two </chapter> </document>
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.