Changes for page Building Concurrent Applications with WebObjects and Scala
Last modified by Ravi Mendis on 2012/02/11 08:28
From version 156.1
edited by Ravi Mendis
on 2010/12/17 05:21
on 2010/12/17 05:21
Change comment:
There is no comment for this version
To version 157.1
edited by Ravi Mendis
on 2010/09/09 22:43
on 2010/09/09 22:43
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -17,16 +17,14 @@ 17 17 18 18 Instead you can still use EOF but in a limited fashion - only to execute SQL. 19 19 20 -=== ==Using EOAccess to execute SQL =====20 +=== Using EOAccess to execute SQL === 21 21 22 22 Use Wonder API: [[ERXEOAccessUtilities.evaluateSQLWithEntityNamed()>>http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/extensions/eof/ERXEOAccessUtilities.html#evaluateSQLWithEntity(com.webobjects.eocontrol.EOEditingContext,%20com.webobjects.eoaccess.EOEntity,%20java.lang.String)]] 23 23 24 -==== =Caveats =====24 +==== Caveats ==== 25 25 26 26 If you're updating the state of EOs directly in the database using SQL from Scala Actors, you will subsequently need to refresh/refetch these EOs for the WebObjects application to see those changes. 27 27 28 -You must also unlock attributes you update via SQL in order to prevent EOF optimistic locking exceptions. 29 - 30 30 == EOF Alternatives == 31 31 32 32 You may also manipulate the database from outside the EOF stack. ... ... @@ -39,9 +39,6 @@ 39 39 40 40 You may update the database from Scala Actors using Squeryl instead of using EOF. The advantage here is that you may access the database concurrently avoiding the single-threaded EOF bottleneck in your application. However the same caveat applies - you will need to refresh EOs in the EOF stack for the WebObjects application to reflect the changes made by Squeryl. 41 41 42 - Togeneratea Squeryl schema from an EO modelsee[[WebObjects and Squeryl]]40 +=== References === 43 43 44 -=== External Links === 45 - 46 -[[WOWODC '10 Slides>>http://www.wocommunity.org/wowodc10/slides/Scala+WO.pdf]] 47 -[[Actors in Scala - Chapter 1. Concurrency Everywhere>>http://www.artima.com/samples/ActorsInScalaPrePrintCh1.pdf]] 42 +WOWODC '10 Slides - [[http://www.wocommunity.org/wowodc10/slides/Scala+WO.pdf]]