• 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 issue with JNDI lookup

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I was hoping someone might have run into something like this.
I am porting an existing Weblogic application to WAS5.1. In the Weblogic application, datasources are referred to by their JNDI names.
My application is working in WAS, but I get this info message:
****************************
[1/9/04 16:01:04:505 EST] 4a84ce88 ConnectionFac I J2CA0122I: Resource reference NCRCRMDB could not be located, so default values of the following are used: [Resource-ref settings]
res-auth: 1 (APPLICATION)
res-isolation-level: 0 (TRANSACTION_NONE)
res-sharing-scope: true (SHAREABLE)
res-resolution-control: 999 (undefined)
[Other attributes]
isCMP1_x: false (not CMP1.x)
isJMS: false (not JMS)

****************************
I found on an IBM pub site that this means that since I am referencing the datasource via JNDI directly the container can't manage these values, so it sets defaults.
Has anyone seen something similar, and if so, have you been able to solve it? It's my impression that this is akin to a warning since the code works, but the log is getting filled with these.
Thanks,
Eric McEntee
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Go to EJB Deployment Descriptor, click on references tab, Click on Add button at the bottom, select Resource reference radio button.
Name = (New ResourceRef) - replace this with the jndi name you gave in ur program. For example if you gave java:comp/env/jdbc/testds, type jdbc/typeds.
Type = javax.sql.DataSource (Make sure you havent selected javax.activation.DataSource)
Autentication: CONTAINER
Under Websphere Bindings
jndiname - name you gave while created your datasource (ie jdbc/typeds)
Save everything and Restart your server.
 
eric mcentee
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, excuse my ignorance, I'm a WAS newbie. Where do I find this EJB Deployment Descriptor menu? Is this through the admin console, or WSAD?
Thanks,
Eric
 
chandubcs
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its using WSAD, If you want the same be done in WAS also using different approach.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do you do it using WAS?
 
reply
    Bookmark Topic Watch Topic
  • New Topic