• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDBC Realm using Resource

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all!

Having a problem setting a JDBC realm to accept the resourceName parameter, so I can specify details of the database which I'm connecting to, which I can then also get details for using a Bean.

The traditional way is as follows (as you all probably know):


Now I want to change it to something like this:




With this Tomcat throws a java.lang.reflect.InvocationTargetException error but I've tried all sorts of combinations of resourceParamas vs. real attributes, and nothing seems to give me what I want... well in fact nothing gives me a working tomcat, unless I go back to just declaring that one realm element of course.

Any help would be appreciated

Cheers

Chris
reply
    Bookmark Topic Watch Topic
  • New Topic