Dear experts, I have succesfully compile my program, but when I run it, the program just stop there with no response until I press <ctrl><C>. I know exactly which line cause the problem. It is this line "javax.naming.Context context = new javax.naming.InitialContext(parms);" that cause this problem. The datasource and resource have been properly set up in WebSphere. For your information,the following is my .java ______________ import javax.sql.DataSource; import javax.naming.*; import com.ibm.ejs.ns.jndi.*; import java.sql.*; import java.util.*;import com.ibm.websphere.advanced.cm.factory.*;
Hi, Add this code parms.put(javax.naming.Context.PROVIDER_URL, "iiop://"); As you never gave the Providerurl the error occurs. Hope this helps. Shanthi
Joined: Jan 05, 2002
It didn't work. According to the infomation provided (IBM Webpage), it seems ok not to submit the provider_url. Could it be the WebSphere setting that leads to this problem? Anything specific that I need to set besides the resource and datasource?
Joined: Jan 04, 2002
Which Database is used in your application? DB2 or oracle? If it is oracle, in the datasource, "jdbc/Minnie" is preferred. Shanthi