• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing websphere 8 beta with RAD 8.0

 
Claude Moore
Ranch Hand
Posts: 817
7
IBM DB2 Java Netbeans IDE
  • 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 !
 
Victor Ramen
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
Ranch Hand
Posts: 817
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your answer. I tried, but no luck...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34851
369
Eclipse IDE Java VI Editor
  • 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
Ranch Hand
Posts: 817
7
IBM DB2 Java Netbeans IDE
  • 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 !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic