Java in Telecommunications – Order Management API in a Service Oriented Architecture

Posted by Gero Vermaas at around evening time: June 6, 2007

In the previous episodes in this series we started from a high level Java in the Telecommunications industry, zoomed in on Telemanagement Forum and the basics of OSS/J, described the basics of the Order Management API and now we'll discuss why the Order Management API fits perfectly in an Service Oriented Architecture (SOA). Why is this a relevant question? Virtually any organization does with order management in one way or another and many organizations are currently evaluating or realizing SOAs. Reason enough to check if the Order Management API fits in an SOA.

SOA is the most hyped TLA over the last years... Because SOA is so hyped and every vendor is trying to give a definition that's a perfect match for their product, we decided to not start with an SOA definition in our JavaOne and TMW presentations. Instead we took a more practical approach and compiled a list of concepts that are important for an SOA. We then checked if the Order Management API applied these concepts. The more concepts applied, the better the fit for use of the Order Management API in a SOA. An easy and efficient approach.

Below is the list of concepts we identified and per concept how this is applied in the Order Management API.

Service reuse Services exposed by the API can be reused for different types of Orders and are not bound to any specific business process.
Modular and autonomous <meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"><!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>The OM API is modular because it supports various types of Orders and each implementation can extend the types of Order supported. New order types can be plugged in without changing the API. From the larger architecture perspective an OM API implementation can be seen as a module with a clear task: Order Management. It does for example not cover inventory management or CRM.The OM API is autonomous because it does not depend on other APIs to be implemented. If you implement the OM API, you have a fully functional Order Management system which can work autonomously.</td> </tr> <tr> <td valign="top">Coarse grained</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>It is coarse grained becuase it allows for creation and starting of Orders by one call. There is no nitty-gritty interaction needed to create orders.</td> </tr> <tr> <td valign="top">Asynchronous</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>Asynchronous interactions are supported by the events that are available on all integration profiles (EJB, XML/JMS and web services) and of course for the XML/JMS profile all interactions are asynchronous.</td> </tr> <tr> <td valign="top">Stateless</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>While interacting with an OM implementation there is no stateful session being maintained (with the exception of execution large queries in which the result can be queried in batches).</td> </tr> <tr> <td valign="top">Composable</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>The services exposed by the API can be used in larger business flows.</td> </tr> <tr> <td valign="top">Described services</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>The services exposed by the API are well described via the XSDs (XML/JMS and webservice profiles), Javadoc (EJB profile).</td> </tr> <tr> <td valign="top">Ubiquitous domain language/model</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>All entities used in the API are based on the <a title="Telemanagement Shared Information and Data Model" href="http://www.tmforum.org/browse.aspx?catid=1684">TelemanagementForums Shared Information and Data model</a>. This provides the ubiquitous language.<br /> Please be aware that only generic elements of this model are used to ensure that the API is not bound to telecommunications specific systems only.</td> </tr> <tr> <td valign="top">Reliable messaging</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>Reliable messaging is supported through the JMS profile (and in future probably also for web service profile using the WS-Reliable Messaging standard).</td> </tr> <tr> <td valign="top">Loosely coupled</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>Loose coupling is provided through the XML/JMS and web services profile.</td> </tr> <tr> <td valign="top">XML Document based</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>Both the XML/JMS and web services profile use XML based message exchanges.</td> </tr> <tr> <td valign="top">Interoperable</td> <td><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>The web services profile support interoperability with other implementation technologies. Interoperability is also supported by the XML/JMS profile since many JMS providers provide APIs for non-Java clients.</td> </tr> </table> <p style="margin-bottom: 0in"> <p style="margin-bottom: 0in">These are all the concepts that apply to the Order Management API. The following concepts are not addressed by the Order Management API and I'll explain why:</p> <p style="margin-bottom: 0in"> <table width="665" cellspacing="0" cellpadding="0" border="0"> <tr valign="top"> <td style="width: 230px">Versioning</td> <td style="width: 435px">There is no standard way for versioning of (for example) orders without breaking already connected clients. For example, when you'd add an attribute to an Order on the server, clients that validate the XML against the XML Schema will break.There are some ways to deal with this, but the Order Management API (or the OSS/J APIs in general) dooes not define how this situation should be handled. Luckily the Order Management API does provide support for dynamic attributes and by using these the problem becomes less urgent, but it is something that should be addressed in the future.</td> </tr> <tr> <td valign="top"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>Policy Driven, Registry and discovery, Orchestration</td> <td valign="top"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>These concepts should not be defined by one single system in a SOA, but are the responsibility of the SOA eco-system. Order Management API implementations can perfectly participate in a policy driven SOA, or be registered and discovered, or be used by and orchestration engine, but, the API does and should not define how this is realized.</td> </tr> <tr> <td valign="top"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>Security</td> <td valign="top"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /><title /><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="AUTHOR" content="Gero Vermaas" /><meta name="CREATED" content="20070329;13524000" /><meta name="CHANGEDBY" content="Gero Vermaas" /><meta name="CHANGED" content="20070606;17002900" /><br /> <style type="text/css"> <!-- @page { size: 8.5in 11in; margin: 0.79in } TD P { margin-bottom: 0in } P { margin-bottom: 0.08in } --> </style> <p>The Order Management API itself does not specify how security should be addressed, but because it builds on the JavaEE and web service specifications, the security features of JavaEE and web services can be used to address security needs.</td> </tr> </table> <p style="margin-bottom: 0in"> <p style="margin-bottom: 0in">In summary the Order Management API conforms to most of the relevant SOA concepts. If you're in a situation where an Order Management system needs to be integrated into an SOA, consider the <a href="https://jsr264-public.dev.java.net/">Order Management API (JSR264)</a>. In case you're missing important SOA concepts, let me know, then I'll explain if and how the Order Management API applies these concepts.</p> <p style="margin-bottom: 0in"> <p style="margin-bottom: 0in"> <p style="margin-bottom: 0in">This entry roughly covered the second part of our JavaOne and TMW presentations. What's next... not sure yet, but I'll be back with more Java and telco related posts. Suggestions are welcome <img src='http://blog.xebia.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p> <div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=&url=http%3A%2F%2Fblog.xebia.com%2F2007%2F06%2F06%2Fjava-in-telecommunications-%25e2%2580%2593-order-management-api-in-a-service-oriented-architecture%2F&title=Java+in+Telecommunications+%E2%80%93+Order+Management+API+in+a+Service+Oriented+Architecture', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div> <p class="comments_link"><img src="http://blog.xebia.com/wp-content/themes/xebia/images/file.gif" title="file" alt="*" /> Filed under: <a href="http://blog.xebia.com/category/java/" title="View all posts in Java" rel="category tag">Java</a>, <a href="http://blog.xebia.com/category/soa/" title="View all posts in SOA" rel="category tag">SOA</a>, <a href="http://blog.xebia.com/category/telecommunications/" title="View all posts in Telecommunications" rel="category tag">Telecommunications</a><br/> </p> <!-- You can start editing here. --> <h3 id="comments">One Response to “Java in Telecommunications – Order Management API in a Service Oriented Architecture”</h3> <ol class="commentlist"> <li class="alt" id="comment-24013"> <span class="commentmeta"><cite><a href='http://blog.xebia.com/2007/11/16/order-management-in-converging-environments/' rel='external nofollow'>Xebia Blog</a></cite> Says: <br /> <small class="commentmetadata"><a href="#comment-24013" title="">November 16th, 2007 at 10:32 am</a> </small></span> <div class="commentbody"><p>[…] It integrates easily into a SOA, see previous blog posting. […]</p> </div> </li> </ol> <h3 id="respond">Leave a Reply</h3> <form action="http://blog.xebia.com/wp-comments-post.php" method="post" id="commentform"> <p><input type="text" name="author" id="author" value="" size="22" tabindex="1" /> <label for="author"><small>Name (required)</small></label></p> <p><input type="text" name="email" id="email" value="" size="22" tabindex="2" /> <label for="email"><small>Mail (will not be published) (required)</small></label></p> <p><input type="text" name="url" id="url" value="" size="22" tabindex="3" /> <label for="url"><small>Website</small></label></p> <!--<p><small><strong>XHTML:</strong> You can use these tags: </small></p>--> <p><textarea name="comment" id="comment" cols="50" rows="10" tabindex="4"></textarea></p> <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> <input type="hidden" name="comment_post_ID" value="235" /> </p> </form> </div> </div> </div> <!-- begin sidebar --> <div id="sidebar"> <h2>About</h2> <p> <a href="http://www.xebia.com/" title="Go to Xebia website.">Xebia</a> is a specialist consultancy firm devoted to enterprise Java architecture, middleware, portal and integration technology. </p> <h2>Articles</h2> <p><a href="/articles">Article page</a></p> <h2>Archives</h2> <ul> <li><a href='http://blog.xebia.com/2008/10/' title='October 2008'>October 2008</a></li> <li><a href='http://blog.xebia.com/2008/09/' title='September 2008'>September 2008</a></li> <li><a href='http://blog.xebia.com/2008/08/' title='August 2008'>August 2008</a></li> <li><a href='http://blog.xebia.com/2008/07/' title='July 2008'>July 2008</a></li> <li><a href='http://blog.xebia.com/2008/06/' title='June 2008'>June 2008</a></li> <li><a href='http://blog.xebia.com/2008/05/' title='May 2008'>May 2008</a></li> <li><a href='http://blog.xebia.com/2008/04/' title='April 2008'>April 2008</a></li> <li><a href='http://blog.xebia.com/2008/03/' title='March 2008'>March 2008</a></li> <li><a href='http://blog.xebia.com/2008/02/' title='February 2008'>February 2008</a></li> <li><a href='http://blog.xebia.com/2008/01/' title='January 2008'>January 2008</a></li> <li><a href='http://blog.xebia.com/2007/12/' title='December 2007'>December 2007</a></li> <li><a href='http://blog.xebia.com/2007/11/' title='November 2007'>November 2007</a></li> </ul> <li id="linkcat-47" class="linkcat"><h2>Xebia Sites</h2> <ul> <li><a href="http://www.xebia.com" rel="me">Xebia Corporate</a></li> <li><a href="http://www.xebia.fr" rel="me">Xebia France</a></li> <li><a href="http://www.xebiaindia.com" rel="me">Xebia India</a></li> </ul> </li> <h2>Categories</h2> <ul> <li class="cat-item cat-item-2"><a href="http://blog.xebia.com/category/java/" title="View all posts filed under Java">Java</a> (169) </li> <li class="cat-item cat-item-20"><a href="http://blog.xebia.com/category/agile/" title="View all posts filed under Agile">Agile</a> (80) </li> <li class="cat-item cat-item-5"><a href="http://blog.xebia.com/category/general/" title="View all posts filed under General">General</a> (39) </li> <li class="cat-item cat-item-29"><a href="http://blog.xebia.com/category/podcast/" title="View all posts filed under Podcast">Podcast</a> (28) </li> <li class="cat-item cat-item-18"><a href="http://blog.xebia.com/category/performance/" title="View all posts filed under Performance">Performance</a> (26) </li> <li class="cat-item cat-item-15"><a href="http://blog.xebia.com/category/testing/" title="View all posts filed under Testing">Testing</a> (22) </li> <li class="cat-item cat-item-13"><a href="http://blog.xebia.com/category/hibernate/" title="View all posts filed under Hibernate">Hibernate</a> (20) </li> <li class="cat-item cat-item-35"><a href="http://blog.xebia.com/category/scrum/" title="View all posts filed under Scrum">Scrum</a> (20) </li> <li class="cat-item cat-item-28"><a href="http://blog.xebia.com/category/project-management/" title="View all posts filed under Project Management">Project Management</a> (19) </li> <li class="cat-item cat-item-10"><a href="http://blog.xebia.com/category/spring/" title="View all posts filed under Spring">Spring</a> (18) </li> <li class="cat-item cat-item-23"><a href="http://blog.xebia.com/category/soa/" title="View all posts filed under SOA">SOA</a> (18) </li> <li class="cat-item cat-item-38"><a href="http://blog.xebia.com/category/architecture/" title="View all posts filed under Architecture">Architecture</a> (15) </li> <li class="cat-item cat-item-19"><a href="http://blog.xebia.com/category/maven/" title="View all posts filed under Maven">Maven</a> (13) </li> <li class="cat-item cat-item-37"><a href="http://blog.xebia.com/category/groovy/" title="View all posts filed under Groovy">Groovy</a> (11) </li> <li class="cat-item cat-item-14"><a href="http://blog.xebia.com/category/eclipse/" title="View all posts filed under Eclipse">Eclipse</a> (10) </li> <li class="cat-item cat-item-36"><a href="http://blog.xebia.com/category/ajax/" title="View all posts filed under Ajax">Ajax</a> (9) </li> <li class="cat-item cat-item-7"><a href="http://blog.xebia.com/category/articles/" title="View all posts filed under Articles">Articles</a> (8) </li> <li class="cat-item cat-item-30"><a href="http://blog.xebia.com/category/flex/" title="View all posts filed under Flex">Flex</a> (8) </li> <li class="cat-item cat-item-34"><a href="http://blog.xebia.com/category/grails/" title="View all posts filed under Grails">Grails</a> (8) </li> <li class="cat-item cat-item-42"><a href="http://blog.xebia.com/category/moving-to-india/" title="View all posts filed under Moving to India">Moving to India</a> (8) </li> </ul> <br/> <h2>Search</h2> <form id="searchform" method="get" action="http://blog.xebia.com/index.php"> <ul> <li><input type="text" name="s" size="18" value="search" onclick="resetText();" /></li> </ul> </form> <br/> <script type="text/javascript" src="http://embed.technorati.com/embed/2c8tevqr6.js"></script> </div> <!-- end sidebar --> <!-- begin footer --> </div> <div id="footer"> <a href="www.xebia.com">Xebia</a> page in 0.241 seconds. </div> </div> </body> </html>