• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

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

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
lilyyan
Asked:
lilyyan
1 Solution
 
shinobunCommented:
Try "java:comp/env/jdbc/MYtestDB" or maybe just "jdbc/MYtestDB".
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now