Martin,
It appears to me that the WebdavServlet looks for
Namespace Access Token in the init() method via the
servlet context:
<snippet>
// Lookup for the NAT using the servlet
context
token =
(NamespaceAccessToken)getServletContext().getAttribute(ATTRIBUTE_NAME);
</snippet>
If you look into that method you can see how it tests
for the token, and if it does not exist the Domain
will be initialized. I believe this call uses J2EE
and JNDI to get access to the instance variables or
instances of the Domain. Seeing as I am not highly
familiar with JTA, you may want to take a look at the
UserTransaction Interface Specs within the Java
Transaction API (if you are not already familiar with
this).
http://java.sun.com/products/jta/
I am going to read up on this seeing as it is
important to know what is going on out there and
understand the projects you use.
Let Me Know What you find, I am more than interested
in furthering the Cocoon Slide Impl. In the meantime,
I will let you know, I have been able to run the
Webdav Servlet and Cocoon impl in some form of unison.
More specifically, I loaded the webdav servlet before
Cocoon(load on startup tag w/i one container).
Although it is not one hundred percent it is close. I
am willing to accept this for now, but not for long.
Hope this helps, if not bother me some more :-),
Julian
--- Martin Holz <[EMAIL PROTECTED]> wrote:
> Julian Klein <[EMAIL PROTECTED]> writes:
>
> > I am currently trying to integrate slide content
> with
> > the publishing content of Cocoon. I have the
> built
> > the latest and greatest cocoon version on Red Hat
> 8,
> > java 1.4. I was wondering if anyone has been able
> to
> > get the slide webapp and the webdav servlet to run
> all
> > in the same servlet container with cocoon.
>
> Yes, but using a modified version of
> SlideSourceFactory.
>
> > I have set
> > up the slide-webdavservlet.jar in
> > $TC/webapps/cocoon/WEB-INF/lib
> > and added the servlet config to the web.xml in
> > $TC/webapps/cocoon/WEB-INF/. I originally used
> the
> > slide-servlet and web.xml that came with cocoon
> > scratchpad, but then switched to my
> > slide-webdavservlet.jar from a recent slide 2.x
> build.
> > I have tried changing settings in cocoon.xconf
> and
> > the web.xml, but I can never get both to share
> the
> > same org.apache.slide.Domain instance...therefore
> they
> > do not run in unison...or at all. Any suggestions
> > would be greatly appreciated.
>
> The problem is, that SlideRepository is always using
> a
> EmbeddedDomain, whether the Domain is already
> initialized
> or not.
>
> I am currently working on a version, which
> initializes
> the Domain, only if it is not yet initialized.
>
> WebdavServlet looks a little bit strange to in this
> respect. It is looking for a NamespaceAccessToken in
> a
> ServletContext attribute and assumes, that it is
> responsible for the namespace live cycle otherwise.
> However the wrappers.catalina.SlideServerListener
> does not
> set this attribute.
> Why does the WebdavServlet not test for
> Domain.isInitialized ?
>
>
> Regards
>
> Martin
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
=====
Live simply so others may simply live.
�
-Ghandi
�
Pluralitas non est ponenda sine neccesitate.
"Entities should not be multiplied unneccesarily"
�
-William of Occam
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>