Re: Information about configure EHdefaultstore en C2.2

2014-02-06 Thread Miguel

Hi Thorsten

  I'm going to read that class. Actually, the default values of 
parameter org.apache.cocoon.store.maxobjects = 1000
How application move to a new machines with more RAM memory, I think is 
possible to increase number maximum objects in memory.


Besides I checked that file on disk of EHCache in some machines is very 
long (about 1-4 GB) and I have readed this sizes can affect to 
performance of ehcache, so advice tunning parameters of ehcache.


In this page: http://wiki.apache.org/cocoon/CocoonPerformanceResults
there are some sample stress test results and it seems that a value of 
1000 objetcs to maxobjects parameter can be very small


Any help on this is good.
Best regards


El 05/02/2014 14:54, Thorsten Scherler escribió:

On 01/08/2014 08:21 AM, Miguel wrote:

Hi

   I am looking for documentation to configure and tunning
EHdefaultstore caching in Cocoon 2.2 application. I have found only
how to configure on Cocoon 2.1 using cocoon.xconf file but this is not
usefully for me.

I need modify EHdefaultstore configuration because the application
move to a new machines with better capacities and now JVM have 3 GB
RAM and I suppose EHdefaultstore default configuration is not enough.

Any ideas?
Best regards


Sorry for the late reply, did you found anything?
There is a good comment in the source code of
org.apache.cocoon.components.store.impl.EHDefaultStore. Basically you
want to play with private static final String CONFIG_FILE =
org/apache/cocoon/components/store/impl/ehcache.xml;

HTH

salu2



attachment: miguel_valencia.vcf
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Re: Capture or Output data from current flow state to PDF

2014-02-06 Thread Miguel

Hi Sandor

Usually, to create a pdf from a source is necesary two phases:

* Use transformer with a xslfo sheet
* Use serializer

Example:

map:transform src=xslt/transform.document.fo
  map:parameter value=xxx name=fileName/
/map:transform
map:serialize type=fo2pdf/

where

map:serializer name=fo2pdf logger=sitemap.serializer.fo2pdf 
src=org.apache.cocoon.serialization.FOPSerializer


If I understand, you want show the page xhtml and (same time) convert to 
PDF, so I see in your code you use a game.js, where you can call 
cocoon pipeline using processPipelineTo() method and create PDF 
document, example:
cocoon.processPipelineTo(match of your cocoon sitemap,null, 
FileOutputStream objetc)


Best regards

El 01/02/2014 16:01, Sandor Szatmari escribió:

Hello,

Using Cocoon 2.2, I am trying to generate some PDF interactively using flow.  
The flowscript loops, continually getting input from the user, allowing them to 
add content via form submission.  The input is collected and used to 
dynamically build a document.  This part works using the sitemap.xmap below.

What I would like to do next is take the current state of the data collected in 
the flow and transform to PDF.

I'm not sure how to capture the output of the current flow state.

Can this be done at all?
If so, can it be done inside the pipeline without writing to a temporary file?

Using Cocoon 2.2 is not a requirement so if this is achievable with a different 
version that is OK.

?xml version=1.0 encoding=UTF-8?
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

map:flow language=javascript/
!-- map:script src=flow/game.js/
/map:flow--

map:pipelines

   map:pipeline id=test
 map:match pattern=test
   map:call function=main/
 /map:match

 map:match pattern=*.jx internal-only=true
   map:generate type=jx src=documents/{1}.jx/
   map:serialize type=xhtml/
 /map:match

 map:match pattern=*.kont
   map:call continuation={1}/
 /map:match
   /map:pipeline
/map:pipelines

/map:sitemap

Regards,
Sandor
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org





attachment: miguel_valencia.vcf
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org