[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

error in set datasource in RAD 6.0, the testing server is Webspere protal server 5.0.

Posted on 2006-10-20
1
Medium Priority
?
234 Views
Last Modified: 2013-12-10
Hello,

I'm trying to set up a DB2 pool connection by using a datasource.  I have set up the DB2 datasource in RAD 6.0, the testing server is Webspere protal server 5.0.

i got an errror is:

javax.naming.NameNotFoundException: Name "comp/env/MYtestDB" not found in context "java:"

the code for retrieve datasource is: datasource = (javax.sql.DataSource) ctx.lookup("java:comp/env/MYtestDB");

is there someting missing? this is my first time that i'm using datasource

Thanks very much for your reply,

lilyyan
0
Comment
Question by:lilyyan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
shinobun earned 1500 total points
ID: 17776722
Try "java:comp/env/jdbc/MYtestDB" or maybe just "jdbc/MYtestDB".
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question