Posts tagged Eclipse

Implementing Web Services backed by a Database PL/SQL API using the Oracle Service Bus

This article accompanies an article on the Architecture section of Oracle Technology Network (OTN): Implementing the Enterprise Service Bus Pattern to Expose Database Backed Services. It provides a detailed description of the implementation of the ESB architecture design pattern – the same that is introduced in the article on OTN – using Oracle Service Bus. This OSB based implementation is in terms of structure, architecture design and functionality the replica of the pure Java based implementation described in the OTN-article. OSB adds productivity, agility and many run time administrative benefits over the pure Java solution.

The challenge

The challenge the organization – let us call them Stuff Inc. – is facing is simple and common: external parties have requested access to information through Web Services. This information is held in the enterprise (Oracle) database at Stuff Inc.

Image

The architecture team decides that the implementation of the service should be done according to the ESB architecture pattern.

Image

Their initial implementation is based on custom Java Classes, XSLT stylesheets and JDBC calls.

After some time having worked with this initial set up, they decide to introduce the Oracle Service Bus to replace much of their generic classes and ESB plumbing. This article tells the story of how the OSB is used to implement a simple Web Service based on a PL/SQL API in an Oracle Database, using two transformations and a JCA Database Adapter service. It demonstrates the essential steps in implementing any OSB service.

Read the rest of this entry »

Hands-on: Run-time datasource selection with JCA adapters in the Oracle Service Bus 11g

The Oracle JCA database adapter enables the communication between a web service and a database object, for instance a stored procedure. With the adapter configuration wizard, part of JDeveloper 11g, meta data is generated design time and used run-time to control the behaviour of the database adapter. In this hands-on we show how to set run-time the database  by overriding the design time selected database in the Oracle Service Bus 11g.
Read the rest of this entry »

Complex Event Processing – Java Magazine – Sources & References

This article contains the resources for an article on Complex Event Processing (using Oracle CEP) that is published in the March 2010 issue of the Dutch Java Magazine. This article describes the interaction between CEP and Java Applications, using examples of temperature sensors that are monitored (aggregating their readings and looking out for any broken sensors) and web shops that try to determine the most popular and the most efficient search terms as well as the search terms that are quite useless (as they never result in a transaction).

The article is in Dutch – it will be made available for download later on. Note that it is based on Chapter 19 in the upcoming Oracle SOA Suite 11g Handbook (Oracle Press, due Summer 2010).

Sources

Temperatuur Simulator en Temperatuur Sensor Processor: TemperatuurSensorenSimulatorEnProcessor

WebApplicatie Analyzer: WebWinkelAnalyse.zip

References & Resources

Download Oracle CEP en CEP Plugin for Eclipse:

Oracle CEP Server: http://www.oracle.com/technology/software/products/cep/index.html

Oracle CEP Plugin voor Eclipse: http://download.oracle.com/technology/software/cep-ide/11/

Installatie instructies:

Setting up your development environment:http://download.oracle.com/docs/cd/E15523_01/doc.1111/e14476/examples.htm#i1013710

Configuring Eclipse:http://download.oracle.com/docs/cd/E15523_01/doc.1111/e14301/ide_intro.htm#CHDDAADG

Creating CEP Servers in Eclipse:http://download.oracle.com/docs/cd/E15523_01/doc.1111/e14301/ide_serv.htm#CHDEJEHC

Documentatie voor CEP ontwikkelaars:

CEP Getting Started:http://download.oracle.com/docs/cd/E15523_01/doc.1111/e14476/toc.htm
Administrator’s Guide:http://download.oracle.com/docs/cd/E15523_01/doc.1111/e14300/toc.htm
IDE Developer’s Guide (Eclipse):http://download.oracle.com/docs/cd/E15523_01/doc.1111/e14301/toc.htm
CQL Language Reference:http://download.oracle.com/docs/cd/E15523_01/doc.1111/e12048/toc.htm
CEP Java API Reference:http://download.oracle.com/docs/cd/E15523_01/doc.1111/e14303/toc.htm

ASCII art as a DSL for unit testing

Complicated tree structures are being used a lot within my current project. Tree nodes have elements behind them. An element is unique, but there can be multiple tree nodes for a single element. Tree nodes have different drag and drop behavior based on flags on both the tree nodes and the elements. Also tree nodes can inherit children from other tree nodes etc. This blog will be about how to unit test these trees or more exactly how to setup a unit test so that it is fun to create and easy to maintain.
Read the rest of this entry »

Getting started with PrimeFaces on GlassFish v3

According to the PrimeFaces website, “PrimeFaces is an open source component suite for Java Server Faces featuring 70+ Ajax powered rich set of JSF components. Additional TouchFaces module features a UI kit for developing mobile web applications.“. Since it is an OpenSource JSF implementation that is very close to releasing JSF 2.0 compliant components, I figured it was time to try it out on GlassFish v3.
Read the rest of this entry »

Reverting tagged version back to trunk in subversion using Eclipse (Subclipse)

Yesterday I was given a new assignment. Of a certain system all development was stopped a month ago. The latest version, deployed and tested on the test environment, will not continue to be deployed on the production environment. The current version running on production is almost a year old. All new functionality developed after this version will be withdrawn, except for  two changes. The assignment is to implement only these two changes on the version current running in production.

 

All the Java code is nicely stored subversion. There is a tag of the version current running in production, as well as several tags of later versions which has not been deployed to production, only to the test environment. How are we going to this? Read the rest of this entry »