We experimented with ADF Mobile during Beta but decided to code one of our back-office apps using web standards instead, since it's primarily targeted at non-it specialists and has very little BI and should also be accessible via the browser.
For our Backend we have a standard ADF Stack, using an ADF BC, Data Controls and for the desktop webapp adf faces.
Since mobile will be non-adf track, we want to expose a RESTful service. So far so easy. Now CORS has some special requirements as can be read on html5rocks above.
I found this:
which describes how to enable CORS with Jax-rs.
But before I get to work I wondered if anybody has any experience with adf bc and restful services CORS enabled? Any boobytraps i should look out for?
Usually I wouldn't ask such questions but i learned that it is always better to know about any traps within the adf environment beforehand to save myself quite a few headaches.
if all you want is to expose ADF BC sources as REST services and if this is not a pressing project on a tight deadline: we are working on a release version of JDeveloper that exposes ADF BC as REST services as you do it today with ADF BC as SDO services. So this may save you some time and burden to go through.
For now disabling the same origin policy in my dev browser will suffice for dev purposes. Once the app gets wrapped in phoneGap it can be set up so phoneGap allows ajax calls to a different origin than localhost and therefore the CORS won't be needed anymore.
Still our backend solution is currently not the most elegant of ways so i will follow a good guide i found to implement a cleaner way.
I'd rather not wait until you release the wizard for it, since I only have december left to finish the app.