Thursday, August 13, 2009

JDev/ADF sample - Service-Enabled Entity Objects in Oracle Fusion 11g

  • Service-Enabled Entity Objects in Oracle Fusion 11g. In Oracle Fusion 11g, JDeveloper provides great support for Application Integration Architecture (AIA) through Service-Enabled Entity Objects. It allows to build Enterprise Composite Applications (ECA) in Oracle ADF. Developer now can implement Entity Objects directly based on View Objects from remote application, exposed through Web Service. This means we can expose and consume Web Services on Model level using ADF Business Components, this gives more centralized integration approach. Its especially important for AIA, when building ECA. For more info, please read Section 11.3 Accessing Remote Data Over the Service-Enabled Application Module from Oracle Fusion Developer Guide. In this post I will describe some tips and tricks from my experience.
    Download - SalaryUpdateRemote.zip, SalaryControlService2.zip
Spanish Summary:

Este post ofrece un ejemplo de una nueva caracteristica que ofrece Jdeveloper para permtir la creacion de entidades en base a ViewObjects que pertenecen a aplicaciones remotas, las cuales son accedidas por medio de WEB Services. De esta manera nuestras aplicaciones pueden implementar rĂ¡pidamente Enterprise Composite Applications (ECA) usando ADF.

2 comments:

Nelson said...

Hi Andrejus,

I have been testing service-enabled in entity objects in ADF.

One thing that I was expecting (even more after reading your nice post) and didn't worked was remote validation.
I have defined, in the Service-enabled entities, some validation rules.
If I test the application locally then validations are done as I change fields.
But if I use it remotely (by using service-enabled) then the validation only occurs when committing the transaction (an exception is raised), that is, i loose something useful.

Is this the expected behavior or should it be the same for both scenarios?

Another loss, I noticed, when using a remote service is transient fields which value is derived from an expression.

Regards,

Nelson

Andrejus Baranovskis said...

Hi Nelson,

There is no info in developer guide, so I suppose validation works only on Entity level in current release.

Regards,
Andrejus