Jacques Le Roux
f6137e5005
No functional changes, only blocks moves and formatting
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617971 13f79535-47bb-0310-9956-ffa450edef68
2014-08-14 15:18:50 +00:00
Adrian Crum
b6c4dd5315
Small fixup for my last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617938 13f79535-47bb-0310-9956-ffa450edef68
2014-08-14 13:36:33 +00:00
Adrian Crum
4462994828
Fixed a bug in Start.java reported by Justen Walker ( https://issues.apache.org/jira/browse/OFBIZ-5710 ):
...
The singleton pattern was broken by adding Commons Daemon support code to the class - resulting in multiple instances when using Commons Daemon.
I extracted the Commons Daemon code to a separate class - which delegates to the singleton Start instance. Users of Commons Daemon will need to update their scripts/etc to point to the new class instead of Start.
I also added a comment describing the design of Start.java, so hopefully this will help others maintain the code without breaking it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617936 13f79535-47bb-0310-9956-ffa450edef68
2014-08-14 13:27:39 +00:00
Adam Heath
9b66b02303
Remove creation of any delegator instance when a catalina container
...
starts; nothing was ever using the saved delegator instance anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617818 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:39:00 +00:00
Adam Heath
e4bbbc71cc
We now have a real delegator container, that can be used to auto-start
...
many delegator instances. Just specify the ones to load, separated by
commas or spaces.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617817 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:54 +00:00
Adam Heath
dbe9fd76da
Now that the thread-pool startup dead-locks are fixed, we can configure
...
the entirety of the delegator in a thread pool. This will become a big
win very shortly, when multiple delegators are created at startup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617816 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:48 +00:00
Adam Heath
65d560bc14
Use the BATCH thread pool for the helper initialization.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617815 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:41 +00:00
Adam Heath
19fdeb617a
Initialize the DistributedCacheClear handler in a thread pool.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617814 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:36 +00:00
Adam Heath
cc0d265276
Initialize the eca handler in asycnhronously. This requires the previous
...
patch, that initializes the eca handlers DispatchContext asynchronously.
With it, when the eca attempts to initialize, the DelegatorContext will
also initialize at the same time; this will end up calling back into the
same delegator, and a deadlock will occur.
When both are asynchronous, then the eca initialization will return
quickly, and upon first access, the DispatchContext future will be
waited for.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617813 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:30 +00:00
Adam Heath
647513604b
Initialize the eca handler's DispatchContext asynchronously. This means
...
the eca handler will be available sooner, but might briefly pause the
first time it is used, while it waits for the DispatchContext to finish
initializing.
This patch is needed to prevent a deadlock when the eca handler itself
is initialized asynchronously in the delegator; see the next commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617812 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:24 +00:00
Adam Heath
58c866dfbd
Add a simple Future implementation, that returns a constant,
...
non-changing value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617811 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:18 +00:00
Adam Heath
61a8dabc7e
Add a GLOBAL_BATCH thread pool. This is different than GLOBAL_EXECUTOR,
...
in that:
* BATCH does not block when all the coreThreads are busy, as would
happen with EXECUTOR. When all coreThreads are busy, new threads will
be spawned.
* Scheduled jobs can *not* be submitted.
You can simulate the first problem, by modifying ExecutionPool, and
force-setting the threadCount to 1. Then, submit something to the pool,
that will then itself submit more items into the pool. Dead-lock will
occur.
BATCH should be used when it might be posslbe that more items could be
submitted by code you are calling.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617810 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:12 +00:00
Adam Heath
2aaa234042
Add a global fork-join thread pool, and switch a bunch of stuff over to
...
it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617809 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:01 +00:00
Adam Heath
111f90c057
Add a helper method for auto adjusting the threadCount.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617808 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:37:49 +00:00
Jacques Le Roux
5b71d410db
Really better French label
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617498 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 14:53:43 +00:00
Jacques Le Roux
bf902d9ff2
Better French label
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617496 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 14:52:23 +00:00
Jacopo Cappellato
951b7ccb56
Fix for a typo and an important optimization: enabled cache lookup for the retrieval of SystemProperty records.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617480 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 14:12:30 +00:00
Jacopo Cappellato
fb20420e20
Some optimization for service event handler to prevent unnecessary operations at every service invocation.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617473 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 13:38:55 +00:00
Jacques Le Roux
3ec515d897
A patch from Pierre Smits for "ListEmplPositionFulfillments links to wrong profile of employee" at https://issues.apache.org/jira/browse/OFBIZ-5708
...
Instead it should link to EmployeeProfile of the employee.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617229 13f79535-47bb-0310-9956-ffa450edef68
2014-08-11 09:10:42 +00:00
Jacques Le Roux
0968b7bd35
Fixes bad indentation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616954 13f79535-47bb-0310-9956-ffa450edef68
2014-08-09 13:56:36 +00:00
Jacques Le Roux
03aa3e8480
The updateApprovedOrderItems defines the itemAttributesMap, itemEstimatedDeliveryDateMap and itemEstimatedShipDateMap IN parameters as optional. But if you use this service (updateOrderItems) out of an event context then you cross NPEs. This is because in the context of an event the missing parameters are initialised as empty. This hid the issue so far because updateApprovedOrderItems is only used once, called by an event.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616940 13f79535-47bb-0310-9956-ffa450edef68
2014-08-09 13:05:05 +00:00
Scott Gray
e35bb8ec7e
Replace FastMap with HashMap and remove imports
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616931 13f79535-47bb-0310-9956-ffa450edef68
2014-08-09 09:54:01 +00:00
Scott Gray
ba907be142
Replace FastList with ArrayList
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616928 13f79535-47bb-0310-9956-ffa450edef68
2014-08-09 09:43:15 +00:00
Scott Gray
545851bebb
Replace the ServiceXaWrapper with a simpler Synchronization implementation. Helps pave the way for use of alternative transaction management libraries that don't work well with our XA wrapper implementations. Still DebugXaResource to go.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616925 13f79535-47bb-0310-9956-ffa450edef68
2014-08-09 09:00:39 +00:00
Jacopo Cappellato
3583bfe285
Misc minor cleanups to log messages.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616751 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 13:19:09 +00:00
Jacopo Cappellato
066d782950
Misc minor cleanups to log messages.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616744 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 13:16:46 +00:00
Jacopo Cappellato
202ed2dee5
Some minor cleanups to the logs produced by catalina at startup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616741 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 13:08:44 +00:00
Jacopo Cappellato
5477810830
Fix for the wrong jar committed by Jacques in rev. 1615296; this one is actually from the Tomcat extras distribution, not from the standard distribution as the former was.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616684 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 07:49:45 +00:00
Jacopo Cappellato
2ccff3b51e
Improved the way we start Tomcat embedded to remove a series of warnings at startup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616514 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 15:51:43 +00:00
Jacopo Cappellato
80e2f28c1c
Removed some code that was checking, in a rather weak way, the Java version at startup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616492 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 14:17:41 +00:00
Jacopo Cappellato
b399cbb143
Moved to Attic ( https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Attic ) the incomplete, unmaintained and unused support for WFS. This code had also a series of issues: low level calls to Freemarker components that may change with newer versions of Freemarker, references to hotwaxmedia, wrong location for ftl files.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616446 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 09:12:43 +00:00
Jacopo Cappellato
37d586c160
Converted some startup messages from "important" to "info".
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616431 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 07:52:23 +00:00
Jacopo Cappellato
c9d836ab5e
Corrected the usage example.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616424 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 07:27:25 +00:00
Jacques Le Roux
59119195eb
A patch from Leon for "Wrong timeFormat of datetimepicker causes hours represented as 12 not 24" https://issues.apache.org/jira/browse/OFBIZ-5702
...
Latest datetimepicker add-on uses "timeFormat" option to detect am/pm, lowercase "h" represents 12hr am/pm, uppercase "H" represents 24 hr. (see https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/547 ). The datetime input widget that relying on this add-on does not work correctly: it's in 12-hours format not 24 hours.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616272 13f79535-47bb-0310-9956-ffa450edef68
2014-08-06 16:39:30 +00:00
Jacques Le Roux
efa20e8cef
Update Tomcat from 7.0.54 to 7.0.55
...
Forgot LICENSE and .classpath
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1615297 13f79535-47bb-0310-9956-ffa450edef68
2014-08-02 11:20:09 +00:00
Jacques Le Roux
6620856cac
Update Tomcat from 7.0.54 to 7.0.55
...
No changes in framework\base\lib\j2eespecs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1615296 13f79535-47bb-0310-9956-ffa450edef68
2014-08-02 11:18:26 +00:00
Jacques Le Roux
6b819dc71b
Correct indentation, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614736 13f79535-47bb-0310-9956-ffa450edef68
2014-07-30 18:42:46 +00:00
Jacques Le Roux
341821ecd6
Better solution for the Party Tax Id, thanks to Adrian and Pierre comments
...
Now the Party Tax Id is shown under the other parties information
No needs for a differentiation between vendor and client
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614734 13f79535-47bb-0310-9956-ffa450edef68
2014-07-30 18:38:41 +00:00
Jacques Le Roux
9d43b28b60
Fixed a typo
...
Adds Vendor in English label of PartyTaxId to clarify
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614608 13f79535-47bb-0310-9956-ffa450edef68
2014-07-30 10:38:42 +00:00
Jacques Le Roux
1fa4852b76
Better formatting
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614592 13f79535-47bb-0310-9956-ffa450edef68
2014-07-30 09:17:17 +00:00
Jacques Le Roux
c8f1640aeb
This is useful when you have more lines in the right header column. It then prevents an override from the header left column
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614590 13f79535-47bb-0310-9956-ffa450edef68
2014-07-30 09:07:57 +00:00
Jacques Le Roux
1436c1a16e
In accounting, replaces billingParty by billToParty which is more clear (actually billingParty was a wrong name)
...
Introduces a billToPartyTaxId, this is now mandatory in at least France for VAT (http://vosdroits.service-public.fr/professionnels-entreprises/F31808.xhtml ), and might exist in other countries as well
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614562 13f79535-47bb-0310-9956-ffa450edef68
2014-07-30 06:59:17 +00:00
Jacques Le Roux
d620c66a75
Fixes a possible ArithmeticException: Division undefined
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614556 13f79535-47bb-0310-9956-ffa450edef68
2014-07-30 06:40:23 +00:00
Jacques Le Roux
d37521bb59
Introduces few VAT data, to be used later (coming)
...
Introduces PartyClientTaxId which is mandatory in some country (France for instance: http://vosdroits.service-public.fr/professionnels-entreprises/F31808.xhtml )
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614555 13f79535-47bb-0310-9956-ffa450edef68
2014-07-30 06:18:42 +00:00
Jacques Le Roux
960e986646
Improves some French accounting labels
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614550 13f79535-47bb-0310-9956-ffa450edef68
2014-07-30 06:00:30 +00:00
Jacques Le Roux
7578beb570
Better label
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614428 13f79535-47bb-0310-9956-ffa450edef68
2014-07-29 17:29:09 +00:00
Jacques Le Roux
aecc972c1d
A patch from Pierre Smits for "AddOtherPartyRelationship allows user to select roles the selected party doesn't have" https://issues.apache.org/jira/browse/OFBIZ-5694
...
When a relationship must be set for a party to another party, the role selector for the party shows all roles available in the data set.
This, however, must be limitied to the roles the party has.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614366 13f79535-47bb-0310-9956-ffa450edef68
2014-07-29 14:37:48 +00:00
Jacques Le Roux
76936ea966
A patch from Julien Nicolas for "modification on daemon script for debian" https://issues.apache.org/jira/browse/OFBIZ-5693
...
The file rc.ofbiz.for.debian generate some error because of the bash type contained in the first line.
!/bin/sh should be !/bin/bash
To add it in the startup process, it must contained a specific header :
### BEGIN INIT INFO
# Provides: Apache-OFBiz ERP software
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Apache-OFBiz
# Description: Apache-OFBiz ERP Software
### END INIT INFO
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614355 13f79535-47bb-0310-9956-ffa450edef68
2014-07-29 14:03:38 +00:00
Sharan Foga
5be705f70b
Applied OFBIZ-5684 (OFBIZ-2219) updates to manufacturing help screens
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614280 13f79535-47bb-0310-9956-ffa450edef68
2014-07-29 08:03:53 +00:00
Jacopo Cappellato
ac30f4f09e
Fixed the event of an eca definition from in-validate to invoke; this fixes a service validation exception. Part of OFBIZ-4363
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614025 13f79535-47bb-0310-9956-ffa450edef68
2014-07-28 13:18:40 +00:00