> From: Upayavira [mailto:[EMAIL PROTECTED]]
> 
> Dear All,
> 
> I have an application (in Java) in which I would like to interface 
> directly to the Cocoon
> core to request URIs, which it will then process itself (e.g. 
> sending XML to clients via FTP or HTTP post).
> 
> Is there a way that I can request URIs from the Cocoon core using 
> a Java interface, rather than using HTTP?

Yes, take a look at CocoonServlet.java and Main.java. They do call
Cocoon using Java interface. It's not very easy ATM, but there are plans
to make it easier by providing CocoonBean (Nicola? :)

 
> I am aware of the command line interface, but have been told that it 
> is not yet very
> stable,

I can say that it is stable, and feature rich enough to be used to
generate offline content of the site. If you launch it without
parameters, it will return you help on available options.


> and that some features will not work with it. (It didn't seem 
> to work very well when I tried it myself).

It works well for generation of Cocoon docs, and in other places too.
See "build docs".


> How easy would it be to make my application pretend to be a servlet 
> engine, and thus call Cocoon as any servlet engine would?

Base your code on CocoonServlet and/or Main.java. It's not very simple,
but in future this will be simplified.

Vadim


> Thanks for any advice.
> 
> Upayavira
> 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to