Introduction to Oracle Event Processing – Chapters 6-9

Tags

, , , ,

Continuing to look at the Introduction to Oracle Event Processing book, by chapter 6 the books has covered the key principles and ideas for building a CEP solution, and we’re now need to consider deployment. But refreshingly the book also takes on a number of non functional requirement (NFR) areas such as the issue of monitoring, a subject area that many technical books tend to ignore. The attention to monitoring is admittedly driven by the fact that Event Processing is inherently sensitive to timing and system loading etc and will obviously have a direct impact on what outcomes are produced.

As the book takes you through aspects of building a simple solution – the CEP equivalent to writing ‘Hello World’ it would be great if the authors could make the implementation available for download, so you could go straight into deployment.

Chapter 7, then takes us into other performance improving aspects such as how to get event enrichment data, and importantly exploit caching to drive the performance. If you’re familiar with Coherence then this aspect should be pretty easy to get to grips with, and the book actually focuses on the OEP aspects of the setup. If you don’t know Coherence, you’d do well to look at additional sources of information.

Chapter 9 is a natural evolution of 8 as further develops performance thinking with clustering and with it High Availability dimensions.

Before looking at High Availability (HA) and scaling the book drives back into more advanced scenarios with CQL by introducing Java into the syntax.

Introduction to Oracle Event Processing – Chapters 3, 4 & 5

Tags

, , , , ,

Continuing with the review of the Packt book Introduction to Oracle Event Processing (OEP) we find chapters 3,4 and 5 take a far more indepth dive into the product, what it can do and how to implement the features with examples of why you might want to use different features and capabilities.   Chapter 5 focuses specifically on the Complex Query Language (CQL) syntax which is a SQL based expression language for querying events and describing expressions with an obvious emphasis on time series data.

As the book isn’t a blow by blow, screen shoot by screen guide through creating an example application using OEP you are going to need to apply a bit of effort now in utilising the ideas and capabilities being explained here.

A very well executed set of chapters.

Introduction to Oracle Event Processing – Chapter 2

Tags

, , , , ,

Chapter 2 of the Getting Started with Oracle Event Processing book is really two smaller chapters introducing the platform in terms of its history, building blocks and the challenges that have had to be solved in the creation of an event processing platform (such as managing the potential impact of the garbage collector when handling very high event rates).

Not many books go into the underlying details of how a product is created, but in doing so the authors have provided a lot insight into the art of the possible and avenues for developing further understanding.

The second half of the chapter walks through the use of a demo scenario. Rather than providing details from standard Oracle manuals in a click by click type of guide, the book uses the example to show a flavour of breadth and depth of the tool.

This chapter doesn’t try to describe the installation process, but points you to the Oracle documentation and explains what it should guide you through.

Even if you don’t intend to exercise the demo, it is well worth reading the chapter to understand the construction and breadth of the tool. Based on what has been shown here, I believe some of the Oracle products such as AIA tooling could learn from it.

WordPress and other blogging apps

Tags

,

It’s great having a little blogging and tweeting apps on a phone as it gives a great opportunities to exploit those odd moments to capture and idea and post them.

The tools can use predictive text and correct your keying and spelling errors. Bit why can’t they help by suggesting/predicting links for you???? Trying to jump in and out of editing on an iPhone to grab links is just a pain!

I inevitably end up fixing blog entries from a desktop sooner or later to add appropriate links etc.

Over to you app authors time to impress.

Pair Programming and Introversion

Tags

, ,

In the process of reading Susan Cain’s book Quiet I got to wondering about common traits of developers and the idea of pair programming.

Pair programming advocates the idea of 2 developers working on a single piece of code will produce better quality code with a lower big count on the basis that both developers catch each others mistakes and both will gravitate to the best ideas. To achieve this does need the subjection of egos.

Now, if the stereotype of developers being typically introverted individuals which I think holds water (certainly from my experience) then drawing from what Susan Cain has written about this development approach is going to be fatiguing and not sit easily with the personality of your average developer.

This would mean for pair programming to be effective then those involved must. Be able to bring Free Traits to bare (more in a moment). But those best able to bring such practices to effect must be truly motivated developers. Ironically I believe that those highly motivated and focused developers are the best out there. So how does this pact the value of such an. Approach?

As for Free Trait Theory this takes the view that when pursuing core values individuals can project (if not manifest) traits such as extroverted behaviour, albeit find it fatiguing.

All of this says to me is, don’t expect developers to live and breath the idea of pairing; and even expect reluctance (on the basis that not all developers see. Coding or the value of coding as a personal goal in life). But bursts of this approach may deliver value when working on a more challenging area of code or algorithm.

Chapter 1 of introduction to Event Processing

Tags

, , , , ,

Although the book’s introduction says that its target audience is developers and architects the first chapter is a very good introduction to the ideas and goals of Complex Event Processing (CEP) for anyone in the IT industry. The chapter explains the ideas and goals of CEP  illustrating them with easy to grasp real examples.

Possibly one if the best starts to a Packt book I’ve seen.

If your going to get stuck in with the more practical pieces then I’d start downloading the tools from Oracle as early as possible as there is several GBs of software. You might also consider cheating by downloading a prebuilt VirtualBox with the majority of the software already installed and configured.

Getting Started with Oracle Event Processing – book review

Tags

, , ,

I shall be reviewing the new Packt book on Getting Started with Oracle Event Processing (details at http://bit.ly/ZTpzCh). The full review will be posted here, but will probably tweet as I go (www.twitter.com/mp3monster). Given one of the authors is Alexandre Alves I have high hopes for the book given what I found when reviewing of his OSGi In Depth book he wrote for Manning.

20130528-170923.jpg

Buying CDs with MP3 downloads

Tags

Over the last few years it has become a common thing for artists (or more precisely record labels on behalf of artists) to offer the advance purchase of CDs with the offer of download of the album in an electronic format (MP3 or FLAC typically).

I have to admit I’ve plumped for the additional cost of this option a couple of time recently, falling for e impatient view that the CD will take time in the post and the download on release date will allow me to hear the album at the 1st opportunity.

But present purchases have just shown me to be a bit of a mug, as the CD has arrived a day or two before the official release date, allowing me to rip the album for myself and loading it onto a USB stick so I can hear it in the car 1st thing Monday morning on my way to work.

So, what is the point of the additional premium? The CD arrives early, it is faster for me to rip the CD myself (in fact modern Blu Ray drives can spin the CD so fast that it takes longer to login to a website for the download than the rip process).

So why not allow advance order purchases to download the MP3 version immediately? The risk of leak – well better to allow the MP3 to be downloaded rather than ripped as it means you can trace the leak by ‘water marking’ the download to a transaction. It can’t be the chat scoring because you can count e physical media (unless the real value is for the record company to count such purchases as 2 copies of the album in the sales stats).

I think going forward I’m going to stick to just physical plus personal ripping.

Java EE With Netbeans Review

Tags

I recently completed a review for Packt Publishing of some course videos on Netbeans 7 with JavaEE, which concentrated particularly at JSF and related technologies such as JPQL. The videos are a natural follow on from the author’s book Java EE 6 Development With NetBeans 7.

I have to say that David Heffelfinger’s videos did a good job of walking through the basics of the technologies and would suggest that they’re worth checking out if you want to quickly get your head around this area of Java.

For more on this kind of thing checkout David’s blog – http://www.ensode.net/roller/dheffelfinger/

Only catch – I don’t know when the videos will get published officially at the moment.

Update:videos likely to be published mid June

JDeveloper & Copying Formatted Text

Tags

, , ,

 

I’ve started to use Oracle’s JDeveloper more and more, not just because I’m working with the AIA (Application Integration Architecture) Foundation Pack but also as an XSD Editor for designing interface definitions.

I’ve spent sometime trying to find a solution that can compete with XML Spy but without the huge price tag.  I’ve tried OxygenXML, Eclipse, Visual Studio among others and concluded that its very good for a free tool. Perhaps still not as good as XMLSpy – but thats the difference between an IDE and a dedicated XSD/XML tool.

image JDeveloper design view- with a lot of similarities to XMLSpy in presentation

You might think, that to use JDeveloper I have to commit to using the Oracle technology stack (and the big price tag that comes with), but this isn’t the case.

Not to mention Oracle have very much caught up with the Open Source World of Maven, there is a growing library of plugins both Official and Open Source covering a plethora of things from JUnit integration to Python & Groovy language  syntaxes.

One of the nice things with XMLSpy and VisualStudio is the ability to copy into other documents the pretty formatted text (colour coded syntax etc) – making schemas or code fragments easier to look at in a document.  However out of the box JDeveloper doesn’t do this out of the box. But it would seem that this capability wasn’t just wanted by me, so an extension has been written Chris Hughes that solves this problem called jdev-copyashtml.


<?xmlversion="1.0"encoding="ISO-8859-1"?><xs:schemaxmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:elementname="shiporder"><xs:complexType><xs:sequence><xs:elementname="orderperson"type="xs:string"/><xs:elementname="shipto"><xs:complexType><xs:sequence><xs:elementname="name"type="xs:string"/><xs:elementname="address"type="xs:string"/><xs:elementname="city"type="xs:string"/><xs:elementname="country"type="xs:string"/></xs:sequence></xs:complexType></xs:element><xs:elementname="item"maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:elementname="title"type="xs:string"/><xs:elementname="note"type="xs:string"minOccurs="0"/><xs:elementname="quantity"type="xs:positiveInteger"/><xs:elementname="price"type="xs:decimal"/></xs:sequence></xs:complexType></xs:element></xs:sequence><xs:attributename="orderid"type="xs:string"use="required"/></xs:complexType></xs:element></xs:schema>

 

Once downloaded go to Help –> Check for Updates and step through so you can then choose your download – as shown.

image

Once installed you’ll need to restart JDeveloper.  To then configure to plugin to work as you want go to Tools –> Preferences… Where you should be able to find Copy As HTML/RTF in the left menu tree to get the options to configure the plugin behaviour.

image

If you’re going from Windows application to another then you want the Rich Text Format setting.  After that rather than Ctrl+C its Ctrl+H to copy and carry the pretty formatting/colours etc.