Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Testing websphere 8 beta with RAD 8.0

 
Bartender
Posts: 1269
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good evening,

i'm just testing was 8.0 with RAD 8.0, and I can't figure out how using resource injection. Via was admin console,
i've configurated a datasource named "DS" and with "jdbc/DS" as JNDI lookup name.

In my code, I tried to inject this datasource but no luck: all that I get, is an error in WAS console saying that
a reference to jdbc/DS cannot be located.



Any suggestion ?
Thank you !
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try:
name="java:comp/env/jdbc/DS"
 
Claude Moore
Bartender
Posts: 1269
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your answer. I tried, but no luck...
 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you define a resource reference in the ejb-jar.xml (or equivalent)? WebSphere needs this to map your reference to the real JNDI value.
 
Claude Moore
Bartender
Posts: 1269
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's worked, thaks
Anyway is a bit strange that with J2EE we need again an external XML descriptor....

Thank you !!!
 
I've been selected to go to the moon! All thanks to this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic