Adrian Crum
7cfd3f4a3d
Some convenience methods for the new models - based on a patch from Christoph Neuroth with modifications by me.
...
https://issues.apache.org/jira/browse/OFBIZ-5204
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1490002 13f79535-47bb-0310-9956-ffa450edef68
2013-06-05 18:54:13 +00:00
Adrian Crum
d1723ce249
JobPoller improvement - make it a ServiceConfigListener so service config file changes can be made at run-time. One <thread-pool> attribute doesn't get updated: "jobs" (the queue size) - which would require creating a new ThreadPoolExecutor instance, and that would require a lot of complicated synchronization code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488736 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 16:25:09 +00:00
Adrian Crum
c7eb2f2622
ServiceConfigUtil improvement - notify listeners when the config file is reloaded.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488727 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 15:03:41 +00:00
Adrian Crum
43751eec49
Small improvement to the new service config models: move thread pool constants to the ThreadPool model, and initialize instances from the constant values.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488715 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 14:25:25 +00:00
Adrian Crum
528059c90d
Improved attribute value validation in ThreadPool.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488695 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 12:19:58 +00:00
Adrian Crum
032960984a
Bug fix in new ServiceConfigUtil code - do not use cached DOM object when creating models.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488694 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 12:19:02 +00:00
Adrian Crum
86aef5bf36
Converted JobPoller.java over to the new service config design.
...
https://issues.apache.org/jira/browse/OFBIZ-5204
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488671 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 11:32:30 +00:00
Adrian Crum
38a3319174
Bug fix for NotificationGroup.java - if the <notification-group> element name attribute is being used as the key to a Map, then we should make it required.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488646 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 06:41:54 +00:00
Adrian Crum
59633013b4
Clean up and format service-config.xsd so it is easier to read and understand.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488645 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 06:37:11 +00:00
Adrian Crum
fac18de056
New models for the serviceengine.xml file. They are not used yet - the ServiceConfigUtil class needs to be updated to use them, as well as other code that uses ServiceConfigUtil. The new models were contributed by Christoph Neuroth and were refactored by me.
...
https://issues.apache.org/jira/browse/OFBIZ-5204
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488643 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 05:15:57 +00:00
Adam Heath
952e43cdb5
FEATURE: When calling services from an incoming http requests, allow for a different request and session attribute name to be specified.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482508 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:31 +00:00
Adam Heath
805dce79b8
FIX: I have no idea why an explicit <mkdir> is neeeded for build/rmi; in
...
all cases I could find, it was already auto-created. It's only the
buildbot that is broken.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482125 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:25 +00:00
Adam Heath
69671f1fe7
FEATURE: Instead of placing the rmi jar into build/lib, but with a .raj
...
extension, place it into build/rmi, and let it keep the correct .jar
extension. This means you don't need to rename the jar when you copy it
to the remote java virtual machine, but just have to move it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482060 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:11 +00:00
Jacques Le Roux
6ed551a5de
A patch from Shi Jinghai for "Remove warning message "No converter found, converting from org.ofbiz.service.mail.MimeMessageWrapper to java.lang.String" https://issues.apache.org/jira/browse/OFBIZ-5180
...
When sending emails, there are warning messages in log:
2012-10-09 16:07:20,100 (default-invoker-Thread-9) [ Converters.java:102:WARN ] *** No converter found, converting from org.ofbiz.service.mail.MimeMessageWrapper to java.lang.String. Please report this message to the developer community so a suitable converter can be created. ***
2012-10-09 16:07:20,101 (default-invoker-Thread-9) [ ObjectType.java:540:WARN ] No special conversion available for org.ofbiz.service.mail.MimeMessageWrapper to String, returning object.toString().
I added a MimeMessageToString converter in MimeMessageWrapper.java to resolve this problem.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1468780 13f79535-47bb-0310-9956-ffa450edef68
2013-04-17 07:23:03 +00:00
Jacopo Cappellato
012c598c2f
Moved Axis1 jars to specialpurpose/birt because it is now the only component that still uses these old jars while the framework runs on Axis2.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465252 13f79535-47bb-0310-9956-ffa450edef68
2013-04-06 14:35:05 +00:00
Jacques Le Roux
1b6a4204e6
Adds again the possibility to use the previous way about detecting slow services in logs.
...
Now it uses properties for the 2 Thresholds
0 to get the same behaviour as Adrian's last commit
1000 to get almost the same behaviour than before Adrian's last commit. But with no distinctions with slow and very slow services and a higher level for slow services. This value makes sense for instance for web services (SOAP, RMI, REST) served by external systems.
The properties can be used to set as desired. I believe it's no confusing OOTB and still flexible enough.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465223 13f79535-47bb-0310-9956-ffa450edef68
2013-04-06 10:58:20 +00:00
Adrian Crum
2d651e0f6d
Changed some information-only logging from WARN to INFO.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1464001 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 13:29:44 +00:00
Adrian Crum
fa4e931206
Log message cleanup in ServiceDispatcher.java. Removed confusing text about services taking too long.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1463863 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 07:57:24 +00:00
Ashish Vijaywargiya
e5c7297a41
Adding Method to retrieve form-label from model parameter object in freemarker. Thanks Ankush for providing method for this missing functionality.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1462265 13f79535-47bb-0310-9956-ffa450edef68
2013-03-28 19:15:50 +00:00
Ashish Vijaywargiya
8c62ee7787
Bug Fix: Added check to avoid NPE if result-to-result is true.
...
If we set result-to-result true then for some cases actionResult may be empty so it throws an NPE action while executing eca action. Thanks Deepak.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1455407 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 04:51:28 +00:00
Jacques Le Roux
830f9f7b91
A patch from Shi Jinghai for "Chinese localizations (zh) for trunk (Part II)" https://issues.apache.org/jira/browse/OFBIZ-5137
...
Translated missing zh labels for projectmgr, scrum, service, webpos and webtools components. These are the last 5 components.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1448350 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 18:50:33 +00:00
Sascha Rodekamp
7b0fd3e806
In an exception case the ServiceUtils.setServiceFields method should throw an exception and don't hide it.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447603 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 07:18:10 +00:00
Sascha Rodekamp
e8ff62f756
Add a small method to the ServiceUtil Class which checks all incoming service attributes and look for fields with the same name in the incoming map and copy those onto the outgoing map. Also includes a userLogin if service requires one.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447246 13f79535-47bb-0310-9956-ffa450edef68
2013-02-18 13:26:00 +00:00
Jacques Le Roux
b14d7c1ab9
Those are not needed and even counter productive now, see discussion on dev ML http://markmail.org/message/mqe6c6qm2rofa4gg
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1426605 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 18:32:23 +00:00
Scott Gray
5df3e3f70b
Remove a bunch of unused imports, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418646 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:03:52 +00:00
Jacques Le Roux
ecd2de6362
A patch from Naofumi Fukue "Japanese patch" https://issues.apache.org/jira/browse/OFBIZ-5061
...
Completed Japanese translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1412997 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 17:35:16 +00:00
Jacques Le Roux
f7b662bc46
A patch from Nicolas Malin for "Entity-Auto Engine : manage [create|lastModified]Date field" https://issues.apache.org/jira/browse/OFBIZ-5010
...
When a entity have fields createDate, lastModifiedDate, createByUserLogin and updateByUserLogin, the entity-auto engine set them.
Also makes all entities that have one of fields [create|lastModified][Date|ByUserLogin] to be consistent and have four fields
Impacted entityies:
[Quote|Order|Return]Adjustment
OrderPaymentPreference
AcctgTrans
GlReconciliation
ValueLinkKey
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407578 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 18:26:19 +00:00
Jacques Le Roux
b46c7a2c06
A patch from Naofumi Fukue "Japanese patch" https://issues.apache.org/jira/browse/OFBIZ-5061
...
Got an issue merging GeoData_JP.xml with Subclipse, using Toirtoise solved it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1403746 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 15:48:42 +00:00
Jacques Le Roux
934cede069
Fix an issue with WSDL and nillable attribute (can be only in 1st level element)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1384251 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 09:37:58 +00:00
Jacques Le Roux
9dcd3564e3
Moves the workflow component to attic
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381884 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 05:39:26 +00:00
Adrian Crum
e31fc1c801
Some Job Scheduler related notes/warnings - no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374736 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 11:33:07 +00:00
Adrian Crum
c8ab3eb95d
Fixed a bug in JobPoller.java where the poller thread would start before all of the components were loaded - causing exceptions to be thrown and unpredictable behavior.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374725 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 10:36:46 +00:00
Adrian Crum
aaf10dce39
Small fixup for my last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374619 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 17:48:55 +00:00
Adrian Crum
e130531db9
Moved JobInvoker.java code to AbstractJob.java, removed JobInvoker.java. Also worked on the Job API - the meaning of "runtime" was a little muddled, so I made "runtime" mean job execution elapsed time, and added a getStartTime method to the Job interface. This should make the distinction clearer.
...
This commit completes the Job Scheduler overhaul.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374618 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 17:43:03 +00:00
Adrian Crum
6d132e8bd7
A small bug fix in JobManager.java - re-initialize a reused variable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374603 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 16:05:01 +00:00
Adrian Crum
2e4cb54075
Refactored JobPoller.java - the JobPoller instance is now a singleton.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374596 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 15:21:14 +00:00
Adrian Crum
7dc28a9f5d
Small change to GenericServiceJob - restore job state in the deQueue method so client code can keep trying to submit the job.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374588 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 14:28:13 +00:00
Adrian Crum
f90c42db0f
Add the deQueue method to AbstractJob to solve a workflow build problem. Patch from Leon - https://issues.apache.org/jira/browse/OFBIZ-5007 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372501 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:41:32 +00:00
Adrian Crum
6fd584e207
Added Job Manager/Job Poller documentation to the service-config.xsd file. Hopefully this will help everyone understand the Job Scheduler behavior and what the settings do.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372088 13f79535-47bb-0310-9956-ffa450edef68
2012-08-12 13:17:17 +00:00
Adrian Crum
b3ea46d9a5
Changed JobPoller shutdown behavior - stop threads immediately and dequeue queued jobs.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371863 13f79535-47bb-0310-9956-ffa450edef68
2012-08-11 03:39:03 +00:00
Adrian Crum
a0e18a8d73
Removed unnecessary entity condition that I added earlier.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371862 13f79535-47bb-0310-9956-ffa450edef68
2012-08-11 03:36:58 +00:00
Adrian Crum
5e05a4df42
JobManager and PersistedServiceJob improvements - based on feedback from Scott.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371593 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 07:50:37 +00:00
Adrian Crum
d8f2291c51
Oops, I forgot to wrap the purge find operation in a transaction.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371163 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 11:11:00 +00:00
Adrian Crum
7d7a4017d6
JobManager improvement: Have the JobManager handle purging old jobs - instead of the purgeOldJobs service. Old jobs will be purged when the job queue is idle.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371140 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 10:15:59 +00:00
Adrian Crum
8d6aaecc85
JobManager bug fix - ensure consistent return value in poll method. Also some log message cleanups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371119 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 09:26:40 +00:00
Adrian Crum
0375909e6b
Fixed the Job Scheduler so jobs are not lost during heavy server load.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370566 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 22:10:27 +00:00
Adrian Crum
3627d8bbc8
More work on the Job Scheduler:
...
1. Gave the job queue a fixed size so the job poller can't create an out-of-memory condition.
2. Changed min/max thread settings to more conservative values.
3. Changed JobSandbox polling code to accept a limit argument to control the number of records retrieved. Also used ELI to limit memory use.
4. Improved JobManager reloadCrashedJobs method to recover queued jobs that were being missed previously.
At this stage the Job Scheduler has been fixed to not crash/saturate the server, but it can still lose jobs. That will be fixed in the next commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370437 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 19:11:06 +00:00
Adrian Crum
2b3cf6c431
Eliminated/moved some classes in the Job Scheduler.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370157 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:02:03 +00:00
Adrian Crum
b3fc79770b
Moved method used exclusively by PersistedServiceJob from JobManager to PersistedServiceJob. Also added some JavaDocs.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369543 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 09:43:59 +00:00
Adrian Crum
4de5aaf712
Refactored PersistedServiceJob.java so that it contains the GenericValue it represents. This improves throughput because the original code retrieved the JobSandbox entity value about 10 times for each job, and with this change the JobSandbox entity value is retrieved twice per job.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369536 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 08:01:29 +00:00