Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using DataSource in RAD 7.5

 
Thomas Houseman
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I used to work with RAD 7 and WAS 6.0 and call a DataSource from my servlet by using a reference I created earlier from RAD itselt.

Now I'm working on RAD 7.5 and WAS 7.0 and I tried to create a reference to the same DS, but there is no field for adding the DS jndi name. Did I missed something ? How should I connect to the DS with RAD 7.5 ?

Thanks !!
 
Mike Singer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you attempting to add it as a resource reference in the web.xml? I've seen this behavior in RAD 7.5 versus RSA 7.5. Make sure it is opening the the Deployment Descriptor Editor.

 
Thomas Houseman
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In RAD 7 I created a datasource reference through "Deployment Descriptor" :
1. Open DD.
2. click the "References"
3. click "Add" and create a DS Reference.
4. Then add the "JNDI Name" in the right field.

The problem is that in RAD 7.5 I don't have ch.4, means I don't have any field to place the "JNDI name" of the DataSource.
So how should the WEB application will know what the JNDI name is ? how should it access to the data source on the server ?

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic