You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Upayavira <uv...@upaya.co.uk> on 2002/08/12 15:52:12 UTC

Cocoon without a Servlet Engine

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?

I am aware of the command line interface, but have been told that it is not yet very 
stable, and that some features will not work with it. (It didn't seem to work very well when 
I tried it myself).

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

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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Cocoon without a Servlet Engine

Posted by Vadim Gritsenko <va...@verizon.net>.
Upayavira wrote:

>Dear Vadim and others,
>
>Vadim Gritsenko wrote:
>  
>
>>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? :)
>>Base your code on CocoonServlet and/or Main.java. It's not very simple,
>>but in future this will be simplified.
>>    
>>
>
>Can you give me any info on this 'CocoonBean', or on the potential simplification of 
>accessing cocoon without a servlet engine via Java code?
>

If you take a look into the classes mentioned, you will see lots of 
Avalon and Logger details. These should be hidden by the (to-be-written) 
CocoonBean.

Vadim


>Thanks,
>
>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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Cocoon without a Servlet Engine

Posted by Upayavira <uv...@upaya.co.uk>.
Dear Vadim and others,

Vadim Gritsenko wrote:
> 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? :)
> Base your code on CocoonServlet and/or Main.java. It's not very simple,
> but in future this will be simplified.

Can you give me any info on this 'CocoonBean', or on the potential simplification of 
accessing cocoon without a servlet engine via Java code?

Thanks,

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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Cocoon without a Servlet Engine

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Upayavira [mailto:uv@upaya.co.uk]
> 
> 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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>