Edwin Biemond
JPA SQL and Fetching tuning ( EclipseLink )
When you use JPA in your project and your model project contains many entities with some Eager fetching relation attributes then you probably notice that EclipseLink can fire a lot of SQL queries on the database. This works ok & fast on Dev or Test but in production these queries can lead to big problems ( higher load and more data).
In our project we also use ADF DataControls, Web Services or
Categories: Development, Fusion Middleware
Easy way to access JPA with REST (JSON / XML)
With the release of EclipseLink 2.4, JPA persistence units can be accessed using REST with JSON or XML formatted messages. The 2.4 version supports JPA-RS which is a RESTful API for dealing with JPA. In this blogpost I will show you what is possible with JPA-RS, how easy it is and howto setup your own EclipseLink REST service. This is also possible when you want to expose database tables as SOAP
Categories: Development, Fusion Middleware
Using JSON-REST in ADF Mobile
In the current version of ADF Mobile the ADF DataControls ( URL and WS ) only supports SOAP and JSON-XML. But this does not mean we cannot use JSON. To handle JSON we can use the RestServiceAdapter and JSONBeanSerializationHelper classes. The RestServiceAdapter will handle the Rest Service and JSONBeanSerializationHelper helps us converting JSON to Java.
I made a little ADF Mobile demo based on
Categories: Development, Fusion Middleware
Generating an EJB SDO Service Interface for Oracle SOA Suite
In Oracle SOA Suite you can use the EJB adapter as a reference or service in your composite applications. The EJB adapter has a flexible binding integration, there are 3 ways for integrating the remote interface with your composite.
First you have the java interface way which I described here this follows the JAX-WS way. It means you need to use Calendar for your Java date types and leads to one
Categories: Development, Fusion Middleware
Return a fault from an Asynchronous Web Service
In an asynchronous web service we can't return a soap fault like a synchronous service but that does not mean you can't report back the fault to the calling asynchronous process.
basically you got three options.
Off course handle the fault in the error hospital and give back the response.
In the response message you can add a section ( a XSD choice with success and fault section) which can be
Categories: Development, Fusion Middleware