Solved

datasource in server.xml file

Posted on 2004-10-14
3
156 Views
Last Modified: 2010-03-31
Hi,

My server.xml file is very long and not very modular because I have repeated the datasource I need within each context element.

I understand that there might be a way of puting the datasource tags  in somewhere which will be picked up by all of my context elements.

For example in hte global naming resources section.  Does anyone know how to do that?
0
Comment
Question by:rosshind
3 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 500 total points
ID: 12311677
Hi rosshind,

Why don't you just add your shared datasource entries in the <DefaultContext> tag? And then add a <res-ref-name> and a <res-type> in the web.xml file.

Cheers!

\tt
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question