Scott Gray
955b6745f5
Fix bug preventing deadlock retries for groovy services, GenericEngine implementations and services should never modify the service context
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1509510 13f79535-47bb-0310-9956-ffa450edef68
2013-08-02 01:19:53 +00:00
Jacques Le Roux
107a6762b6
No functional change.
...
When I reverted r1311214 for "set different ports for testing in a CI environment (e.g. Jenkins)" https://issues.apache.org/jira/browse/OFBIZ-4794 I did not notice Jacopo's also changed some ports value at r1324614
This reverts r1324614 to have things consistent. I don't backport (only R12.04 is concerned) because as long as catalina/ofbiz-component.xml is consistent (port =+ 1) things are working
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502121 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 05:38:47 +00:00
Adrian Crum
18b5135a31
Third pass at removing cached DOM tree code from EntityConfigUtil.java. I converted some of the code to use the new thread-safe models.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1490938 13f79535-47bb-0310-9956-ffa450edef68
2013-06-08 09:34:47 +00:00
Adrian Crum
7b84188235
First pass at removing cached DOM tree code from EntityConfigUtil.java. I converted some of the code to use the new thread-safe models. I also fixed some concurrency problems in related classes by replacing DCL with java.util.concurrent classes. I discovered the new multi-threaded component loader was creating duplicate resources, so these changes fix that.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1490541 13f79535-47bb-0310-9956-ffa450edef68
2013-06-07 08:39:44 +00:00
Adrian Crum
32f9d30ca7
A final pass through ServiceConfigUtil.java - moved some of the convenience method code to the call sites. The convenience methods don't add much now that the API is easier to use. Reorganized methods and added JavaDocs.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1490116 13f79535-47bb-0310-9956-ffa450edef68
2013-06-06 03:29:50 +00:00
Adrian Crum
536a9e2f1f
More work on ServiceConfigUtil.java - based on a patch from Christoph Neuroth with modifications by me. Client code now uses the new models and the DOM parsing static methods have been removed. The serviceengine.xml file handling is now thread-safe.
...
https://issues.apache.org/jira/browse/OFBIZ-5204
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1490112 13f79535-47bb-0310-9956-ffa450edef68
2013-06-06 02:16:40 +00:00
Adrian Crum
06aea1b98a
More work on ServiceConfigUtil.java - based on a patch from Christoph Neuroth with modifications by me. The static helper methods now use the models instead of parsing the DOM tree. This commit makes a small API change - the helper methods now throw an exception if there is a problem with the serviceengine.xml file. The original code would just hide the errors, so client code didn't know anything was wrong.
...
https://issues.apache.org/jira/browse/OFBIZ-5204
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1490004 13f79535-47bb-0310-9956-ffa450edef68
2013-06-05 18:59:51 +00:00
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