Sure, I can make an attempt at it. I'd like to finish the wiki entry first. 
What I'm writing though will have to be drastically shortened for the 
documentation page I think.

I just ran into a bit of a puzzle though. I was trying to unravel what happens 
when you put everything into server.xml and use a CombinedRealm. Under Linux, I 
had to add a ResourceLink element to my context.xml in order to use the 
sub-Realm.

I can understand that I need a ResourceLink when I put the Resource in 
GlobalNamingResources and the Realm in context.xml, but I was rather surprised 
that I needed the ResourceLink when both are in server.xml.

I'll see if I can reproduce this on Windows/XP (make sure I've done everything 
in a reasonable order).

If that is indeed the case, can someone explain:

1. Context.xml - everything
   no ResourceLink needed (obviously)
2. Context.xml - Realm, server.xml Resource in GlobalNamingResources
   ResourceLink needed (obviously)
3. Server.xml - CombinedRealm, Resource in GlobalNamingResources
   ResourceLink needed (??)

thanks for clearing things up . . . .

/mde/



--- On Mon, 6/14/10, Mark Thomas <ma...@apache.org> wrote:

> From: Mark Thomas <ma...@apache.org>
> Subject: Re: hibernate not finding global resource datasource defined by 
> tomcat
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Date: Monday, June 14, 2010, 2:59 PM
> On 14/06/2010 22:45, Mark Eggers
> wrote:
> > I'm trying to finish up a document on
> DataSourceRealms. Hopefully that will get posted on Tomcat's
> Wiki today or tomorrow, depending on other time
> constraints.
> 
> I don't suppose you fancy providing a patch for the Tomcat
> docs as well... (or instead of)
> 
> Mark



      


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to