Categories

JAVA DATEBASE
Technology Network Community
Oracle Database
Fusion Middleware
Development Tools
Java
Desktop
Server & Storage Systems
Enterprise Management
Berkeley DB Family
Cloud Computing
Big Data
Business Intelligence
Architecture
Migration and Modernization
E-Business Suite
Siebel
PeopleSoft Enterprise
JD Edwards World
Industries
JD Edwards EnterpriseOne
User Productivity Kit Pro (UPK) and Tutor
Governance, Risk & Compliance (GRC)
Master Data Management (MDM)
Oracle CRM On Demand
On Demand: SaaS and Managed Applications
AutoVue Enterprise Visualization
Primavera
ATG
Agile PLM
Endeca Experience Management
Fusion Applications
Archived Forums

 



Tags

JDeveloper and ADF


Oracle's new ADF Faces CRUD tutorial...


I just finished going through this:  http://www.oracle.com/technology/obe/obe1013jdev/adffacescrud/adffacescrud.htm  I decided to test the concurrent update capability of the application and opened two customerForm pages to attempt to update the same record.  It came back with a pretty ugly error:  "Cannot execute commit() on Unit of Work more than once".    Also, to help people from pulling their hair out when the app crashes on the first run:  There is a typo in the tutorial that says to create a navigation rule from login.jspx to customerForm.jspx.  This is an error.  And in fact in the following picture of the instructions it's clear that the navigation should go from login.jspx to customer.jspx.

Robert - I've pinged the relevant team to have a look at this.

If they need more information they can reach me at rmch@telus.net

First the easy one.  Thanks for catching the typo and in the process saving many needed hair follicles.  As for the other issue, working with the same record on two different pages. The code we provide in the workspace for one of the managed beans is responsible for raising the error.   As you pointed out, the model.mb.ManageCustomers code uses a global Unit of Work for all users which explains the problem.  When the tutorial is released for the production version of the product we will incorporate your use case into the workspace.  Thanks for bringing this to my attention.

Glad to help.


Related Links

Programmatically set line graph time range
rGetting error while installing jdevstudio11123
Error : The value is not set for parameter number”
ADF 11.6 dynamic template changes
Domain as windows service
Default contents for a Template's facet
enter and execute query in ADF
ADF Mobile : List View Not getting refreshed
Getting Active UIComponenet in JSF programatically
Problem with rendering graph
reusable CRUD toolbar in the template page
Populate a transient attribute using java
Data controls have corrupted and keep showing no data controls
threeColumnTemplate.jspx TEMPLATE
convert string attrib to date
What happens to AM instances used by asynchronous threads