-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What we understand so far:

Event (<event type="java" .../>):
- - close to the http request/response
- - input validations
- - parameter conversions
- - put results into request as attributes

Service (<event type="service" .../>):
- - well-defined IN and OUT parameters via service definition
- - business logic
- - DB operations

Usage statistics within OFBiz:
<event type="service"' /> 1542
<event type="java"'    /> 283
<event type="groovy"'  /> 16
<event type="simple"'  /> 95
runSync  1056
runAsync 171
<call-service /> 1375


Questions (best practices):
1. When shall an event and when service be used?

2. How and where to call services?
- - from controller as an event with type service
- - from within an event


Regards,
Rene
- -- 
René Scheibe * [email protected]
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxRaLoACgkQUXs9EHvIuCqSAgCfau9FRmedaREbvbLOZLyta28i
/XgAniNxWw8exGwVWkrSdm2EE5MmpdnE
=2cdf
-----END PGP SIGNATURE-----

Reply via email to