Solved

datasource in server.xml file

Posted on 2004-10-14
3
155 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse package explorer vs project explorer view 2 133
Java Server Faces parameter pass? 6 50
Weekend adv creator 3 38
spring jars download 1 27
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

777 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