Commit Graph
310 Commits
Author SHA1 Message Date
Adam Heath af0d38ddbc Turn on unchecked warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586857 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:09:55 +00:00
Adam Heath f1a750a4ce The last of the java 1.5 markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586856 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:08:17 +00:00
Adam Heath 65fee88f24 All error message lists and maps are now make use of java 1.5
features.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586855 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:06:00 +00:00
Adam Heath 77b1dae239 Another set of internal java 1.5 markup changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586854 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:04:22 +00:00
Adam Heath b12475b471 java 1.5 markup for internal code/methods/fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586853 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:02:48 +00:00
Adam Heath 2c038c9407 Another set of java 1.5 changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586852 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:00:41 +00:00
Adam Heath 8223e66e22 getLocalServiceMap/getGlobalServiceMap are generified, so modify the
internal callers to take advantage of that.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586851 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:57:48 +00:00
Adam Heath 6800519f7e ServiceDispatcher.runLog now has generics markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586850 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:55:49 +00:00
Adam Heath ef4d4cde1b Don't instantiate new java.lang.Number instances.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586849 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:53:56 +00:00
Adam Heath f107f75aed All things delegator/entity are now generified.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586848 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:52:32 +00:00
Adam Heath 9b0735ce53 Use ComponentConfig generics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586847 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:50:49 +00:00
Adam Heath cc9d9de222 Made UtilXml generics usage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586845 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:41:47 +00:00
Adam Heath 9342c80521 The internal serviceInvoker methods were returning map in all cases.
So, change the return type to match.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586839 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:11:39 +00:00
Adam Heath a751352f92 Don't use string addition.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586835 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:08:06 +00:00
Jacques Le Roux ae76370a04 Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl

Those links were useless before also

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
Adam Heath 8a1a1ecb52 allowCallbacks() was generified too early.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586660 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 03:34:50 +00:00
Adam Heath 6299562937 Fix up another call to ModelServiceReader.getModelServiceMap so that
it uses generics.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586590 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 19:45:08 +00:00
Adam Heath 8ce0dfc0ee Add generics markup to code that deals with UtilCache directly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586479 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:27:45 +00:00
Adam Heath aedfa46991 loadClass calls now have generics markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586478 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:26:16 +00:00
Adam Heath d8a8d6a922 Use generics markup from entity engine.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586477 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:24:56 +00:00
Adam Heath ffeda205f6 Java 1.5 markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586475 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:23:50 +00:00
Adam Heath a20d5e5b5c Make use of UtilXml's generics markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586473 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:22:10 +00:00
Adam Heath 4c9f4fc83b No longer return anything from checkAuth; instead, just modify the
passed in context.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586470 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:20:44 +00:00
Adam Heath 04a2050667 Don't use a single sendCallbacks method, with different value
arguments; it's not type-safe.  Instead, use 3 variants.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586468 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:18:53 +00:00
Adam Heath 04ed802604 Start of java 1.5 markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586467 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:17:07 +00:00
Adam Heath 90dc49d692 Collapse the nested collections in getServiceEventRules.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586464 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:12:06 +00:00
Adam Heath c6fc1e414e Append msg to the buffer in getMessage; got lost.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585878 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 06:01:03 +00:00
Adam Heath 37abcb458f Add varargs variants to framework/service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585857 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:14:01 +00:00
Adam Heath a87922cae1 Add helper method for checking/making service context maps.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585856 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:12:44 +00:00
Adam Heath f67fa00c43 Remove most uses of LinkedMap, and replace with LinkedHashMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585854 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:11:26 +00:00
Adam Heath 71b996b591 Switch from HashMap to FastMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585852 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:09:50 +00:00
Adam Heath f86b842da5 Use the varargs variants in the delegator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585851 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:08:11 +00:00
Adam Heath 2b638d4802 Use varargs for reflection access.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585850 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:06:43 +00:00
Adam Heath 503dcdcfb9 No need to use + when a StringBuilder already exists.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585806 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:59:02 +00:00
Adam Heath ffad050836 Use StringBuilder instead of StringBuffer in framework/service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585804 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:54:25 +00:00
Adam Heath 2ff7a8a575 Make use of the single-arg variants of makePK/makeValue, removeAll,
and clearCacheLine


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585803 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:46:57 +00:00
Adam Heath 5d2226ca82 Switch to local LRUMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585798 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:38:37 +00:00
Adam Heath 60df320b48 Use LinkedHashMap instead of LinkedMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585793 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:25:10 +00:00
Adam Heath 5048936900 Switch to collections class, from Vector/Hashtable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585788 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:18:34 +00:00
Adam Heath 70b72b96a9 Use System.currentTimeMillis() instead of new Date.getTime().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585784 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:13:02 +00:00
Adam Heath d9732f5d00 While tracking down memory usage(using java 1.6 and jhat), I noticed
a significant amount being referenced from the xml definition files.
Interning the strings that are found reduced this usage noticably.
Each string found in an xml file ends up sharing the original array
from the incoming buffer, so more than is nescessary is held in
memory.
Additionally, several strings(for example, partyId) are referenced
several times.  Interning them reduces the memory even further.

Closes https://issues.apache.org/jira/browse/OFBIZ-1291


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585761 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 00:02:59 +00:00
Adam Heath abd5c3b0d6 Used LinkedHashMap/LinkedHashSet, from collections 1.2, instead of
using local variants.  Deprecated OrderedMap/OrderedSet.  The filed
patch removed them, but that might break downstream code, so I'll
leave them in for now.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1324


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585679 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 20:37:37 +00:00
Adam Heath 80398ba47a Don't use string addition in getMessage(), use a StringBuilder
instead.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585567 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 16:41:32 +00:00
David E. Jones ca526c3957 Some improvements to how sequencing is done, including a new method in the GenericDelegator that does a sequence and create all in one, including a single retry with bank refresh on failure because of duplicate ID just in case two sequencers somehow get the same ID bank; in theory that is impossible but it has been observed in production and this is part of the 2 part solution to handle the problem more elegantly than having to restart the servers, and to try to find out just how two sequencers got the same bank of values; this includes changing a number of key code blocks to use the combined sequence and create for retry, and a little bit of code cleanup too
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582142 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 09:02:49 +00:00
David E. Jones c5ff0fc828 Added result-to-result feature for seca rules, based on patch from Adrian Crum but changed to be more consistent with context-to-result, AND to only copy over values that are valid for the service that triggered the eca; Jira #OFBIZ-1237
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579424 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 01:32:37 +00:00
Andrew Zeneski b330fea32e fixed bug where runtime data was not being deleted
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578274 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 21:03:19 +00:00
Andrew Zeneski ebfbea1b9a uses nested trys
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578273 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 21:03:03 +00:00
Andrew Zeneski 1ef6a9f731 changed where semaphores are released (in finally block to make sure it is run even in the case of an exception) implemented per-service configurable settings for wait/sleep (sleep in milliseconds; wait in seconds) semaphore-wait-seconds="300" (default) is 5 minutes. The max time a service will wait before failing to run.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577141 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 04:04:08 +00:00
David E. Jones f63513b53f Refactored to use a loop instead of recursion for the retries so the stack doesn't get so huge; also added notes about some things that need to be done on this semaphore stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577139 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 03:06:55 +00:00
Andrew Zeneski b1478118c4 changed so the purgeOldJobs service can only run one at a time to prevent locking on the job sandbox table; when it is running on multiple application servers at the same time
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577097 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 22:56:19 +00:00