Friedrich,

I would recommend using Cocoon 2.1 for this purpose, as it has much more functionality.

In 2.1, the CocoonBean provides programmatic access to Cocoon's functionality, including a method for requesting that a page/resource be sent to a supplied output stream.

I don't know anything about JMS (other than that it is a messaging service).

If it follows the usual request/response cycle, would it be possible to create a standard JMS interface to Cocoon, such that someone sends a JMS message to Cocoon by passing it a URI for a page/resource, and Cocoon then returns by JMS a message containing the generated page?

If this is possible, then a JMS interface to Cocoon shouldn't be too hard to create.

I think it would be a good thing to have in the Cocoon code base as another wrapper around the CocoonBean.

What do you think?

Regards, Upayavira

I want to write a small JMS server that reads a message from the queue and
generates a report using cocoon. The generation of the reports spends a
long time in SOL querys and  they can also grow very large.  So i can't
generate them online in our webapplikation. But we need PDF and Excel
format, so cocoon would be a good choice.

My questions to the experts are:

* Ist the org.apache.cocoon.Main class a good starting point?
I hope i can reuse all the initialization of cocoon and only have to adapt
the main method for the queue reading loop. But i don't see a hook. I will
make a new class and copy the methods.

* A new environment will be necessary. The commandline environment is
designed to read a uri, the http environment is designed to handle a http
request. I will have a JMS message as request and a JMS message as reponse.
Is there something to reuse, or is it necessary to create a completly new
environment?

* What more is necessary? Will it work to have a JMSMain that initializes
cocoon, reads the incomming JMS messages, puts them in a JMSEnvironment and
delegates to cocoon? Is this realy all?





Reply via email to