hi im using a stand alone java application to access a jndi data source configured on websphere 6.1 im getting the following error : failed to initialize the ORB... most of the solutions i got suggest to change from sun jdk to ibm jdk.BUT BUT how do we do that and what are the steps to be followed. he code im using is given below: //WebsphereJNDI.java import java.sql.*; import java.util.*; import javax.sql.*; import javax.naming.*; import javax.rmi.*; public class WebSphereJNDI { private String websphere_server; private String jndi_datasource; private String sql_query; WebSphereJNDI(String serverpath, String jndiname, String query) { websphere_server = serverpath; jndi_datasource = jndiname; sql_query = query; } public ResultSet get_data() throws Exception { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory"); env.put(Context.PROVIDER_URL, websphere_server); InitialContext ctx = new InitialContext(env); DataSource ds = (DataSource) ctx.lookup(jndi_datasource); Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet res = stm.executeQuery(sql_query); // moving cursor to first row res.next(); return res; } } // ResultSetTester.java import java.sql.*; import java.util.*; import javax.sql.*; import javax.naming.*; import javax.rmi.*; public class ResultSetTester { public static void main(String[] args) throws Exception { WebSphereJNDI test = new WebSphereJNDI( "http://hostname:port no.", "jdbc/mydatasource", "SELECT * FROM pubs.dbo.authors"); System.out.println(dump_data(test.get_data())); } public static String dump_data(java.sql.ResultSet rs) throws Exception { int rowCount = 0; String result = ""; result += "

"; ResultSetMetaData rsmd = rs.getMetaData(); int columnCount = rsmd.getColumnCount(); // table header result += ""; for (int i = 0; i < columnCount; i++) { result += "" + rsmd.getColumnLabel(i + 1) + ""; } result += ""; // the data while (rs.next()) { rowCount++; result += ""; for (int i = 0; i < columnCount; i++) { result += "" + rs.getString(i + 1) + ""; } result += ""; } result += "

"; return result; } } Im an amateur...Please help its urgent