Hi Matthias,

Although I am no experienced cocoon user, I may change your question by the following sentence : What is missing the current cocoon application ? Does cocoon 2.1.x fill the gap ? You may have to evaluate the cost of using a scripting language, but having JS as Flow interpreter is due to the lack of languages supporting continuations (correct me if I am wrong). Benefits of FlowScripts are well explained here : http://cocoon.apache.org/2.1/userdocs/flow/index.html

Moreover, JavaFlow exists in cocoon although I never used it. Have a look on the apples block in the samples.

Hope this will help.
Baptiste

Merdes, Matthias a écrit :
hi,

we are currently in the process of evaluating and/or restructuring an
existing cocoon application. being a cocoon beginner i fail to see the benefits of
flowscript/javascript for the controller layer.

of course it is a good practice to have an explict controller layer
(control as in MVC),
BUT: why does it have to be in a scripting language?

imho, this has at least the following drawbacks (mostly related to crossing the java-javascript-boundary in eclipse
during development):

-cannot refactor java-javascript
-cannot semantically search for usages of java classes in javascript and
vice versa
-cannot navigate (F3) easily between java-javascript
-cannot easily unit-test the javascript stuff with junit
-cannot debug javascript during run-time in the java debugger
-business logic (or technical framwork-related logic) tends to creeping
into the flowscript
i would much prefer to do everything in java itself.

so my questions are:
-am i missing anything?
-is there a recommended way to migrate the flowscript to java?
-will this change in cocoon 2.2?

any advice is greatly appreciated.
thanks
matthias



Matthias Merdes Senior Software Developer
_________________________________________

Heidelberg Mobil International GmbH

Phone: +49 6221 533 254
Fax:   +49 6221 533 129

eMail: [EMAIL PROTECTED]

_________________________________________

Schloss-Wolfsbrunnenweg 33
69118 Heidelberg
Germany

Amtsgericht Mannheim / HRB 701994
CEO: Thomas Reinhart
________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to