Hi Danny,

Danny Waldmann schrieb:

-----Ursprüngliche Nachricht-----
Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Andreas Hartmann
Gesendet: Mittwoch, 30. Januar 2008 17:08
An: [email protected]
Betreff: Re: AW: AW: Sample code for accessing the repository

Hi Danny,

Danny Waldmann schrieb:

can you access Avalon services from your Tapestry classes? You have to register your class as a service in cocoon.xconf and obtain it via the service manager (=container), otherwise it won't be initialized by the container.

The basic setup looks like follows:
I have Tomcat as servlet container. Lenya is running into this servlet
container. The Tapestry app is also running into the same servlet container.

So I have to register my class (Home) in the cocoon.xconf of lenya?

yes, typically using a patch file. I'd suggest you pick out an example (e.g., the ContextUtility class) to see how it's done.

Which tag is responsible for registering my class as a service?

<component>

Services used to be called components in the early days of the Avalon framework, therefore the naming of the tag.

-- Andreas

--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


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

Reply via email to