Jacopo Cappellato
2aab9001fc
Removed some trivial padding for info messages at startup that required the usage of an external (freemarker) util class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621820 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 15:03:25 +00:00
Jacopo Cappellato
e4e0710c18
Removed old and unused experimental class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621810 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 14:44:19 +00:00
Jacopo Cappellato
8e5c0eb4c1
A series of clean-ups and modifications to RequestHandler, EventFactory and View Factory to make then (mostly) immutable and eliminate some potential concurrency issues that could happen at initialization. This is just a first pass.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621804 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 14:26:54 +00:00
Jacopo Cappellato
6545122723
Removed unused/obsolete request/screen context fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621801 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 14:11:32 +00:00
Jacopo Cappellato
2b384efa04
Increased the length of the logger column from 20 to 30 characters.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621701 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 08:29:28 +00:00
Jacques Le Roux
a8df43a739
Yikes, forgot to save this before r1621688 commit
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621695 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 07:23:18 +00:00
Jacques Le Roux
425ce1c003
A patch from Nick Ho for "Add/Revise Traditional Chinese (zh-TW) translations in framework" https://issues.apache.org/jira/browse/OFBIZ-5737
...
more added/updated translations patch files for zh-TW locale
jleroux:
I added the label
<value xml:lang="zh_TW">服務執行程式拋出一個異常</value>
by hand
Only 1 label was not added:
<value xml:lang="zh_TW">代號</value>
Because of the fuzziness and presence of several possibilities
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621688 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 06:51:33 +00:00
Jacopo Cappellato
b20d598a67
Updated freemarker jar to the release candidate 01; waiting for the official release that should happen in mid October 2014.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621683 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 06:28:49 +00:00
Jacopo Cappellato
bde211be6d
Small optimization: two strings for sql statements are now stored as final strings in the SequenceBank object.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621599 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 15:41:52 +00:00
Adrian Crum
6c927d1112
Removed unnecessary public keywords from the LocalDispatcher interface.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621595 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 14:53:31 +00:00
Jacques Le Roux
eb44087cd8
Upgrades Derby from derby-10.10.2.0.jar to derby-10.11.1.1.jar, tests OK (4 not relevant failures on Windows, we will get confirmation with Buildbot, or revert)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621581 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 10:18:38 +00:00
Adrian Crum
fc272da011
Remove reference to DispatchContext from ModelServiceReader. The DispatchContext reference was only being used to get a Delegator reference, so we will use that instead.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621574 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 09:58:09 +00:00
Adrian Crum
1ac6edcab2
JavaDocs - no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621571 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 09:08:36 +00:00
Adrian Crum
8f080966d3
Remove Javolution from DispatchContext.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621475 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 15:56:59 +00:00
Adrian Crum
8bcc227a48
Some work on ServiceDispatcher.java:
...
1. Remove Javolution.
2. Replace DCL design pattern with ConcurrentHashMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621466 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 14:47:53 +00:00
Adrian Crum
fe096a298c
Fixing some GenericDelegator method signatures to match the Delegator interface.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621460 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 13:38:24 +00:00
Adrian Crum
1f41988f38
GenericDispatcherFactory.java FIXME comment.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621454 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 13:01:39 +00:00
Adrian Crum
f3e657b4d8
Move some GenericDelegator static methods to the Delegator interface.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621448 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 12:01:45 +00:00
Adrian Crum
0a76309879
Removed unnecessary public keywords from the Delegator interface.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621445 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 11:22:46 +00:00
Adrian Crum
f14616dbdb
Small code cleanup - use auto-boxing.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621442 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:53:25 +00:00
Adrian Crum
4e38c83fbc
Removed references to GenericDelegator from Delegator interface.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621439 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:19:38 +00:00
Jacopo Cappellato
892ed70e57
Completely refactored the SequenceUtil class:
...
* the class is now thread safe
* the class is now cleaner (no references to delegator etc...)
* replaced the collision detection algorithm with a simpler/reliable/efficient one based on: update with no changes (to get a lock) + select + update (to increase the last sequence id)
* removed ugly special code for "clusters" that is no more needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621438 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:17:07 +00:00
Adrian Crum
f4f119d057
Removed a deprecated constructor from GenericDelegator.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621437 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:12:00 +00:00
Adrian Crum
00d61094d0
Removed some references to GenericDelegator concrete class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621436 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:00:39 +00:00
Jacopo Cappellato
e5018c0031
Misc minor enhancements to the testSequenceValueItemWithConcurrentThreads unit test.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621425 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 08:32:14 +00:00
Adrian Crum
724ec8bb49
Fixed bugs in GenericDelegator.java - storeByCondition and removeByCondition did not update the cache, resulting in stale cache entries.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621413 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 02:49:22 +00:00
Adrian Crum
a71a1303fd
Change how Mini-language simple methods are cached: Cache individual methods instead of the entire file.
...
The new approach will load all methods from a file into the cache - the same as before, but now individual methods can expire if unused.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621388 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 21:04:00 +00:00
Adrian Crum
1810b389c7
Fix unintended change in my last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621386 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 20:58:25 +00:00
Adrian Crum
b4db076bb4
Unit test to demonstrate the bug I found in GenericDelegator.java. Test is commented out.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621385 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 20:56:08 +00:00
Jacopo Cappellato
38f5c17d0d
Fixed an issue affecting the thread safeness of the SequenceBank objects.
...
Added two unit tests to confirm the proper behavior of the SequenceUtil class; the second test fails without the fix committed with this revision.
Part of OFBIZ-2353.
This is just the first pass of my work to refactor the SequenceUtil.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621335 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 16:26:51 +00:00
Adrian Crum
9156158d93
Found a bug in GenericDelegator.java. No time to fix it now, so leaving a FIXME comment.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621122 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 11:36:39 +00:00
Jacopo Cappellato
582f00fdaf
Completed the work to make the ServerHitBin class thread safe.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621088 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 08:05:50 +00:00
Jacopo Cappellato
58f766c3b8
First part of the overhaul of ServerHitBin class: now ServerHitBin objects are thread-safe; however the ServerHitBin class isn't because of its static maps (more work is needed in order to fix this).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620907 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 15:10:12 +00:00
Jacopo Cappellato
bc57bb04a0
A series of cleanups and changes in preparation for some work to attempt to fix the thread safety of the ServerHitBin class.
...
Also fixed a bug affecting multi-tenant systems: ServerHitBin entries had an additional #tenant suffix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620831 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 09:23:55 +00:00
Jacopo Cappellato
41f9eb69d1
Small optimization to the ServerHitBin class: the bin length is now stored in a private final field.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620661 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 17:10:38 +00:00
Jacopo Cappellato
46dec2f2bd
Removed some not required code and made some field final; however the class is still thread unsafe.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620656 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 16:49:51 +00:00
Jacopo Cappellato
0574a1d798
Removed unused/unnecessary code from ServerHitBin; no functional changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620648 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 16:18:06 +00:00
Jacopo Cappellato
8390460a89
This was probably a bug due to copy-and-paste.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620633 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 15:20:59 +00:00
Jacopo Cappellato
6577a5b203
Moved the definition of public static maps at the top of the ServerHitBin class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620617 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 14:49:33 +00:00
Jacopo Cappellato
03a947f506
Made some methods in ServerHitBin private; moved the position of sevaral methods (no functional changes).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620616 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 14:47:33 +00:00
Jacopo Cappellato
27af86459c
First pass in the cleanup of the ServerHitBin class: made private a bunch of fields and methods, removed some unused fields and methods.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620611 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 14:37:15 +00:00
Jacopo Cappellato
7495a309d6
Small optimization: instead of calling the InetAddress.getLocalHost() method every time a ServerHitBin record is created, use the address provided by VisitHandler.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620571 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 11:14:15 +00:00
Jacopo Cappellato
5d2d659d39
Small optimization: instead of calling the InetAddress.getLocalHost() method every time a ServerHit is created, use the address provided by VisitHandler.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620567 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 11:02:05 +00:00
Jacopo Cappellato
c00fc92699
Merged framework-api-cleanup branch into trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620538 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 09:16:52 +00:00
Jacopo Cappellato
be81ed385d
Small optimization: instead of calling the InetAddress.getLocalHost() method every time a Visit is created, do it once when the class is loaded.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620525 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 08:02:29 +00:00
Adrian Crum
d81823384d
Small code cleanup in UtilCache.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620249 13f79535-47bb-0310-9956-ffa450edef68
2014-08-25 00:37:24 +00:00
Adrian Crum
227ba5f9db
Small improvement to UtilCache - allow a component to specify its own cache settings file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620244 13f79535-47bb-0310-9956-ffa450edef68
2014-08-25 00:02:45 +00:00
Adrian Crum
c63cb8c89e
Better encapsulation of entity engine multitenant setting.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620120 13f79535-47bb-0310-9956-ffa450edef68
2014-08-24 10:27:24 +00:00
Jacopo Cappellato
10aceb0cfe
Trivial fix to a log statement.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1619799 13f79535-47bb-0310-9956-ffa450edef68
2014-08-22 13:12:51 +00:00
Jacopo Cappellato
52d0dc1568
Upgraded Derby (embedded dbms) to the latest bug fix release 10.10.2.0
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1619319 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 09:16:40 +00:00