aspose file tools*
The moose likes Websphere and the fly likes Testing websphere 8 beta with RAD 8.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Testing websphere 8 beta with RAD 8.0" Watch "Testing websphere 8 beta with RAD 8.0" New topic
Author

Testing websphere 8 beta with RAD 8.0

Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 273
    
    1

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

Joined: Jul 14, 2008
Posts: 56
Can you try:
name="java:comp/env/jdbc/DS"
Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 273
    
    1

Thank you for your answer. I tried, but no luck...
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29261
    
140

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 273
    
    1

That's worked, thaks
Anyway is a bit strange that with J2EE we need again an external XML descriptor....

Thank you !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing websphere 8 beta with RAD 8.0
 
Similar Threads
datasource for mysql
Suggestion on J2EE design - looking for DataSource.
Reuse of Data Source
Trying to set up Connection Pooling using Glassfish
JBoss 3.2 and MySQL - Could not dereference DataSource object