Robby Pelssers wrote:
One remark.

If I want to use properties in this block, I have to configure the
Springconfigurator in the webapp module.  So whenever I really want to
test my block I can't just do

cd block
mvn jetty:run

I first have to install my block and  then run the webapp which leads to
the problem that when I modify classes in the block they are not
reflected. Or am I missing something here and are there ways to use the
springconfigurator in  a standalone block?

If you just want to test your Java classes that are independent of cocoon and are having their own Spring configuration, it is a lot easier (and also recommended, at least in my view) to create an independent Maven project (e.g. in Netbeans or Eclipse), where you can quickly test your classes. Your cocoon application (block(s)) would then depend on that particular project.

Kind regards,
Robby Pelssers
-----Original Message-----
From: news [mailto:[email protected]] On Behalf Of Hubert Klein Ikkink
Sent: dinsdag 10 februari 2009 11:37
To: [email protected]
Subject: Re: fast deployment; deploy a single block


Peter Karich <peathal <at> yahoo.de> writes:

Hi,

I am very new to cocoon (version 2.2.) and I would like to know how I
could avoid the long deployment time (>2min) of the simplest
application.

Hi Peter,

you can simply run your block:
cd block
mvn jetty:run

Now if you change the source code the class will be reloaded without the
need to restart Jetty. I assume you have also things like sitemaps in this block, so you can test your code.

You also reference your block in other blocks for development, by
changing the rcl.properties file. In this file you can reference classes directories from other blocks which will be reloaded when changed.

I only use the webapp archetype for deployment, but never for
development.
Kind regards, Hubert Klein Ikkink




---------------------------------------------------------------------
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]




--
Andre H. Juffer              | Phone: +358-8-553 1161
Biocenter Oulu and           | Fax: +358-8-553-1141
Department of Biochemistry   | Email: [email protected]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat                   | WWW: www.strubiocat.oulu.fi
NordProt                     | WWW: www.nordprot.org
Triacle Biocomputing         | WWW: www.triacle-bc.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to