Hi,
I am tring to look up datasource from java client using the following code:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.put (Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
env.put(Context.PROVIDER_URL, "jnp://localhost:9753");
Context ctx = new InitialContext(env);
DataSource ds = (DataSource)ctx.lookup("java:/datasourceDS");
I get javax.naming.NameNotFoundException
Using this code I can look up for Ejb but not datasource.
Does anybody know what should I do ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836889#3836889
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836889
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user