Hi All, I am not able to lookup the DataSource in my standalone java class. I get "request timed out exception".
Progr: public class TestDS { public static void main(String[] args) throws Exception { String CONTEXT_PROVIDER_URL = "jnp://localhost:1099"; /* JNDI Context class Factory Name */ String CONTEXT_FACTORY_NAME = "org.jnp.interfaces.NamingContextFactory"; String CONTEXT_FACTORY_PKGS = "org.jboss.naming:org.jnp.interfaces"; /* JNDI Properties */ Properties Properties= new Properties ( ) ; Properties.put ( "Context.PROVIDER_URL" , CONTEXT_PROVIDER_URL ) ; Properties.put ( "java.naming.provider.url" , CONTEXT_PROVIDER_URL ) ; Properties.put ( "java.naming.factory.initial" , CONTEXT_FACTORY_NAME ) ; Properties.put ( "java.naming.factory.url.pkgs" ,CONTEXT_FACTORY_PKGS ) ; InitialContext initial = new InitialContext(Properties); DataSource ds = (DataSource) initial.lookup("java:/OracleDS"); } } Any idea why it is so? TIA, Saroj ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user